forked from pangenome/pggb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
79 lines (68 loc) · 2.94 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
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"
# 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 \
libhts-dev \
build-essential \
pkg-config \
time \
curl \
pigz \
tabix
RUN git clone --recursive https://github.com/ekg/wfmash \
&& cd wfmash \
&& git pull \
&& git checkout 1344b9e39bf585a7687cec29fb45a4adb9bb6692 \
&& git submodule update --init --recursive \
&& cmake -H. -DCMAKE_BUILD_TYPE=Generic -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 bd96fbbcda96c3f6bc6b2e3d965bf722ca29491d \
&& git submodule update --init --recursive \
&& cmake -H. -DCMAKE_BUILD_TYPE=Generic -Bbuild && cmake --build build -- -j $(nproc) \
&& cp bin/seqwish /usr/local/bin/seqwish \
&& cd ../
RUN git clone --recursive https://github.com/pangenome/smoothxg \
&& cd smoothxg \
&& git pull \
&& git checkout 372bb5d74ad4effb498659bf30fe1580b71ef7db \
&& git submodule update --init --recursive \
&& sed -i 's/-march=native/-march=haswell/g' deps/abPOA/CMakeLists.txt \
&& cmake -H. -DCMAKE_BUILD_TYPE=Generic -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 9581a29d6dfe1e76a98f8c360ed33adf0348fa27 \
&& 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 && apt-get install -y bcftools
RUN apt-get install wget && wget https://github.com/vgteam/vg/releases/download/v1.39.0/vg && chmod +x vg && mv vg /usr/local/bin/vg
COPY pggb /usr/local/bin/pggb
RUN chmod 777 /usr/local/bin/pggb
ENTRYPOINT [ "/bin/bash", "-l", "-c" ]