forked from koszullab/metaTOR
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
60 lines (47 loc) · 1.39 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
# syntax=docker/dockerfile:1
FROM adoptopenjdk/openjdk12
LABEL Name=metator Version=1.1.4
WORKDIR /app
COPY ./ /app
# Install 3rd party packages
RUN \
apt-get update && \
apt-get install -y --no-install-recommends git make g++ curl
# Install miniconda to /miniconda
RUN curl -LO http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh
RUN bash Miniconda3-latest-Linux-x86_64.sh -p /miniconda -b
RUN rm Miniconda3-latest-Linux-x86_64.sh
ENV PATH=/miniconda/bin:${PATH}
RUN conda update -y conda
RUN conda config --add channels bioconda
# # Get 3rd party package
RUN conda install -c conda-forge -y python=3.8\
pip \
bowtie2 \
samtools \
pairix \
checkm-genome && conda clean -afy
# Install bwa
RUN git clone https://github.com/lh3/bwa.git && \
cd bwa && \
make &&\
cd /app
ENV PATH="$PATH:/app/bwa"
# Install Louvain
RUN cd /app/external && \
tar -xzf louvain-generic.tar.gz && \
cd gen-louvain && \
make && \
cd /app
ENV LOUVAIN_PATH=/app/external/gen-louvain
# Install Leiden through Network analysis repo
RUN git clone https://github.com/vtraag/networkanalysis.git && \
cd /app/networkanalysis && \
./gradlew build && \
cd /app
ENV LEIDEN_PATH=/app/networkanalysis/build/libs/networkanalysis-1.2.0.jar
# Install python dependencies
RUN pip3 install -Ur requirements.txt
# Install metator
RUN pip3 install .
ENTRYPOINT ["metator"]