-
Notifications
You must be signed in to change notification settings - Fork 5
/
Dockerfile
90 lines (77 loc) · 2.91 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
FROM ubuntu:20.04
MAINTAINER Lindo Nkambule ([email protected])
ARG SAMTOOLS_VERSION=1.13
RUN apt-get update && apt-get install -y software-properties-common && \
apt-get update && apt-get install -y \
autoconf \
automake \
bzip2 \
build-essential \
ca-certificates \
cmake \
curl \
g++ \
gcc \
git \
gzip \
libboost-all-dev \
libbz2-dev \
libcurl4-openssl-dev \
liblzma-dev \
libncurses5-dev \
libssl-dev \
make \
python3 \
python3-pip \
r-mathlib \
sudo \
unzip \
wget \
zlib1g-dev \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && \
apt-get clean && \
apt-get autoremove -y && \
rm -rf /var/lib/{apt,dpkg,cache,log}/
# HTSLIB
RUN cd /opt && \
wget --no-check-certificate https://github.com/samtools/htslib/releases/download/${SAMTOOLS_VERSION}/htslib-${SAMTOOLS_VERSION}.tar.bz2 && \
tar xf htslib-${SAMTOOLS_VERSION}.tar.bz2 && rm htslib-${SAMTOOLS_VERSION}.tar.bz2 && cd htslib-${SAMTOOLS_VERSION} && \
./configure --enable-libcurl --enable-s3 --enable-gcs && \
make && make install && make clean
COPY makefile_shapeit4 /opt
# SHAPEIT4
RUN git clone https://github.com/odelaneau/shapeit4.git && \
cd shapeit4 && \
mv makefile makefile.old && cp /opt/makefile_shapeit4 . && mv makefile_shapeit4 makefile && \
make && \
cd /shapeit4/maps && mkdir b37 b38 && gunzip *.gz && \
tar -xf genetic_maps.b37.tar -C b37/ && \
tar -xf genetic_maps.b38.tar -C b38/ && \
rm *.tar
ENV PATH /shapeit4/bin/:${PATH}
# BCFTOOLS
RUN cd /opt && \
wget --no-check-certificate https://github.com/samtools/bcftools/releases/download/${SAMTOOLS_VERSION}/bcftools-${SAMTOOLS_VERSION}.tar.bz2 && \
tar -xf bcftools-${SAMTOOLS_VERSION}.tar.bz2 && rm bcftools-${SAMTOOLS_VERSION}.tar.bz2 && cd bcftools-${SAMTOOLS_VERSION} && \
./configure --with-htslib=/opt/htslib-${SAMTOOLS_VERSION} && make && make install && make clean
# EAGLE
RUN cd /opt && \
wget https://data.broadinstitute.org/alkesgroup/Eagle/downloads/Eagle_v2.4.1.tar.gz && \
gunzip Eagle_v2.4.1.tar.gz && \
tar xvf Eagle_v2.4.1.tar && \
cp /opt/Eagle_v2.4.1/tables/genetic_map_hg19_withX.txt.gz /opt && \
cp /opt/Eagle_v2.4.1/tables/genetic_map_hg38_withX.txt.gz /opt && \
mv Eagle_v2.4.1/eagle /usr/local/bin/ && \
rm -rf Eagle_v2.4.1*
# IMPUTE5
COPY impute5_v1.1.5.zip /opt
RUN cd /opt && \
unzip impute5_v1.1.5.zip && cd impute5_v1.1.5 && \
mv *_static /usr/local/bin/ && cd /opt && rm -rf impute5_v1.1.5*
# makeScaffold for building haplotype scaffolds for phasing
RUN pip3 install Cython --install-option="--no-cython-compile"
RUN git clone https://github.com/sinanshi/makeScaffold.git && \
cd makeScaffold && rm makefile && \
cmake . && \
make && \
mv src/scaffold /usr/local/bin/