forked from pangenome/pggb
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
86 lines (75 loc) · 3.26 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
FROM debian:bullseye-slim AS binary
LABEL authors="Erik Garrison, Simon Heumos, Andrea Guarracino"
LABEL description="Preliminary docker image containing all requirements for pggb pipeline"
LABEL base_image="debian:bullseye-slim"
LABEL software="pggb"
LABEL about.home="https://github.com/pangenome/pggb"
LABEL about.license="SPDX:MIT"
# odgi's dependencies
RUN apt-get update \
&& apt-get install -y \
git \
bash \
cmake \
make \
g++ \
python3-dev \
bc \
libatomic-ops-dev \
autoconf \
libgsl-dev \
zlib1g-dev \
libzstd-dev \
libjemalloc-dev \
build-essential \
time \
curl \
pigz
RUN git clone --recursive https://github.com/ekg/wfmash \
&& cd wfmash \
&& git pull \
&& git checkout d5974a5 \
&& git submodule update --init --recursive \
&& sed -i 's/-mcx16 //g' CMakeLists.txt \
&& sed -i 's/-march=native //g' CMakeLists.txt \
&& sed -i 's/-mcx16 //g' src/common/wflign/CMakeLists.txt \
&& sed -i 's/-march=native //g' src/common/wflign/CMakeLists.txt \
&& sed -i 's/-mcx16 //g' src/common/wflign/deps/WFAv2/CMakeLists.txt \
&& sed -i 's/-march=native //g' src/common/wflign/deps/WFAv2/CMakeLists.txt \
&& sed -i 's/-mcx16 //g' src/common/wflign/deps/wflambdav2/CMakeLists.txt \
&& sed -i 's/-march=native //g' src/common/wflign/deps/wflambdav2/CMakeLists.txt \
&& cmake -H. -Bbuild && cmake --build build -- -j $(nproc) \
&& cp build/bin/wfmash /usr/local/bin/wfmash \
&& cd ../
RUN git clone --recursive https://github.com/ekg/seqwish \
&& cd seqwish \
&& git pull \
&& git checkout 6da2102 \
&& git submodule update --init --recursive \
&& cmake -H. -Bbuild && cmake --build build -- -j $(nproc) \
&& cp bin/seqwish /usr/local/bin/seqwish \
&& cd ../
RUN git clone --recursive https://github.com/ekg/smoothxg \
&& cd smoothxg \
&& git pull \
&& git checkout b8da05b \
&& git submodule update --init --recursive \
&& sed -i 's/-march=native/-march=haswell/g' deps/abPOA/CMakeLists.txt \
&& sed -i 's/-mcx16 //g' deps/WFA/CMakeLists.txt \
&& sed -i 's/-march=native //g' deps/WFA/CMakeLists.txt \
&& cmake -H. -Bbuild && cmake --build build -- -j $(nproc) \
&& cp bin/smoothxg /usr/local/bin/smoothxg \
&& cp deps/odgi/bin/odgi /usr/local/bin/odgi
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y
ENV PATH="/root/.cargo/bin:${PATH}"
RUN cargo --help
RUN git clone https://github.com/marschall-lab/GFAffix.git \
&& cd GFAffix \
&& git pull \
&& git checkout b75302b \
&& cargo install --force --path . && mv /root/.cargo/bin/gfaffix /usr/local/bin/gfaffix
RUN apt-get update && apt-get install -y pip && pip install multiqc
RUN apt-get install wget && wget https://github.com/vgteam/vg/releases/download/v1.33.0/vg && chmod +x vg && cp vg /usr/local/bin/vg
COPY pggb /usr/local/bin/pggb
RUN chmod 777 /usr/local/bin/pggb
ENTRYPOINT [ "/bin/bash", "-l", "-c" ]