Difference between revisions of "Ipyrad"

From HPC users
Jump to navigationJump to search
Line 26: Line 26:


The new environment can now be activated. We recommend using the command(*):
The new environment can now be activated. We recommend using the command(*):
  [carl]$ source activate ipyrad2
  [carl]$ source activate ipyrad
  (ipyrad) [carl]$
  (ipyrad) [carl]$
You will notice the change of the command-line prompt to indicate the active environment. Packages that are now installed with <tt>conda install</tt> will be installed in this environment and not interfere with other software installations.
You will notice the change of the command-line prompt to indicate the active environment. Packages that are now installed with <tt>conda install</tt> will be installed in this environment and not interfere with other software installations.
Line 33: Line 33:
(*) The alternative <tt>conda activate</tt> requires you to use the command <tt>conda init bash</tt> first which modifies your <tt>.bashrc</tt> and more or less forces you to always use the same version of <tt>Anaconda3</tt>.
(*) The alternative <tt>conda activate</tt> requires you to use the command <tt>conda init bash</tt> first which modifies your <tt>.bashrc</tt> and more or less forces you to always use the same version of <tt>Anaconda3</tt>.
}}
}}
Now you can install <tt>ipyrad</tt> along with a the package <tt>mpi4py</tt> for parallel computing?
(ipyrad) [carl]$ conda install ipyrad -c bioconda
(ipyrad) [carl]$ conda install mpi4py -c conda-forge
These commands will take a moment to complete but after that <tt>ipyrad</tt> is ready to use. And next time you log in or in a job script you only need the commands
[carl]$ module load hpc-env/8.3
[carl]$ module load Anaconda/2020.02
[carl]$ source activate ipyrad
to get started. If you want to leave the environment you can always type
(ipyrad) [carl]$ conda deactivate
which should return you to the normal command-line prompt.

Revision as of 13:41, 15 June 2020

Introduction

The software ipyrad is an interactive toolkit for assembly and analysis of restriction-site associated genomic data sets (e.g., RAD, ddRAD, GBS) for population genetic and phylogenetic studies. [1]

At the moment, there is no central installation of ipyrad, however, you can easily install it yourself using Anaconda3 as described below.

Installation

To install ipyrad you first need to load a module for Anaconda3. In this example, we use Anaconda3/2020.02 which can be found in hpc-env/8.3 (if you want to use a different version/environment you can search with module av Anaconda3 or module spider Anaconda3):

[carl]$ module load hpc-env/8.3
[carl]$ module load Anaconda/2020.02

The next step is to create a new environment for ipyrad with the command:

[carl]$ conda create --name ipyrad
Collecting package metadata (current_repodata.json): done
Solving environment: done

## Package Plan ##
  environment location: /user/abcd1234/.conda/envs/ipyrad

Proceed ([y]/n)?

Preparing transaction: done
Verifying transaction: done
Executing transaction: done

The name for the environment can be freely chosen and it will be created after you have confirmed to proceed with pressing (y and)enter. You may see a warning about an outdated conda which you can safely ignore (or, if you wish, you can switch to a newer module of Anaconda3 if available).

The new environment can now be activated. We recommend using the command(*):

[carl]$ source activate ipyrad
(ipyrad) [carl]$

You will notice the change of the command-line prompt to indicate the active environment. Packages that are now installed with conda install will be installed in this environment and not interfere with other software installations.

(*) The alternative conda activate requires you to use the command conda init bash first which modifies your .bashrc and more or less forces you to always use the same version of Anaconda3.

Now you can install ipyrad along with a the package mpi4py for parallel computing?

(ipyrad) [carl]$ conda install ipyrad -c bioconda
(ipyrad) [carl]$ conda install mpi4py -c conda-forge

These commands will take a moment to complete but after that ipyrad is ready to use. And next time you log in or in a job script you only need the commands

[carl]$ module load hpc-env/8.3
[carl]$ module load Anaconda/2020.02
[carl]$ source activate ipyrad

to get started. If you want to leave the environment you can always type

(ipyrad) [carl]$ conda deactivate

which should return you to the normal command-line prompt.