-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathantismash.build
94 lines (66 loc) · 2.09 KB
/
antismash.build
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
92
93
. tools.config
set -e
if [ ! -f ${PREFIX}/bin/diamond ]; then
bash -x diamond.build
fi
if [ ! -f ${PREFIX}/bin/prodigal ]; then
bash -x prodigal.build
fi
if [ ! -f ${PREFIX}/bin/blastp ]; then
bash -x blast.build
fi
if [ ! -f ${PREFIX}/bin/hmmpfam2 ]; then
bash -x hmmer2.build
fi
if [ ! -f ${PREFIX}/bin/hmmscan ]; then
bash -x hmmer3.build
fi
if [ ! -f ${PREFIX}/bin/muscle ]; then
bash -x muscle.build
fi
if [ ! -f ${PREFIX}/bin/FastTree ]; then
bash -x fasttree.build
fi
if [ ! -f ${PREFIX}/bin/glimmerhmm ]; then
bash -x glimmerhmm.build
fi
if [ ! -f ${PREFIX}/bin/meme ]; then
bash -x meme.build
fi
if [ ! -f ${PREFIX}/bin/python3 ]; then
bash -x python3.build
fi
python -m venv ${PREFIX}/lib/venvs/antismash
source ${PREFIX}/lib/venvs/antismash/bin/activate
VERSION=5.1.2
wget -q https://github.com/antismash/antismash/archive/5-1-2.tar.gz
tar xzf 5-1-2.tar.gz
cd antismash-5-1-2
# pfam 32.0 update
wget -q -O - https://github.com/antismash/antismash/commit/210228d7920a23775d1defea0531c9ca786a9660.patch \
| patch -p1
# pfam2go update
wget -q -O - https://github.com/antismash/antismash/commit/e88a9601c36998d7812a8f21c0042f7e03b6eb92.patch \
| patch -p1
# Improve thioamide-NRP rules
wget -q -O - https://github.com/antismash/antismash/commit/d9593343f05e82dc30646dd5cd83f0fda66bf966.patch \
| patch -p1
# find more transAT-PKS clusters
wget -q -O - https://github.com/antismash/antismash/commit/e78eef4aa07af4b6dfdc72611bbb299a7dc04431.patch \
| patch -p1
# clusterfinder: fix subregions being added twice
wget -q -O - https://github.com/antismash/antismash/commit/aa8968e6d7bc8c220af1e0256a2949873866bf0f.patch \
| patch -p1
pip3 install helperlibs
pip3 install numpy
pip3 install matplotlib
pip3 install jinja2
pip3 install bcbio-gff
pip3 install pyScss
pip3 install pysvg-py3
python3 setup.py install
cd ..
rm -rf 5-1-2.tar.gz antismash-5-1-2
ln -sf ${PREFIX}/lib/venvs/antismash/bin/antismash ${PREFIX}/bin/
ln -sf ${PREFIX}/lib/venvs/antismash/bin/download-antismash-databases ${PREFIX}/bin/
chgrp -h ${GROUP} ${PREFIX}/bin/{antismash,download-antismash-databases}