forked from sanger-pathogens/companion
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
138 lines (123 loc) · 3.99 KB
/
Dockerfile
File metadata and controls
138 lines (123 loc) · 3.99 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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
#
# From this base-image / starting-point
#
FROM debian:testing
#
# Authorship
#
MAINTAINER ss34@sanger.ac.uk
#
# Pull in packages from testing
#
RUN apt-get update -qq
#
# Install dependencies
# we need blast2 for ABACAS2 as it does not use BLAST+ yet
#
RUN apt-get install build-essential hmmer lua5.1 ncbi-blast+ blast2 snap \
unzip cpanminus mummer infernal exonerate mafft fasttree \
circos libsvg-perl libgd-svg-perl python-setuptools \
libc6-i386 lib32stdc++6 lib32gcc1 \
last-align --yes --force-yes
RUN ln -fs /usr/bin/fasttree /usr/bin/FastTree && \
cpanm --force SVG Carp Storable Bio::SearchIO List::Util \
Getopt::Long && \
rm -rf /root/.cpanm/work/
#
# Install AUGUSTUS (binaries)
#
ADD http://bioinf.uni-greifswald.de/augustus/binaries/augustus-3.1.tar.gz /opt/augustus-3.1.tar.gz
RUN cd /opt && \
tar -xzvf augustus* && \
rm -rf *.tar.gz && \
mv augustus* augustus && \
rm -rf augustus/docs
#
# Install GenomeTools (most recent git master)
#
ADD https://github.com/genometools/genometools/archive/master.zip /opt/genometools-master.zip
RUN cd /opt && \
unzip genometools-master.zip && \
cd /opt/genometools-master && \
make -j3 cairo=no curses=no prefix=/usr && \
make -j3 cairo=no curses=no prefix=/usr install && \
cd gtpython && \
python setup.py install && \
cd / && \
rm -rf /opt/genometools-master*
#
# Install ARAGORN
# (this is done from source instead of Debian b/c Debian-built version hangs)
#
ADD http://mbio-serv2.mbioekol.lu.se/ARAGORN/Downloads/aragorn1.2.36.tgz /opt/aragorn.tgz
RUN cd /opt && \
tar -xvf aragorn.tgz && \
mv aragorn1* aragorn && \
cd aragorn && \
gcc -O2 -o aragorn aragorn*.c
#
# Install and configure OrthoMCL
#
ADD http://www.orthomcl.org/common/downloads/software/unsupported/v1.4/ORTHOMCL_V1.4_mcl-02-063.tar /opt/omcl.tar
RUN cd /opt && \
tar -xvf omcl.tar && \
tar -xzvf mcl-02-063.tar.gz && \
rm -f omcl.tar mcl-02-063.tar.gz && \
cd /opt/mcl-* && \
./configure && \
make -j3 && \
make install && \
cd / && \
rm -rf /opt/mcl*
RUN sed -i 's/our .PATH_TO_ORTHOMCL.*=.*/our $PATH_TO_ORTHOMCL = ".\/";/' /opt/ORTHOMCLV1.4/orthomcl_module.pm && \
sed -i 's/our .BLASTALL.*=.*/our $BLASTALL = "\/usr\/bin\/blastall";/' /opt/ORTHOMCLV1.4/orthomcl_module.pm && \
sed -i 's/our .FORMATDB.*=.*/our $FORMATDB = "\/usr\/bin\/formatdb";/' /opt/ORTHOMCLV1.4/orthomcl_module.pm && \
sed -i 's/our .MCL.*=.*/our $MCL = "\/usr\/local\/bin\/mcl";/' /opt/ORTHOMCLV1.4/orthomcl_module.pm
#
# Install Gblocks
#
ADD http://molevol.cmima.csic.es/castresana/Gblocks/Gblocks_Linux64_0.91b.tar.Z /opt/gblocks64.tar.Z
RUN cd /opt && \
tar -xzvf gblocks64.tar.Z && \
rm -rf gblocks64.tar.Z && \
cp Gblocks_0.91b/Gblocks /usr/bin/Gblocks && \
chmod 755 /usr/bin/Gblocks
#
# get GO OBO file
#
ADD http://geneontology.org/ontology/go.obo /opt/go.obo
#
# get Pfam pHMMs
#
RUN mkdir -p /opt/pfam
ADD http://ftp.ebi.ac.uk/pub/databases/Pfam/current_release/Pfam-A.hmm.gz /opt/pfam/Pfam-A.hmm.gz
RUN cd /opt/pfam && \
gunzip Pfam-A.hmm.gz && \
hmmpress Pfam-A.hmm && \
rm -f Pfam-A.hmm
#
# copy data dir
#
RUN mkdir -p /opt/data
ADD ./data /opt/data
#
# install RATT (keep up to date from build directory)
#
ADD ./RATT /opt/RATT
#
# install ABACAS (keep up to date from build directory)
#
ADD ./ABACAS2 /opt/ABACAS2
#
# install gff3 to EMBL converter
#
ADD https://github.com/sanger-pathogens/gff3toembl/archive/master.zip /opt/gff3toembl-master.zip
RUN cd /opt && \
unzip gff3toembl-master.zip && \
cd /opt/gff3toembl-master && \
python setup.py install
ENV AUGUSTUS_CONFIG_PATH /opt/augustus/config
ENV RATT_HOME /opt/RATT
ENV GT_RETAINIDS yes
ENV PERL5LIB /opt/ORTHOMCLV1.4/:/opt/RATT/:/opt/ABACAS2/:$PERL5LIB
ENV PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/augustus/bin:/opt/augustus/scripts:/opt/ORTHOMCLV1.4:/opt/RATT:/opt/ABACAS2:/opt/aragorn:$PATH