Booom...........

LabNotes and Random Thoughts...............

Friday, August 28, 2015

picrust hack


I'm running some function profiling of the metagenomic data these days and want to run Picrust. 

Picrust requires numpy == 1.5.1 . The system numpy version is 1.9.2, which I don't want to downgrade to 1.5.1. So I decided to put a separate virtual env running for picrust

The steps I went tru 

virtualenv picrustEnv
source picrustEnv/bin/activate
pip list
pip install --upgrade pip
pip install numpy==1.5.1
pip install biom
pip install cogent
pip isntall ipython
pip list
# biom will show some warnings ... no worries its there
git clone git://github.com/picrust/picrust.git picrust
cd picrust
which python # check exactly which python is running
python setup.py install
cd ..
pip list # check if picrust is installed
which normalize_by_copy_number.py
normalize_by_copy_number.py -h
deactivate # get out of the env



Next time when I'm running picrust source this env and run the python programs inside it

source picrustEnv/bin/activate

No comments: