forked from StaPH-B/docker-builds
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
171 lines (152 loc) · 4.79 KB
/
Dockerfile
File metadata and controls
171 lines (152 loc) · 4.79 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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
FROM ubuntu:xenial
# metadata
LABEL base.image="ubuntu:xenial"
LABEL container.version="2"
LABEL software="Shovill"
LABEL software.version="1.0.4"
LABEL description="faster than SPAdes de novo DBG genome assembler (with assembler options!)"
LABEL website="https://github.com/tseemann/shovill"
LABEL lisence="https://github.com/tseemann/shovill/blob/master/LICENSE"
LABEL maintainer="Curtis Kapsak"
LABEL maintainer.email="pjx8@cdc.gov"
RUN apt-get update && apt-get install -y python \
wget \
pigz \
zlib1g-dev \
make \
gcc \
g++ \
libpthread-stubs0-dev \
openjdk-9-jre \
unzip \
bzip2 \
libncurses5-dev \
libbz2-dev \
liblzma-dev \
libcurl4-gnutls-dev \
libssl-dev \
libfindbin-libs-perl
# get spades, unpack, remove tarball
RUN wget http://cab.spbu.ru/files/release3.13.0/SPAdes-3.13.0-Linux.tar.gz &&\
tar -xzf SPAdes-3.13.0-Linux.tar.gz &&\
rm SPAdes-3.13.0-Linux.tar.gz
# get Seqtk
RUN mkdir seqtk &&\
cd seqtk &&\
wget https://github.com/lh3/seqtk/archive/v1.3.tar.gz &&\
tar -zxf v1.3.tar.gz &&\
rm v1.3.tar.gz &&\
cd seqtk-1.3/ &&\
make &&\
make install
# get Mash and the associated RefSeqSketches k=21 s=1000 database. Is db even needed?
RUN wget https://github.com/marbl/Mash/releases/download/v2.1/mash-Linux64-v2.1.tar && \
tar -xvf mash-Linux64-v2.1.tar && \
rm -rf mash-Linux64-v2.1.tar
#### Commented out because I don't think the Mash database is needed
#make database directory, store mash db there
#mkdir /db && \
#cd /db && \
#wget https://gembox.cbcb.umd.edu/mash/RefSeqSketchesDefaults.msh.gz && \
#gunzip RefSeqSketchesDefaults.msh.gz
# install lighter 1.1.1
RUN wget https://github.com/mourisl/Lighter/archive/v1.1.1.tar.gz &&\
tar -zxf v1.1.1.tar.gz &&\
rm -rf v1.1.1.tar.gz &&\
cd Lighter-1.1.1 &&\
make
# install trimmomatic
RUN mkdir trimmomatic &&\
cd trimmomatic &&\
wget http://www.usadellab.org/cms/uploads/supplementary/Trimmomatic/Trimmomatic-0.38.zip &&\
unzip Trimmomatic-0.38.zip &&\
rm -rf Trimmomatic-0.38.zip &&\
chmod +x Trimmomatic-0.38/trimmomatic-0.38.jar &&\
echo "#!/bin/bash" >> trimmomatic &&\
echo "exec java -jar /trimmomatic/Trimmomatic-0.38/trimmomatic-0.38.jar """"$""@"""" " >> trimmomatic &&\
chmod +x trimmomatic
# install bwa (mem)
RUN mkdir bwa &&\
cd bwa &&\
wget https://github.com/lh3/bwa/releases/download/v0.7.17/bwa-0.7.17.tar.bz2 &&\
tar -xjf bwa-0.7.17.tar.bz2 &&\
rm bwa-0.7.17.tar.bz2 &&\
cd bwa-0.7.17 &&\
make
# install samtools
RUN mkdir samtools &&\
cd samtools &&\
wget https://github.com/samtools/samtools/releases/download/1.9/samtools-1.9.tar.bz2 &&\
tar -xjf samtools-1.9.tar.bz2 &&\
rm samtools-1.9.tar.bz2 &&\
cd samtools-1.9 &&\
./configure &&\
make &&\
make install
# install skesa binary?(I think?)
RUN mkdir skesa &&\
cd skesa &&\
wget https://github.com/ncbi/SKESA/releases/download/v2.3.0/skesa.centos6.10 &&\
mv skesa.centos6.10 skesa &&\
chmod +x skesa
# install MEGAHIT binary (I'm pretty sure these are binaries at this point)
RUN mkdir megahit &&\
cd megahit &&\
wget https://github.com/voutcn/megahit/releases/download/v1.1.4/megahit_v1.1.4_LINUX_CPUONLY_x86_64-bin.tar.gz &&\
tar -xzf megahit_v1.1.4_LINUX_CPUONLY_x86_64-bin.tar.gz &&\
rm megahit_v1.1.4_LINUX_CPUONLY_x86_64-bin.tar.gz
# install Velvet
RUN mkdir velvet &&\
cd velvet &&\
wget https://github.com/dzerbino/velvet/archive/v1.2.10.tar.gz &&\
tar -xzf v1.2.10.tar.gz &&\
rm -rf v1.2.10.tar.gz &&\
cd velvet-1.2.10 &&\
make
# install Flash
RUN mkdir flash &&\
cd flash &&\
wget https://sourceforge.net/projects/flashpage/files/FLASH-1.2.11.tar.gz &&\
tar -zxf FLASH-1.2.11.tar.gz &&\
rm -rf FLASH-1.2.11.tar.gz &&\
cd FLASH-1.2.11 &&\
make
# install pilon binary
RUN mkdir pilon &&\
cd pilon &&\
wget https://github.com/broadinstitute/pilon/releases/download/v1.22/pilon-1.22.jar &&\
chmod +x pilon-1.22.jar &&\
echo "#!/bin/bash" >> pilon &&\
echo "exec java -jar /pilon/pilon-1.22.jar """"$""@"""" " >> pilon &&\
chmod +x pilon
# Samclip
RUN mkdir samclip &&\
cd samclip &&\
wget https://raw.githubusercontent.com/tseemann/samclip/master/samclip &&\
chmod +x samclip
# aaannnddd finally install shovill v1.0.4 itself
# extra perl module I had to install via apt-get: libfindbin-libs-perl
RUN mkdir shovill &&\
cd shovill &&\
wget https://github.com/tseemann/shovill/archive/v1.0.4.tar.gz &&\
tar -xzf v1.0.4.tar.gz &&\
rm v1.0.4.tar.gz
# create /data directory and set as working directory
RUN mkdir /data
WORKDIR /data
# set $PATH's
ENV PATH="${PATH}:\
/SPAdes-3.13.0-Linux/bin:\
/mash-Linux64-v2.1:\
/Lighter-1.1.1:\
/trimmomatic:\
/bwa/bwa-0.7.17:\
/skesa:\
/megahit/megahit_v1.1.4_LINUX_CPUONLY_x86_64-bin:\
/velvet/velvet-1.2.10:\
/flash/FLASH-1.2.11:\
/shovill/shovill-1.0.4/bin:\
/pilon:\
/samclip"
# set perl locale settings
ENV LC_ALL=C