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

4 comments:

  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

  2. Are you in need of help to bring back your ex lover, stop your divorce/breakup, help to stop your partner from cheating. I was heart broken when my husband left me and moved to Texas to be with another woman. I felt my life was over and my kids thought they would never see their father again. I tried to be strong just for the kids but I could not control the pains that tormented my heart. My life was filled with sorrows and pains because my husband was the only man i have ever been with. I have tried many options but he did not come back, until i met a friend that directed me to Dr. Excellent, who helped me to bring back my husband after his reconciliation ritual. We are both living happily now and things have greatly improved in our marriage. This man is powerful and he can help you. Here his contact. Call/WhatsApp him at: +2348084273514 "Or email him at: Excellentspellcaster@gmail.com

    ReplyDelete
  3. Physics assignments involve mechanics, thermodynamics, electromagnetism, optics, and modern physics concepts, requiring strong analytical and problem-solving skills. Students often struggle with complex calculations, theoretical concepts, and numerical applications. physics assignment help australia services provide expert guidance to deliver accurate and high-quality academic solutions. Professionals assist with problem-solving, laboratory reports, research assignments, and physics calculations while ensuring academic standards. This support ensures timely submission and improved understanding, helping students strengthen scientific knowledge, enhance analytical abilities, and achieve better academic performance in physics and science coursework.

    ReplyDelete
  4. Kamala McLearan
    Hello Everyone! I'm here to explore blogs and forums about the wonderful and most safe cure for Herpes Simplex Virus(HSV). I was positive to the herpes virus and I lost hope because I was outcast and rejected even by my closest friends. I searched online to know and enquire about a cure for HERPES and I read someone testimony on how she was cured from HSV-2, So I decided to contact the same herbalist because I know that nature has the power to heal everything. I contacted Dr Kham Remedies to know how he can help me and he told me never to worry that he will help me with the natural herbs from God! After 2 days of contacting him, he told me that the cure has been ready and he sent it to me via DHL and it got to me after 3 days! I used the med as he instructed me Twice Daily For Two weeks (MORNING and EVENING) and i was cured! it's really like a dream but i'm so happy! That's the reason I decided to also add more comments of Him so that more can be saved just like me and if you need his help, you can email him on dr.khamcaregiver@gmail.com or visit him on website at: https://linktr.ee/doc_kham

    ReplyDelete