Most users will not need to install PICRUSt, but can instead use the online Galaxy version.
PICRUSt is written in python, and has been tested on Mac OS X and Linux systems. To install PICRUSt, first install all of the mandatory requirements, following the instructions on their respective websites. You should then download PICRUSt. You have the choice of downloading either the release version (recommended for most users) or the development version (recommended for users who need access to the latest features, and are willing to tolerate some instability in the code). Next, you will download the large precalculated PICRUSt files and place them in your picrust/data directory. Finally, you’ll install PICRUSt. Each of these steps are detailed below.
Step 1. Install Requirements¶
Follow the install instructions found on the website of each of the dependencies below to install PICRUSt’s dependencies.
These dependencies are automatically installed with python setup.py install:
Numpy has to be installed manually:
- numpy (version 1.5.1)
You can install it with the command:
pip install numpy==1.5.1
Rebuilding PICRUSt’s precalculated 16S rRNA OR Genome Predictions (optional)
Step 2. Download PICRUSt¶
The latest release of PICRUSt is picrust-1.1.0.
We recommend the release version of PICRUSt for most users. If you’re not sure whether you want the release or the development version of PICRUSt, you should likely go with the release version.
Step 3. Download PICRUSt’s precalculated files¶
PICRUSt precomputes most of the computationally intensive pipeline so each user can get predictions with less steps. These files are changed whenever there is a new release of the GreenGenes tree and/or a new release of IMG. These files are fairly large and need to be downloaded separately. Also, you only need the version that corresponds to the GreenGenes that you picked OTUs against (see Picking OTUs for use in PICRUSt).
Assuming you will be picking OTUs against the newest version of GreenGenes and want KEGG Ortholog predictions, then the following files will be sufficient. If you picked against an older version of GreenGenes or are interested in different functional predictions (e.g. COGs) then see the complete list of PICRUSt’s Precalculated Files.
These files must be placed in your `picrust-1.1.0/picrust/data` directory before installing.
Step 4. Install PICRUSt¶
After downloading PICRUSt, you’ll need to unzip the file. If you’ve downloaded the release version, do this with the following command:
tar -xzf picrust-1.1.0.tar.gz
You’ll then change into the new
picrust-1.1.0 directory as follows:
And finally, you’ll install PICRUSt with the following command:
sudo python setup.py install
If you don’t have
sudo access on the system where you’re trying to install PICRUSt, there are several variations on this command that you can use to install only for the current user (as opposed to a system-wide installation, which the above command will perform). See this discussion.