Difference between revisions of "Conda"

From wiki
Jump to: navigation, search
Line 1: Line 1:
WIP for progressing to user-centric conda installs
+
conda installs: This is the future=
  
  
+
Bioconda on Marvin on a per user basis, so you have total control over it.   
We are testing Bioconda on Marvin on a per user basis, so you have total control over it.   
+
Log in and from the command line type Only ever do this once or you will get error pessages):
Log in and from the command line type:
 
 
   
 
   
 
  install-bioconda
 
  install-bioconda
 
   
 
   
Either log out  and back in or type:
+
Either log out  and back in, or type:
 
  source ~/.bashrc
 
  source ~/.bashrc
 +
 +
This will make a user specific version of conda avible to you.
 +
 +
To find the package you want search on this:
 +
 +
https://bioconda.github.io/conda-recipe_index.html
 +
 +
or google search:
 +
conda name_of_tool_you_want
 
   
 
   
We strongly advise using environments: https://conda.io/docs/user-guide/tasks/manage-environments.html . You can do this in many ways. Please see the link for more details (here you can specifiy eact version etc ..). The easiest usage would be:    e.g.  conda create -n NAME_OF_ENV PACKAGE_TO_INSTALL
+
We strongly advise using environments: https://conda.io/docs/user-guide/tasks/manage-environments.html . You can do this in many ways. Please see the link for more details (here you can specifiy exact version etc ..). The easiest usage would be:    e.g.
 +
 +
  conda create -n NAME_OF_ENV PACKAGE_TO_INSTALL
 +
 
 +
This is an example of a toold called roary
 
   
 
   
  conda create -n roary roary
+
  conda create -n roaryENV roary
 +
 
 +
once it has installed, you can activate the environment by typing:
 
   
 
   
  conda activate roary
+
  conda activate roaryENV
 +
 
 +
As a lot of tools have dependencies, all the dependencies should be installed during this process. It is a good idea to keep them looked up in their own ENV, so they dont interfere with dependencies and spcific version required for other things you have installed.
 +
 
 +
To get the latest version
 
   
 
   
 
  conda update roary
 
  conda update roary
Line 22: Line 40:
 
You are now ready to use this package.
 
You are now ready to use this package.
 
   
 
   
  Conda deactivate        to leave this environment.
+
  conda deactivate        to leave this environment.
 
   
 
   
 +
If you want to install a specific version of a tool (use the equals sign and the version you want):
 +
 +
conda create -n samtools1.3 samtools=1.3
 +
 +
or
 +
 +
conda create -n python27 python=27
 +
 +
once you have this version of python installed, you can easily use (after you have activated the python env:
 +
pip install biopython  (or whatever you require)
 
   
 
   
This works for me and a test user. But may fail for you, so be patient with us.
 
 
   
 
   
 
To list all the environments you have created:
 
To list all the environments you have created:

Revision as of 10:26, 14 February 2019

conda installs: This is the future

Bioconda on Marvin on a per user basis, so you have total control over it. Log in and from the command line type Only ever do this once or you will get error pessages):

install-bioconda

Either log out and back in, or type:

source ~/.bashrc

This will make a user specific version of conda avible to you.

To find the package you want search on this:

https://bioconda.github.io/conda-recipe_index.html

or google search:

conda name_of_tool_you_want

We strongly advise using environments: https://conda.io/docs/user-guide/tasks/manage-environments.html . You can do this in many ways. Please see the link for more details (here you can specifiy exact version etc ..). The easiest usage would be: e.g.

conda create -n NAME_OF_ENV PACKAGE_TO_INSTALL

This is an example of a toold called roary

conda create -n roaryENV roary

once it has installed, you can activate the environment by typing:

conda activate roaryENV

As a lot of tools have dependencies, all the dependencies should be installed during this process. It is a good idea to keep them looked up in their own ENV, so they dont interfere with dependencies and spcific version required for other things you have installed.

To get the latest version

conda update roary


You are now ready to use this package.

conda deactivate        to leave this environment.

If you want to install a specific version of a tool (use the equals sign and the version you want):

conda create -n samtools1.3 samtools=1.3

or

conda create -n python27 python=27

once you have this version of python installed, you can easily use (after you have activated the python env:

pip install biopython   (or whatever you require)


To list all the environments you have created:

conda info –envs

installing packages: https://bioconda.github.io/recipes.html