forked from FlavielleBM/cref2
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile.old
More file actions
91 lines (75 loc) · 3.31 KB
/
Makefile.old
File metadata and controls
91 lines (75 loc) · 3.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
# Sequence alignment
blastdb:
mkdir -p data/blastdb
wget ftp://ftp.wwpdb.org/pub/pdb/derived_data/pdb_seqres.txt.gz -O data/blastdb/pdb_seqres.txt.gz
cd data/blastdb && gunzip -f pdb_seqres.txt.gz && \
makeblastdb -in pdb_seqres.txt -out pdbseqres -dbtype prot
rm -rf data/pdb_seqres.txt
# PDB files from the rcsb
download_pdb:
# WARNING: Downloading and extracting the pdb requires more than 100GB
mkdir -p data/pdb_rsync
mkdir -p data/pdb
rsync -rlpt -v -z --delete --port=33444 \
rsync.wwpdb.org::ftp_data/structures/divided/pdb/ data/pdb_rsync/
cp -r data/pdb_rsync/* data/pdb/
gunzip -r data/pdb/
# Andrew Martin's torsions lib
torsions:
cc -o libs/torsions libs/torsions.c -lm
# Runs torsions for every file in the PDB and saves torsion angles to database
torsions_db: torsions
bash -i -c "source env/bin/activate && python -m cref.utils.cache_torsions data/pdb data/torsions.db"
# Tool used to predict secondary structure
# http://scratch.proteomics.ics.uci.edu/index.html
scratch:
mkdir libs
cd libs && wget http://download.igb.uci.edu/SCRATCH-1D_1.0.tar.gz
cd libs && tar xvzf SCRATCH-1D_1.0.tar.gz
cd libs/SCRATCH-1D_1.0 && perl install.pl
# Lib to write a PDB file from torsion angles
peptide:
git clone https://github.com/mchelem/peptide
# Python dependencies
python_packages:
virtualenv --python=/usr/bin/python3.5 env
bash -i -c "source env/bin/activate && pip install pip --upgrade && pip install -r requirements.txt && pip install git+https://github.com/mchelem/porter_paleale"
# Lib required when interacting with wCReF
server_packages:
# Only required when interfacing with the wCReF interface
sudo apt-get install -y rabbitmq-server
# Ubuntu packages
packages:
sudo apt-get install -y git # Required to install pip packages from github
sudo apt-get install -y tcl8.4-dev tk8.4-dev # Required to generate ramachandram plots
sudo apt-get install -y liblapack-dev gcc gfortran # Required by numpy
sudo apt-get install -y ncbi-blast+ # Required to make sequence alignments
sudo apt-get install -y python3.5 python3.5-dev python3.5-tk python-virtualenv # Basic python env
sudo apt-get install -y pymol
# Download secondary structures from the PDB and writes them to a database
ss_db:
wget http://www.rcsb.org/pdb/files/ss.txt.gz -O data/ss.txt.gz
cd data && gunzip -f ss.txt.gz
bash -i -c "source env/bin/activate && python -m cref.utils.import_pdb_ss data/ss.txt data/ss.db"
rm -rf data/ss.txt
# Download precomputed structures (avoid downloading the entire PDB)
precomputed_structure_databases:
# Downloads precomputed secondary structure database
# Can be generated by running "make ss_db"
wget https://www.dropbox.com/s/xb7qc49p75k9qlf/ss.db.tgz?dl=0 -O ss.db.tgz
tar xzvf ss.db.tgz
rm -f ss.db.tgz
# Downloads precomputed torsions database
# Can be generated by running "make download_pdb && make torsions_db"
# WARNING: Downloading and extracting the pdb requires more than 100GB
wget https://www.dropbox.com/s/18q2t35eh6rml1s/torsions.db.tgz?dl=0 -O torsions.db.tgz
tar xzvf torsions.db.tgz
rm -f torsions.db.tgz
# Test coverage reports
coverage:
bash -i -c "source env/bin/activate && coverage run --source=cref -m unittest discover"
coverage html
coverage report
databases: blastdb precomputed_structure_databases
install: packages python_packages peptide torsions databases scratch
mkdir -p predictions