Configure conda¶
Objectives
- Move the folder where
condastore data (cache, packages, environments, ...) from your home to thework. - Add channels for installing bioinformatics tools.
- Disable default channels that can be subject to billing.
This configuration needs to be done only once.
Move conda data to the work¶
By default, conda stores packages and environments in the $HOME. If left in this state, by using conda, you will quickly fill your $HOME quota and block your account. So we're going to make sure that these files are stored on the work.
Conda documentation provides other ways to set the place conda store data.
Add bioinformatics conda channels¶
The bioconda channel contains many packages for bioinformatics. It is added as follows:
The search for dependencies is faster and improves compatibility between dependencies by indicating to respect channel priority. The last channel added, in this case conda-forge, has the highest priority (i.e. higher priority than bioconda).
Disable Anaconda channels (defaults)¶
Defaults channel
Anaconda channels are subject to paying subscription. To be sure you don't use them in your projects, the conda documentation indicates how to disable them
How to check the conda configuration?¶
If you have followed this page correctly, the ~/.condarc configuration file should contain:
- conda-forge
- bioconda
- nodefaults
channel_priority: strict
denylist_channels:
- defaults