-
Notifications
You must be signed in to change notification settings - Fork 125
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #773 from Kincekara/checkm
adds checkm
- Loading branch information
Showing
4 changed files
with
87 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
FROM ubuntu:jammy as app | ||
|
||
ARG CHECKM_VER="1.2.2" | ||
ARG PPLACER_VER="v1.1.alpha19" | ||
|
||
LABEL base.image="ubuntu:jammy" | ||
LABEL dockerfile.version="1" | ||
LABEL software="CheckM" | ||
LABEL software.version="${CHECKM_VER}" | ||
LABEL description="CheckM provides a set of tools for assessing the quality of genomes recovered from isolates, single cells, or metagenomes." | ||
LABEL website="dockerfile-template/Dockerfile dockerfile-template/README.md" | ||
LABEL license="https://github.com/Ecogenomics/CheckM/blob/master/LICENSE" | ||
LABEL maintainer="Kutluhan Incekara" | ||
LABEL maintainer.email="[email protected]" | ||
|
||
# install system requirements | ||
RUN apt-get update && apt-get install -y --no-install-recommends \ | ||
wget \ | ||
unzip \ | ||
python3-pip \ | ||
hmmer \ | ||
prodigal &&\ | ||
apt-get autoclean && rm -rf /var/lib/apt/lists/* | ||
|
||
# install checkm and its dependencies | ||
RUN pip install --no-cache-dir numpy matplotlib pysam checkm-genome &&\ | ||
wget https://github.com/matsen/pplacer/releases/download/${PPLACER_VER}/pplacer-linux-${PPLACER_VER}.zip && \ | ||
unzip pplacer-linux-${PPLACER_VER}.zip && rm pplacer-linux-${PPLACER_VER}.zip | ||
|
||
ENV PATH=$PATH:/pplacer-Linux-${PPLACER_VER} \ | ||
LC_ALL=C | ||
|
||
# 'CMD' instructions set a default command when the container is run. | ||
CMD [ "checkm", "-h" ] | ||
|
||
# 'WORKDIR' sets working directory | ||
WORKDIR /data | ||
|
||
## Test ## | ||
FROM app as test | ||
|
||
# download database and inform CheckM of where the files have been placed | ||
RUN wget https://data.ace.uq.edu.au/public/CheckM_databases/checkm_data_2015_01_16.tar.gz &&\ | ||
mkdir checkm_db && tar -C checkm_db -xvf checkm_data_2015_01_16.tar.gz &&\ | ||
checkm data setRoot checkm_db | ||
|
||
# run test with internal test data | ||
RUN checkm taxonomy_wf species "Escherichia coli" ./checkm_db/test_data/ ./checkm_test_results | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# CheckM container | ||
|
||
Main tool: [CheckM](https://github.com/Ecogenomics/CheckM) | ||
|
||
Code repository: https://github.com/Ecogenomics/CheckM | ||
|
||
Additional tools: | ||
- HHMER: 3.3.2 | ||
- prodigal: 2.6.3 | ||
- pplacer: 1.1.alpha19-0-g807f6f3 | ||
|
||
Basic information on how to use this tool: | ||
- executable: checkm | ||
- help: <-h> | ||
- version: <-h> | ||
- description: CheckM provides a set of tools for assessing the quality of genomes recovered from isolates, single cells, or metagenomes. | ||
|
||
Additional information: | ||
|
||
This container does not include precalculated data files that CheckM relies on</br> | ||
Those files can be downloaded from either: | ||
- https://data.ace.uq.edu.au/public/CheckM_databases | ||
- https://zenodo.org/record/7401545#.Y44ymHbMJD8 | ||
|
||
The reference data must be decompress into a directory. Inform CheckM of where the files have been placed with the following command: | ||
``` | ||
checkm data setRoot <checkm_database_dir> | ||
``` | ||
|
||
Full documentation: https://github.com/Ecogenomics/CheckM/wiki | ||
|
||
## Example Usage | ||
|
||
```bash | ||
checkm lineage_wf -t 8 -x fasta input_folder output_folder | ||
``` |