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
58 lines (40 loc) · 1.68 KB
/
Copy pathDockerfile
File metadata and controls
58 lines (40 loc) · 1.68 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
FROM mambaorg/micromamba:2.3.1-ubuntu22.04 AS app
ARG SEROBA_VERSION="2.0.5"
ARG PYSAM_VERSION="0.15.0"
ARG PYMUMMER_VERSION="0.10.3"
ARG PYYAML_VERSION="5.4.1"
USER root
WORKDIR /
LABEL base.image="mambaorg/micromamba:2.3.1-ubuntu22.04"
LABEL dockerfile.version="1"
LABEL software="SeroBA"
LABEL software.version="${SEROBA_VERSION}"
LABEL description="k-mer based Pipeline to identify the Serotype from Illumina NGS reads"
LABEL website="https://github.com/GlobalPneumoSeq/seroba"
LABEL license="https://github.com/GlobalPneumoSeq/seroba/blob/master/LICENSE"
LABEL maintainer="Kelsey Florek"
LABEL maintainer.email="kelsey.florek@slh.wisc.edu"
LABEL maintainer2="Kutluhan Incekara"
LABEL maintainer2.email="kutluhan.incekara@ct.gov"
RUN micromamba install --name base -c conda-forge -c bioconda pysam=${PYSAM_VERSION} pymummer=${PYMUMMER_VERSION} pyyaml=${PYYAML_VERSION} requests kmc ariba && \
micromamba clean -a -f -y
ENV PATH="/opt/conda/bin/:${PATH}" \
LC_ALL=C.UTF-8
RUN wget https://github.com/GlobalPneumoSeq/seroba/archive/refs/tags/v${SEROBA_VERSION}.tar.gz &&\
tar -xvf v${SEROBA_VERSION}.tar.gz && rm v${SEROBA_VERSION}.tar.gz &&\
mv seroba-${SEROBA_VERSION}/ seroba/ && cd seroba &&\
python3 setup.py install &&\
seroba createDBs database/ 71
CMD [ "seroba", "--help" ]
WORKDIR /data
# Get test data
FROM ncbi/sra-tools AS data
RUN fasterq-dump SRR28728181
## Test ##
FROM app AS test
COPY --from=data SRR28728181_1.fastq SRR28728181_2.fastq /data/
# Streptococcus pneumoniae 19A
RUN seroba runSerotyping /seroba/database/ SRR28728181_1.fastq SRR28728181_2.fastq test 2> stderr.txt &&\
cat test/pred.csv
# internal test
RUN cd /seroba && python3 setup.py test