Mercurial > repos > siyuan > prada
view pyPRADA_1.2/INSTALL @ 3:f17965495ec9 draft default tip
Uploaded
author | siyuan |
---|---|
date | Tue, 11 Mar 2014 12:14:01 -0400 |
parents | acc2ca1a3ba4 |
children |
line wrap: on
line source
pyPRADA installation pyPRADA requires python 2.6 or 2.7, third party packages pysam and biopython. 1. Install python By default python is installed in Linux system. To check your python version, type python -V You may choose install python in your own directory, or ask your administrator to install it for you. Here below shows how to install python to your local directory. (1) download python $ wget http://www.python.org/ftp/python/2.7.2/Python-2.7.2.tgz (2) unzip $ tar zxfv Python-2.7.2.tgz (3) configure & make $ cd Python-2.7.2 $ ./configure --prefix=/where/you/want/to/install $ make $ make install (4) add python path to your system path In B shell, edit .bashrc file in your home directory, add the following line export PATH=/python-dir/bin:$PATH In C shell, edit .cshrc file in your home directory, add the following line setenv PATH /python-dir/bin:$PATH To make the changes effective, source the .bashrc file or .cshrc file $ source .bashrc Now check python version again. Python 2.7 should have been installed and set to be the default python. 2. Install third party packages (1) download pysam and biopython $ wget https://pysam.googlecode.com/files/pysam-0.6.tar.gz $ wget http://biopython.org/DIST/biopython-1.60.tar.gz (2) unzip files $ tar zxfv biopython-1.60.tar.gz $ tar zxfv pysam-0.6.tar.gz (3) configure / make $ cd biopython-1.60 $ python setup.py install $ cd pysam-0.6 $ python setup.py install (4) test You may leave the directories and test your package installations. $ cd $ python This brings you to the python interactive interface. Import the two packages, if no error occurs, your packages have been successfully installed. Otherwise, consult your administrator or someone with experiences with python. >>> import pysam >>> import Bio 3. Install pyPRADA pyPRADA has been pre-compiled, thus does not require configure/make steps. To make it more convenient, we recommend to add its path to system path. First, unzip the package to the location you prefer. To add the path to system, see step 1.(4) 4. Test pyRADA To test pyPRADA, type the following command in your terminal. It will return a user manual for prada-fusion module. $ prada-fusion 5. Help For assistance or bug report, contact Siyuan Zheng (szheng2@mdanderson.org) or Rahul Vegesna (RVegesna@mdanderson.org).