-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathDockerfile
69 lines (61 loc) · 2.66 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
FROM condaforge/mambaforge:latest
LABEL maintainer="[email protected]"
# Copyright 2022 Ian J. Miller, Evan R. Rees, Kyle Wolf, Siddharth Uppal,
# Shaurya Chanana, Izaak Miller, Jason C. Kwan
#
# This file is part of Autometa.
#
# Autometa is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Autometa is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with Autometa. If not, see <http://www.gnu.org/licenses/>.
RUN apt-get update --allow-releaseinfo-change \
&& apt-get install -y procps make \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
COPY autometa-env.yml ./
RUN mamba env update -n base --file=autometa-env.yml \
&& mamba clean --all -y
COPY . /Autometa
WORKDIR /Autometa
RUN make install && make clean
# NOTE: DB_DIR must be an absolute path (not a relative path)
ENV DB_DIR="/scratch/dbs"
RUN hmmpress -f autometa/databases/markers/bacteria.single_copy.hmm \
&& hmmpress -f autometa/databases/markers/archaea.single_copy.hmm \
&& mkdir -p $DB_DIR \
&& mv autometa/databases/* ${DB_DIR}/. \
&& autometa-config --section databases --option base --value ${DB_DIR} \
&& echo "databases base directory set in ${DB_DIR}/"
RUN echo "Testing autometa import" \
&& python -c "import autometa"
# Check entrypoints are available
RUN echo "Checking autometa entrypoints" \
&& autometa --version > /dev/null \
&& autometa-config -h > /dev/null \
&& autometa-update-databases -h > /dev/null \
&& autometa-length-filter -h > /dev/null \
&& autometa-orfs -h > /dev/null \
&& autometa-coverage -h > /dev/null \
&& autometa-kmers -h > /dev/null \
&& autometa-markers -h > /dev/null \
&& autometa-taxonomy -h > /dev/null \
&& autometa-taxonomy-lca -h > /dev/null \
&& autometa-taxonomy-majority-vote -h > /dev/null \
&& autometa-unclustered-recruitment -h > /dev/null \
&& autometa-hmmsearch-filter -h > /dev/null \
&& autometa-bedtools-genomecov -h > /dev/null \
&& autometa-binning -h > /dev/null \
&& autometa-binning-summary -h > /dev/null \
&& autometa-binning-ldm -h > /dev/null \
&& autometa-binning-ldm-loginfo -h > /dev/null \
&& autometa-benchmark -h > /dev/null \
&& autometa-download-dataset -h > /dev/null