-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
158 lines (138 loc) · 5.23 KB
/
Dockerfile
File metadata and controls
158 lines (138 loc) · 5.23 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
ARG ubuntu_version=xenial
FROM ubuntu:${ubuntu_version}
LABEL maintainer="frank.foerster@ime.fraunhofer.de" \
description="Base container for the microPIECE package" \
version="1.4" \
org.label-schema.vcs-ref=$VCS_REF \
org.label-schema.build-date=$BUILD_DATE \
org.label-schema.vcs-url="https://github.com/microPIECE-team/microPIECE-dockerbase"
RUN apt update && \
apt install \
--yes \
--no-install-recommends \
build-essential \
wget \
bwa \
bowtie \
bowtie2 \
ncbi-blast+ \
python-cutadapt \
emboss \
less \
pv \
&& \
rm -rf /var/lib/apt/lists/*
# Due to miraligner requires java 1.7 we need to install jre 1.7
# I found a solution at https://askubuntu.com/a/803616/427663
ADD debian /etc/apt/preferences.d/debian
RUN apt update && \
apt install --yes --no-install-recommends \
debian-archive-keyring \
software-properties-common && \
add-apt-repository 'deb http://httpredir.debian.org/debian experimental main' && \
add-apt-repository 'deb http://httpredir.debian.org/debian sid main' && \
apt update && \
apt install --yes --no-install-recommends openjdk-7-jre-headless && \
rm -rf /var/lib/apt/lists/*
WORKDIR /opt
RUN apt update && apt install --yes --no-install-recommends \
zlib1g-dev \
libncurses5-dev \
libbz2-dev \
liblzma-dev \
&& \
wget https://github.com/samtools/samtools/releases/download/1.4.1/samtools-1.4.1.tar.bz2 && \
tar xjf samtools-1.4.1.tar.bz2 && \
cd samtools-1.4.1 && \
./configure && \
make && \
make check && \
make install && \
cd .. && \
rm -rf samtools-1.4.1 samtools-1.4.1.tar.bz2 /var/lib/apt/lists/*
RUN wget -O bedtools.tar.gz https://github.com/arq5x/bedtools2/releases/download/v2.27.1/bedtools-2.27.1.tar.gz && \
tar xzf bedtools.tar.gz && \
cd bedtools2 && make && \
mv bin/* /usr/local/bin/ && \
cd .. && rm -rf bedtools2 bedtools.tar.gz
RUN wget http://www.bioinf.uni-leipzig.de/Software/proteinortho/proteinortho_v5.16b.tar.gz && \
tar xzf proteinortho_v5.16b.tar.gz && \
rm -rf proteinortho_v5.16b.tar.gz
ENV PATH=/opt/proteinortho_v5.16b/:"$PATH"
RUN wget -O /usr/local/bin/xa2multi.pl https://raw.githubusercontent.com/lh3/bwa/master/xa2multi.pl && \
chmod +x /usr/local/bin/xa2multi.pl
RUN apt update && apt install --yes --no-install-recommends bamtools libgsl-dev && \
wget http://smithlabresearch.org/downloads/piranha-1.2.1.tar.gz && \
tar xzf piranha-1.2.1.tar.gz && \
cd piranha-1.2.1 && \
./configure && \
make all && \
# test is excluded due to an error on macOS during testing
# running the command after the container build succeeds
#make test && \
make install && \
cd /opt && rm -rf piranha-1.2.1.tar.gz /var/lib/apt/lists/*
ENV PATH=/opt/piranha-1.2.1/bin/:"$PATH"
ENV PATH="$PATH":/opt/mirdeep2/bin
ENV PERL_MB_OPT="--install_base /root/perl5"
ENV PERL_MM_OPT="INSTALL_BASE=/root/perl5"
ENV PERL5LIB=/opt/mirdeep2/lib/perl5
RUN apt update && apt install --yes --no-install-recommends git && \
git clone https://github.com/rajewsky-lab/mirdeep2.git && \
cd mirdeep2 && \
perl install.pl && \
perl install.pl && \
mkdir /opt/mirdeep2/bin/indexes && \
chmod a+rwX /opt/mirdeep2/bin/indexes && \
cd /opt && rm -rf /var/lib/apt/lists/*
RUN wget http://research-pub.gene.com/gmap/src/gmap-gsnap-2018-02-12.tar.gz && \
tar xzf gmap-gsnap-2018-02-12.tar.gz && \
cd gmap-2018-02-12 && \
for i in none sse2 ssse3 sse41 sse42 avx2 avx512; \
do \
./configure --with-simd-level="$i" && \
make && \
make install; \
make clean; \
done; \
cd /opt && rm -rf gmap-gsnap-2018-02-12.tar.gz gmap-2018-02-12
RUN apt update && apt install --yes --no-install-recommends git && \
git clone https://github.com/lpantano/seqbuster.git && \
cd /opt && rm -rf /var/lib/apt/lists/*
ENV MIRALIGNERDIR=/opt/seqbuster/modules/miraligner/
ENV MIRALIGNER="$MIRALIGNERDIR"/miraligner.jar
RUN wget http://cbio.mskcc.org/microrna_data/miRanda-aug2010.tar.gz && \
tar xzf miRanda-aug2010.tar.gz && \
cd miRanda-3.3a && \
./configure && \
make && \
make check && \
make install && \
cd /opt && rm -rf miRanda-aug2010.tar.gz miRanda-3.3a
RUN apt update && apt install --yes --no-install-recommends git && \
mkdir gffread && cd gffread && \
git clone https://github.com/gpertea/gclib && \
cd gclib && git checkout b790ac157971c5e6da77d0c76ee9ebf26ec4a5ef && cd .. && \
git clone --branch v0.9.12 https://github.com/gpertea/gffread && \
cd gffread && \
make && \
cd /opt && rm -rf /var/lib/apt/lists/*
ENV PATH=/opt/gffread/gffread/:"$PATH"
RUN apt update && apt install --yes --no-install-recommends \
liblog-log4perl-perl \
libipc-run-perl \
libipc-run3-perl \
libdevel-cover-perl \
libwww-perl \
libtest-script-run-perl \
libterm-progressbar-perl \
&& \
rm -rf /var/lib/apt/lists/*
RUN apt update && apt install --yes --no-install-recommends \
cpanminus && \
cpanm -L /extlib/ RNA::HairpinFigure \
&& \
rm -rf /var/lib/apt/lists/*
ENV PERL5LIB=/extlib/lib/perl5/:"$PERL5LIB"
VOLUME /data
WORKDIR /data