annotate pyPRADA_1.2/INSTALL @ 3:f17965495ec9 draft default tip

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