Tuesday, 31 May 2022

How to perform a fresh Bioconda installation

Introduction

Conda has been revolutionary for scientific software. For developers it has made it simpler to package their tools. HPC users have been empowered to deploy software without relying on the cluster administrators to build new modules. For desktop users it has made it simple to get the tools they need installed without the pain of the "./configure && make && make install" cycle.

For those of us in the bioinformatics field, Bioconda has done an amazing job in wrangling the huge number of tools endlessly being published and updated into a (mostly) seamless installtion process. However, things do go wrong occasionally. Sometimes is the fault of Conda or Bioconda, but sometimes it's just a mangled installation which is best handled by a "nuke and rebuild" strategy. This post will show you how to do it properly.

1. Seek

Firt we need to find where you installed conda previously. Normally this will be ~/miniconda3 in your home folder. You can determine via one of the methods below.

% conda activate base
  
% echo $CONDA_PREFIX
/home/tseemann/miniconda3

% whch conda
~/miniconda/bin/conda

2. Destroy

% conda deactivate
% rm -f ~/.condarc
% rm -fr ~/.conda
# replace this folder if needed from Step 1
% rm -fr ~/miniconda3

3. Rebuild

% cd $HOME

# donwload the installer 
% curl -O https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh

# add "-b" if you want to skip all the questions
% sh ./Miniconda3-latest-Linux-x86_64.sh

4. Get your channels in order

This is a very important step that many users don't do. The order is critical to avoid weird dependency failures later.

% conda config --add channels defaults
% conda config --add channels bioconda
% conda config --add channels conda-forge

5. Install mamba

The conda command can often take a very long time to resolve dependencies.
An alternative is mamba which is a (mostly) drop in replacement for the conda command which is much faster.

% conda install mamba -y

% mamba --version
mamba 0.15.3
conda 4.12.0

6. Use mamba of conda for installs

% mamba create -n torsryverse 'snppy==4.4.5' shovill abricate mlst prokka
% conda activate torstyverse
% snippy --version
snippy 4.4.5

7. Add aliases

I personally get tired of typing out conda activate and conda deactivate so I have aliases for them.

# Append to ~/.bashrc login file
% echo "alias ca='conda activate'" >> ~/.bashrc
% echo "alias cda='conda deactivate'" >> ~/.bashrc

# log out and log back in
% ca torstyserse
% mlst --version
mlst 2.22.0

Conclusion

Sometimes it is just better to burn it all down and start again.

References

1 comment:

  1. Hi Guy's

    Fresh & Genuine stuff available now
    USA UK CANADA SPAIN AUS Germany Fullz
    All info included

    USA SSN UK NIN CA SIN with address DOB & Phone
    DL|ID with front back with Selfie
    Old & Young all ages available in bulk
    Children USA info available as well

    Here you can find us:

    TG = @ killhacks - @ leadsupplier
    What's App = (.+1.) (.727.) (.788.) (.6129.)
    TG Channel = t.me / leadsproviderworldwide
    VK Messenger ID = @ leadsupplier

    All info will be provided with guarantee
    Wrong, Bad, Invalid & Mismatch details will be replaced
    Specific details can also be provided
    Filter with (Age|Gender|City|States)

    #SSN #SSNDOBDL #SellSSN #CCShop #CCSELLCVV #ShopSSNDOBDLADDRESS #FULLZ #SSNFULLZ
    #REALDLSCAN #YoungAgeFullz #SIN #SINDOBDL #SellSIN #SINMMNFULLZ #MMNPROSSIN
    #NIN #NINDOBDL #SellNIN #UKFULLZ #FULLZUK #SellerNINDOB #ShopNINDOB
    #BusinessFullzUK #UKPros

    NIN DOB Address SORT CODE
    SSN DOB DL Address Employee & Bank Info
    SIN DOB Address MMN Phone E-Mail
    High Credit Scores Pros 700+
    DL Front Back with Selfie
    Children Leads fulls
    Business EIN Company Pros
    Pass-Port Photos with Selfie
    Bank Statements with w-2 form
    EIN Lookup

    Millions of Leads available fresh & untouched
    Email Leads are also available
    Crypto Leads & Business Leads
    Payday & Mortgage Leads
    Loan & Banks account numbers Leads
    Sweep Stakes fresh & valid
    Forex & Casino Leads
    B2B Leads & Company Owners Leads
    Home Owners & Rentals Leads
    Medical & Hospital Leads
    Professional Leads with employee details

    & Many more stuff we can provide on demand
    Do visit our channel for legit contacts

    TG = @ killhacks - @ leadsupplier
    What's App = (.+1.) (.727.) (.788.) (.6129.)
    TG Channel = t.me / leadsproviderworldwide

    Tools & Tutorials are also available
    Fresh spammed & Working
    SMTP|RDP|C-PANELS
    SHELLS|BRUTES
    Web-Mailers
    SMS|EMAIL Bulk Senders
    Scam Pages|Scripting
    Carding Methods|Loan Methods
    Spamming Complete Package included Tools & Tutorials
    CC Cash Out methods
    CC CVV DUMPS
    Dead CC's in Bulk

    (Be aware from scammers using our cloned user names)

    ReplyDelete