|
Size: 1818
Comment: R packages
|
Size: 5484
Comment:
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 1: | Line 1: |
| <<Anchor(top|scroll to the top of the page)>> | |
| Line 2: | Line 3: |
| <<TableOfContents(2)>> | |
| Line 3: | Line 5: |
| Installing software or pipeline can be a difficult task to accomplish. | Installing software or pipeline can be a difficult task to accomplish. |
| Line 12: | Line 14: |
| == Test data == We do ask users to provide test data for all install software. This way it becomes easy to check whether a software works or not. It is also good to define default command to test a tool, see next section to know more about this. == Install binaries == Coming soon == Use easybuild == Coming later == Install miniconda/anaconda packages == Anaconda (or Conda) is a well known program for managing environments and packages. It is very popular inn bioinformatics as it allows users with little experience to easily install needed tools and all dependencies. It also makes it easy for users to load the specific environments they need without modifying their '''bashrc''' themselves. On this server you will find 2 versions of miniconda installed, miniconda3 for python 3 and miniconda2 for python 2.7 environments. Conda's users guide can be found here, https://docs.conda.io/projects/conda/en/latest/user-guide/index.html. ''' * Load conda module and set needed for conda to work. Be aware that this process rebase you default python bin folder into conda base folder. ''' {{{#!highlight bash module load miniconda3/4.8.2 source $CONDA_INIT }}} {{{#!highlight bash which python #/tools/software/bioinfo-tools/miniconda/miniconda3/bin/python }}} ''' * You can see all available environments * To make it easy for all users to locate needed environments, use descriptive names when making new environments, eg. software-exact_version_number. ''' {{{#!highlight bash conda info --envs # OR conda env list ## conda environments: ## #test /home/fhoma/.conda/envs/test #base * /tools/software/bioinfo-tools/miniconda/miniconda3 }}} ''' * Activate an existing environment ''' {{{#!highlight bash conda activate <environment_name> # For example, you can try conda activate base }}} ''' * Deactivate the current environment ''' {{{#!highlight bash conda deactivate }}} ''' * Load 2 conda environments (we do not recommend doing this as it may lead to big confusions) * Nested environment ''' {{{#!highlight bash conda activate --stack <env_name> }}} ''' * Create new conda environment, there are 2 ways of doing this * from scratch or from a YAML config file. The latter one will create the environment and install all listed software * You can also give a list of software and versions when installing from scratch * Replace <env_name>, with a descriptive name. ''' {{{#!highlight bash # Create an environment with only default packages conda create --name <env_name> # You can be asked to confirm the location of the location of the envs folder # Use the command below to accept any question by default conda create --yes --name <env_name> # Make an environment with python 3.6 conda create --yes --name <env_name> python=3.6 # Create an environment from YAML file conda env create -f <environment.yml> }}} ''' * Remove an unused environment ''' {{{#!highlight bash conda env remove --name <env_name> # OR conda remove --name <env_name> --all }}} * https://docs.conda.io/projects/conda/en/4.6.0/_downloads/52a95608c49671267e40c689e0bc00ca/conda-cheatsheet.pdf |
|
| Line 16: | Line 119: |
| {{{ | {{{#!highlight bash |
| Line 23: | Line 126: |
| {{{ | {{{#!highlight R |
| Line 25: | Line 128: |
| #[1] "/tools/R_libs/3.6.1" | #[1] "/tools/R_libs/3.6.1" |
| Line 31: | Line 134: |
| {{{ | {{{#!highlight R |
| Line 37: | Line 140: |
| {{{ | {{{#!highlight R |
| Line 43: | Line 146: |
| {{{ | {{{#!highlight R |
| Line 52: | Line 155: |
||<tablestyle="width: 99%;" style="border: none; font-weight: bold; font-size: 20px;"> <<[[Check jobs]] ||<style="text-align: center; width: 33%; border: none; font-weight: bold; font-size: 20px;"> ^[[#top]] ||<style="border: none; width: 33%; text-align: right; font-weight: bold; font-size: 20px;"> FINISH || |
Installing software
Contents
Installing software or pipeline can be a difficult task to accomplish. Therefore we suggest all users to make the programs they installed available to all users whenever it is possible. In general programs/pipelines that should be available to all are installed in /tools folder. On this page will be described how to make tools available on our system for installation procedure of your specific program please refer to the instructions coming with that program.
Who can install software
In principle any users except students and guests should be able to install bioinfo tools in folders made for that purpose.
Test data
We do ask users to provide test data for all install software. This way it becomes easy to check whether a software works or not. It is also good to define default command to test a tool, see next section to know more about this.
Install binaries
Coming soon
Use easybuild
Coming later
Install miniconda/anaconda packages
Anaconda (or Conda) is a well known program for managing environments and packages. It is very popular inn bioinformatics as it allows users with little experience to easily install needed tools and all dependencies. It also makes it easy for users to load the specific environments they need without modifying their bashrc themselves.
On this server you will find 2 versions of miniconda installed, miniconda3 for python 3 and miniconda2 for python 2.7 environments.
Conda's users guide can be found here, https://docs.conda.io/projects/conda/en/latest/user-guide/index.html.
1 conda deactivate
1 conda activate --stack <env_name>
Replace <env_name>, with a descriptive name.
1 # Create an environment with only default packages
2 conda create --name <env_name>
3 # You can be asked to confirm the location of the location of the envs folder
4 # Use the command below to accept any question by default
5 conda create --yes --name <env_name>
6
7 # Make an environment with python 3.6
8 conda create --yes --name <env_name> python=3.6
9
10 # Create an environment from YAML file
11 conda env create -f <environment.yml>
Install R packages
- Packages for R are installed within R, so to install R packages, you will first need to load the module R and run R.
Use the following R command to print where are the R libraries. Users libraries are installed in /tools/R_libs/3.6.1
- To see all available/installed packages
1 .packages(all.available=T)
To install R packages and dependancies. Installation will automatically be done in a /tools/R_libs/3.6.1 if permissions allows it. If not you could be asked to create a private one.
1 install.packages(c("<package1>", "<package2>,..."), dep=T)
To install BIOINFORMATICS R PACKAGES, we recommend to use "bioconductor" channels.
Read more about R and bioconductor:
^#top |
FINISH |