forked from StaPH-B/docker-builds
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
61 lines (45 loc) · 2.02 KB
/
Dockerfile
File metadata and controls
61 lines (45 loc) · 2.02 KB
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
ARG USHER_VER="0.6.3"
FROM mambaorg/micromamba:2.0.5-ubuntu22.04 AS app
ARG USHER_VER
USER root
WORKDIR /
# 'LABEL' instructions tag the image with metadata that might be important to the user
LABEL base.image="mambaorg/micromamba:2.0.5-ubuntu22.04"
LABEL dockerfile.version="1"
LABEL software="UShER"
LABEL software.version="${USHER_VER}"
LABEL description="Ultrafast Sample Placement on Existing Trees."
LABEL website="https://github.com/yatisht/usher"
LABEL license="https://github.com/yatisht/usher/blob/master/LICENSE"
LABEL documentation="https://usher-wiki.readthedocs.io/en/latest/QuickStart.html"
LABEL maintainer="Erin Young"
LABEL maintainer.email="eriny@utah.gov"
# 'RUN' executes code during the build
# Install dependencies via apt-get or yum if using a centos or fedora base
RUN apt-get update && apt-get install -y --no-install-recommends \
wget \
ca-certificates \
procps && \
apt-get autoclean && rm -rf /var/lib/apt/lists/*
RUN micromamba install --name base -c conda-forge -c bioconda usher=${USHER_VER} && \
micromamba clean -a -f -y && \
mkdir /data
ENV PATH="/opt/conda/bin/:${PATH}" \
LC_ALL=C.UTF-8
CMD [ "usher", "--help" ]
WORKDIR /data
FROM app AS test
ARG USHER_VER
RUN usher --help && \
usher --version
WORKDIR /test
RUN wget -q https://github.com/yatisht/usher/archive/refs/tags/v${USHER_VER}.tar.gz && \
tar -xvf v${USHER_VER}.tar.gz
WORKDIR /test/usher-${USHER_VER}
# https://usher-wiki.readthedocs.io/en/latest/UShER.html
RUN usher -t test/global_phylo.nh -v test/global_samples.vcf -o global_assignments.pb -d output/ && \
usher -t test/global_phylo.nh -v test/global_samples.vcf -o global_assignments.pb -c -d output2/ && \
usher -t test/global_phylo.nh -v test/global_samples.vcf -o global_assignments.pb -c -u -d output3/ && \
usher -i global_assignments.pb -v test/new_samples.vcf -u -d output4/ && \
usher -i global_assignments.pb -v test/new_samples.vcf -u -k 20 -d output5/ && \
usher -i global_assignments.pb -v test/new_samples.vcf -u -o new_global_assignments.pb -d output6/