-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
170 lines (124 loc) · 3.76 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
FROM ubuntu:20.04
MAINTAINER [email protected]
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get -qq update && apt-get -qq -y install \
automake \
build-essential \
bzip2 \
cmake \
curl \
default-jre \
fort77 \
ftp \
g++ \
gcc \
gfortran \
git \
libblas-dev \
libbz2-dev \
libcairo2-dev \
libcurl4-openssl-dev \
libdb-dev \
libghc-zlib-dev \
libjpeg-dev \
liblzma-dev \
libncurses-dev \
libncurses5-dev \
libpcre3-dev \
libpng-dev \
libreadline-dev \
libreadline-dev \
libssl-dev \
libtbb-dev \
libx11-dev \
libxml2-dev \
libxt-dev \
libzmq3-dev \
make \
nano \
perl \
pkg-config \
python3 \
python3-dev \
python3-distutils \
python3-pip \
python3-setuptools \
rsync \
texlive-latex-base \
tzdata \
unzip \
wget \
x11-common \
zlib1g-dev
RUN pip install numpy
RUN curl -L https://cpanmin.us | perl - App::cpanminus
## set up tool config and deployment area:
ENV SRC /usr/local/src
ENV BIN /usr/local/bin
ENV DATA /usr/local/data
RUN mkdir $DATA
## perl lib installations
RUN cpanm install PerlIO::gzip
RUN cpanm install Set::IntervalTree
RUN cpanm install DB_File
RUN cpanm install URI::Escape
RUN cpanm install Carp::Assert
RUN cpanm install JSON::XS.pm
######################
## Tool installations:
######################
## Bowtie2
WORKDIR $SRC
ENV BOWTIE2_VERSION 2.4.4
RUN wget https://sourceforge.net/projects/bowtie-bio/files/bowtie2/${BOWTIE2_VERSION}/bowtie2-${BOWTIE2_VERSION}-linux-x86_64.zip/download -O bowtie2-${BOWTIE2_VERSION}-linux-x86_64.zip && \
unzip bowtie2-${BOWTIE2_VERSION}-linux-x86_64.zip && \
mv bowtie2-${BOWTIE2_VERSION}-linux-x86_64/bowtie2* $BIN && \
rm *.zip && \
rm -r bowtie2-${BOWTIE2_VERSION}-linux-x86_64
## Samtools
WORKDIR $SRC
ENV SAMTOOLS_VERSION 1.9
RUN wget https://github.com/samtools/samtools/releases/download/${SAMTOOLS_VERSION}/samtools-${SAMTOOLS_VERSION}.tar.bz2 && \
tar xvf samtools-${SAMTOOLS_VERSION}.tar.bz2 && \
cd samtools-${SAMTOOLS_VERSION} && \
./configure && make && make install
## Seqtk
WORKDIR $SRC
RUN git clone https://github.com/lh3/seqtk.git && \
cd seqtk && make && cp seqtk $BIN/
########
## Minimap2
#WORKDIR $SRC
#RUN curl -L https://github.com/lh3/minimap2/releases/download/v2.26/minimap2-2.26_x64-linux.tar.bz2 | tar -jxvf - && \
# mv ./minimap2-2.26_x64-linux/minimap2 $BIN/
##############
## STAR
ENV STAR_VERSION=2.7.8a
RUN STAR_URL="https://github.com/alexdobin/STAR/archive/${STAR_VERSION}.tar.gz" &&\
wget -P $SRC $STAR_URL &&\
tar -xvf $SRC/${STAR_VERSION}.tar.gz -C $SRC && \
mv $SRC/STAR-${STAR_VERSION}/bin/Linux_x86_64_static/STAR /usr/local/bin
WORKDIR $SRC
RUN wget https://github.com/samtools/htslib/releases/download/1.17/htslib-1.17.tar.bz2 && \
tar xvf htslib-1.17.tar.bz2 && \
cd htslib-1.17 && \
./configure && make && make install
RUN ln -s /usr/bin/python3 /usr/bin/python
RUN pip install pysam
RUN apt-get install -y git && apt-get clean
WORKDIR $SRC
# K8
RUN curl -L https://github.com/attractivechaos/k8/releases/download/v0.2.4/k8-0.2.4.tar.bz2 | tar -jxf - && \
cp k8-0.2.4/k8-`uname -s` $BIN/k8
RUN pip install pandas
RUN pip install requests igv-reports==1.11.0
ENV ctat_LR_fusion_version 1.0.2
ENV CTAT_LR_FUSION_CO c69626347acbdb8d6285440d14c0c06bf9537f6c
RUN git clone --recursive https://github.com/TrinityCTAT/CTAT-LR-fusion.git && \
cd CTAT-LR-fusion && \
git checkout ${CTAT_LR_FUSION_CO} && \
git submodule init && git submodule update && \
git submodule foreach --recursive git submodule init && \
git submodule foreach --recursive git submodule update && \
make
RUN mv $SRC/CTAT-LR-fusion/* $BIN/