-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dockerfile
175 lines (146 loc) · 4.97 KB
/
Dockerfile
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
172
173
174
175
FROM ubuntu@sha256:2695d3e10e69cc500a16eae6d6629c803c43ab075fa5ce60813a0fc49c47e859
MAINTAINER Otto Jolanki
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y \
bc \
gcc \
g++ \
zlib1g-dev \
libbz2-dev \
liblzma-dev \
libcurl4-openssl-dev \
libcrypto++-dev \
libgsl-dev \
wget \
make \
autoconf \
ncurses-dev \
build-essential \
git \
openjdk-8-jre \
pigz \
python \
python3 \
tabix \
libboost-dev \
python-pip \
python3-pip \
tzdata \
r-base
RUN mkdir /software
WORKDIR /software
ENV PATH="/software:${PATH}"
RUN wget --quiet https://github.com/samtools/htslib/releases/download/1.10.2/htslib-1.10.2.tar.bz2 \
&& tar xf htslib-1.10.2.tar.bz2 \
&& cd htslib-1.10.2 \
&& ./configure \
&& make \
&& make install
RUN wget --quiet https://github.com/smithlabcode/preseq/releases/download/v2.0.3/preseq_v2.0.3.tar.bz2 \
&& tar xf preseq_v2.0.3.tar.bz2 \
&& cd preseq \
&& make HAVE_HTSLIB=1 all
ENV PATH="/software/preseq:${PATH}"
RUN wget --quiet https://github.com/samtools/samtools/releases/download/1.10/samtools-1.10.tar.bz2 \
&& tar xf samtools-1.10.tar.bz2 \
&& cd samtools-1.10 \
&& ./configure --with-htslib=../htslib-1.10.2 \
&& make \
&& make install
# Install BWA - do some magicks so it compiles with musl.c
RUN git clone https://github.com/lh3/bwa.git \
&& cd bwa \
&& git checkout 0.7.12 \
&& make
ENV PATH="/software/bwa:${PATH}"
# Get picard and make alias
RUN wget --quiet https://github.com/broadinstitute/picard/releases/download/2.8.1/picard.jar
RUN chmod 755 picard.jar
# Install bedops
RUN git clone https://github.com/bedops/bedops.git \
&& cd bedops \
&& git checkout v2.4.35 \
&& make \
&& make install
ENV PATH="/software/bedops/bin:${PATH}"
# Install bedtools
RUN wget --quiet https://github.com/arq5x/bedtools2/releases/download/v2.25.0/bedtools-2.25.0.tar.gz \
&& tar xf bedtools-2.25.0.tar.gz \
&& cd bedtools2 \
&& make
ENV PATH="/software/bedtools2/bin/:${PATH}"
# Install Hotspot1
RUN git clone https://github.com/StamLab/hotspot.git \
&& cd hotspot \
&& git checkout v4.1.1 \
&& cd hotspot-distr/hotspot-deploy \
&& make
ENV PATH="/software/hotspot/hotspot-distr/ScriptTokenizer/src:${PATH}"
ENV PATH="/software/hotspot/hotspot-distr/hotspot-deploy/bin:${PATH}"
ENV HOTSPOT_DIRECTORY="/software/hotspot/hotspot-distr"
RUN git clone https://github.com/ENCODE-DCC/kentUtils_bin_v381.git
ENV PATH="/software/kentUtils_bin_v381/bin:${PATH}"
# Install modwt for hotspot2
RUN git clone https://github.com/StamLab/modwt.git \
&& cd modwt \
&& git checkout 28e9f479c737836ffc870199f2468e30659ab38d \
&& make
ENV PATH="/software/modwt/bin:${PATH}"
# Install hotspots2 v2.1
RUN git clone \
-b 'v2.1' \
--single-branch \
--depth 1 \
https://github.com/Altius/hotspot2.git \
&& cd hotspot2 \
&& make
ENV PATH="/software/hotspot2/bin:${PATH}"
ENV PATH="/software/hotspot2/scripts:${PATH}"
# Pull bwa_2.6.0-rc-2 tag of stampipes
RUN git clone \
-b 'bwa_2.6.0-rc-2' \
--single-branch \
--depth 1 \
https://github.com/StamLab/stampipes.git
ENV STAMPIPES="/software/stampipes"
# Install stampipes requirements
RUN pip install \
cython==0.29.15 \
numpy==1.16.6 \
scipy==1.2.3
RUN pip3 install \
biopython==1.76 \
pysam==0.15.0 \
numpy==1.18.1 \
scipy==1.4.1 \
scikit-learn==0.22.1 \
cutadapt==2.10
RUN pip install \
biopython==1.76 \
pysam==0.15.0 \
scikit-learn==0.20.4 \
statsmodels==0.11.0 \
multiprocessing==2.6.2.1 \
matplotlib==2.2.5 \
git+https://github.com/jvierstra/genome-tools@dfa1a35ac7a59da175d521f24e73f8d6fd79e6e3 \
git+https://github.com/jvierstra/footprint-tools@eb6a172e51ab19cd7c16699bd4755975ae8b72f7
RUN apt-get install -y bowtie
#make scripts findable by which
RUN chmod 755 /software/stampipes/scripts/bwa/bamcounts.py
RUN chmod 755 /software/stampipes/scripts/bwa/aggregate/basic/cutfragments.awk
RUN chmod 755 /software/stampipes/scripts/bam/random_sample.sh
RUN chmod 755 /software/stampipes/scripts/bam/random_sample_read1.sh
RUN chmod 755 /software/stampipes/scripts/SPOT/runhotspot.bash
RUN chmod 755 /software/stampipes/scripts/utility/picard_inserts_process.py
RUN chmod 755 /software/stampipes/scripts/utility/preseq_targets.sh
RUN chmod 755 /software/stampipes/awk/*.awk
RUN chmod 755 /software/stampipes/makefiles/densities/chrombuckets.mk
# Add required stampipe locations to PATH to enable locating scripts with which
ENV PATH="/software/stampipes/scripts/umi:${PATH}"
ENV PATH="/software/stampipes/scripts/bwa:${PATH}"
ENV PATH="/software/stampipes/scripts/bam:${PATH}"
ENV PATH="/software/stampipes/scripts/SPOT:${PATH}"
ENV PATH="/software/stampipes/scripts/bwa/aggregate/basic:${PATH}"
ENV PATH="/software/stampipes/scripts/utility:${PATH}"
ENV PATH="/software/stampipes/awk:${PATH}"
ENV PATH="/software/stampipes/makefiles/densities:${PATH}"