-
Notifications
You must be signed in to change notification settings - Fork 31
/
Dockerfile
55 lines (47 loc) · 1.99 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
FROM continuumio/miniconda3:latest
ENV LANG=C.UTF-8 LC_ALL=C.UTF-8 PATH=/opt/bin:/opt/conda/bin:$PATH
# update ubuntu packages
RUN apt-get update --fix-missing && \
yes|apt-get upgrade && \
apt-get install -y \
wget \
bzip2 \
make \
g++ \
libboost-graph-dev && \
rm -rf /bar/lib/apt/lists/*
WORKDIR /opt/bin
# install anaconda
RUN conda config --add channels defaults && \
conda config --add channels bioconda && \
conda config --add channels conda-forge && \
conda create -n clair3 python=3.9.0 -y
ENV PATH /opt/conda/envs/clair3/bin:$PATH
ENV CONDA_DEFAULT_ENV clair3
RUN /bin/bash -c "source activate clair3" && \
conda install -c conda-forge pypy3.6 -y && \
pypy3 -m ensurepip && \
pypy3 -m pip install mpmath==1.2.1 && \
conda install -c conda-forge tensorflow-cpu==2.8.0 && \
conda install -c conda-forge pytables && \
pip install tensorflow-addons && \
conda install -c anaconda pigz -y && \
conda install -c anaconda cffi=1.14.4 -y && \
conda install -c conda-forge parallel=20191122 zstd -y && \
conda install -c conda-forge -c bioconda samtools=1.15.1 -y && \
conda install -c conda-forge -c bioconda whatshap=1.7 -y && \
conda install -c conda-forge xz zlib bzip2 -y && \
conda install -c conda-forge automake curl -y && \
rm -rf /opt/conda/pkgs/* && \
rm -rf /root/.cache/pip && \
echo "source activate clair3" > ~/.bashrc
COPY . .
RUN cd /opt/bin/preprocess/realign && \
g++ -std=c++14 -O1 -shared -fPIC -o realigner ssw_cpp.cpp ssw.c realigner.cpp && \
g++ -std=c++11 -shared -fPIC -o debruijn_graph -O3 debruijn_graph.cpp && \
wget http://www.bio8.cs.hku.hk/clair3/clair3_models/clair3_models.tar.gz -P /opt/models && \
tar -zxvf /opt/models/clair3_models.tar.gz -C /opt/models && \
rm /opt/models/clair3_models.tar.gz && \
cd /opt/bin && \
make PREFIX=/opt/conda/envs/clair3 PYTHON=/opt/conda/envs/clair3/bin/python && \
rm -rf /opt/bin/samtools-* /opt/bin/longphase-*