-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
93 lines (80 loc) · 2.07 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
# Set the base image to debian jessie
FROM debian:jessie
# File Author / Maintainer
MAINTAINER Clement Goubert <[email protected]>
# install base programs
RUN apt-get update && apt-get install --yes --no-install-recommends \
wget \
curl \
ca-certificates \
locales \
vim-tiny \
nano \
git \
make \
cmake \
build-essential \
gcc-multilib \
perl \
bioperl \
cpanminus \
expat \
libexpat1-dev \
python \
parallel \
tabix \
autoconf \
libbz2-dev \
libcurl4-gnutls-dev \
zlib1g-dev \
libncurses5-dev \
libncursesw5-dev \
liblzma-dev
# install bedtools 2.29.1 (bedtools must be this version for compatibility)
RUN wget https://github.com/arq5x/bedtools2/releases/download/v2.30.0/bedtools.static.binary \
&& mv bedtools.static.binary bedtools \
&& chmod a+x bedtools \
&& mv bedtools /usr/bin/
# install perl modules
RUN cpanm --force XML::Parser \
XML::DOM \
XML::Twig \
String::Approx \
List::MoreUtils
# Update/Upgrade pip and install pysam
RUN curl https://bootstrap.pypa.io/pip/2.7/get-pip.py -o get-pip.py \
&& python get-pip.py \
&& pip install pysam
# install htslib
RUN cd /usr/bin \
&& wget https://github.com/samtools/htslib/releases/download/1.10.2/htslib-1.10.2.tar.bz2 \
&& tar -vxjf htslib-1.10.2.tar.bz2 \
&& cd htslib-1.10.2 \
&& make
# install samtools
RUN cd /usr/bin \
&& wget https://github.com/samtools/samtools/releases/download/1.10/samtools-1.10.tar.bz2 \
&& tar -vxjf samtools-1.10.tar.bz2 \
&& cd samtools-1.10 \
&& make
# install bwa
RUN git clone https://github.com/lh3/bwa.git \
&& cd bwa \
&& make
# install autotools
RUN apt-get install --yes --no-install-recommends \
pkg-config \
autotools-dev \
automake
# install vcftools 0.1.16
RUN wget https://github.com/vcftools/vcftools/archive/refs/tags/v0.1.16.tar.gz \
&& tar -zxvf v0.1.16.tar.gz \
&& cd vcftools-0.1.16/ \
&& ./autogen.sh \
&& ./configure \
&& make \
&& make install
#Export paths
ENV PATH=/usr/bin/samtools-1.10:$PATH
ENV PATH=/usr/bin/htslib-1.10.2:$PATH
ENV PATH=/bwa:$PATH