comparison pyPRADA_1.2/INSTALL @ 0:acc2ca1a3ba4

Uploaded
author siyuan
date Thu, 20 Feb 2014 00:44:58 -0500
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:acc2ca1a3ba4
1 pyPRADA installation
2
3 pyPRADA requires python 2.6 or 2.7, third party packages pysam and biopython.
4
5 1. Install python
6 By default python is installed in Linux system. To check your python version, type
7
8 python -V
9
10 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.
11 (1) download python
12 $ wget http://www.python.org/ftp/python/2.7.2/Python-2.7.2.tgz
13 (2) unzip
14 $ tar zxfv Python-2.7.2.tgz
15 (3) configure & make
16 $ cd Python-2.7.2
17 $ ./configure --prefix=/where/you/want/to/install
18 $ make
19 $ make install
20 (4) add python path to your system path
21 In B shell, edit .bashrc file in your home directory, add the following line
22 export PATH=/python-dir/bin:$PATH
23 In C shell, edit .cshrc file in your home directory, add the following line
24 setenv PATH /python-dir/bin:$PATH
25 To make the changes effective, source the .bashrc file or .cshrc file
26 $ source .bashrc
27
28 Now check python version again. Python 2.7 should have been installed and set to be the default python.
29
30 2. Install third party packages
31 (1) download pysam and biopython
32 $ wget https://pysam.googlecode.com/files/pysam-0.6.tar.gz
33 $ wget http://biopython.org/DIST/biopython-1.60.tar.gz
34 (2) unzip files
35 $ tar zxfv biopython-1.60.tar.gz
36 $ tar zxfv pysam-0.6.tar.gz
37 (3) configure / make
38 $ cd biopython-1.60
39 $ python setup.py install
40 $ cd pysam-0.6
41 $ python setup.py install
42 (4) test
43 You may leave the directories and test your package installations.
44 $ cd
45 $ python
46 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.
47
48 >>> import pysam
49 >>> import Bio
50
51 3. Install pyPRADA
52 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.
53 First, unzip the package to the location you prefer. To add the path to system, see step 1.(4)
54
55 4. Test pyRADA
56 To test pyPRADA, type the following command in your terminal. It will return a user manual for prada-fusion module.
57
58 $ prada-fusion
59
60 5. Help
61 For assistance or bug report, contact Siyuan Zheng (szheng2@mdanderson.org) or Rahul Vegesna (RVegesna@mdanderson.org).
62