-
Notifications
You must be signed in to change notification settings - Fork 119
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding metaphlan version 4.1.1 (#996)
* adding metaphlan version 4.1.1 * Update Dockerfile micromamba clean -afy --------- Co-authored-by: Kutluhan Incekara <[email protected]>
- Loading branch information
Showing
3 changed files
with
71 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
FROM mambaorg/micromamba:1.5.8 as app | ||
|
||
ARG METAPHLAN_VER="4.1.1" | ||
|
||
USER root | ||
|
||
WORKDIR / | ||
|
||
LABEL base.image="mambaorg/micromamba:1.5.8" | ||
LABEL dockerfile.version="1" | ||
LABEL software="MetaPhlAn" | ||
LABEL software.version="${METAPHLAN_VER}" | ||
LABEL description="MetaPhlAn is a computational tool for species-level microbial profiling from metagenomic shotgun sequencing data" | ||
LABEL website="https://github.com/biobakery/MetaPhlAn" | ||
LABEL license="https://github.com/biobakery/MetaPhlAn/blob/master/license.txt" | ||
LABEL maintainer="Kutluhan Incekara" | ||
LABEL maintainer.email="[email protected]" | ||
|
||
RUN apt-get update && apt-get install --no-install-recommends -y \ | ||
procps &&\ | ||
apt-get autoclean && rm -rf /var/lib/apt/lists/* | ||
|
||
RUN micromamba install --name base -c conda-forge -c bioconda metaphlan=${METAPHLAN_VER} &&\ | ||
micromamba clean -afy | ||
|
||
ENV PATH="/opt/conda/bin/:${PATH}" \ | ||
LC_ALL=C.UTF-8 | ||
|
||
CMD [ "metaphlan", "--help" ] | ||
|
||
WORKDIR /data | ||
|
||
## Test ## | ||
FROM app as test | ||
|
||
RUN metaphlan --help | ||
|
||
# get test sample | ||
RUN wget https://github.com/biobakery/MetaPhlAn/releases/download/4.1.0/SRS014476-Supragingival_plaque.fasta.gz | ||
# download toy db | ||
RUN metaphlan --install --index mpa_vJan21_TOY_CHOCOPhlAnSGB_202103 --bowtie2db /toy | ||
# metaphlan test | ||
RUN metaphlan SRS014476-Supragingival_plaque.fasta.gz --input_type fasta --bowtie2db /toy --index mpa_vJan21_TOY_CHOCOPhlAnSGB_202103 > test.txt &&\ | ||
cat test.txt |
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,26 @@ | ||
# MetaPhlAn container | ||
|
||
Main tool: [MetaPhlAn](https://github.com/biobakery/MetaPhlAn/wiki/MetaPhlAn-4.1) | ||
|
||
Code repository: https://github.com/biobakery/MetaPhlAn | ||
|
||
Basic information on how to use this tool: | ||
- executable: metaphlan | ||
- help: -h | ||
- version: -v | ||
- description: MetaPhlAn is a computational tool for species-level microbial profiling (bacteria, archaea, eukaryotes, and viruses) from metagenomic shotgun sequencing data. StrainPhlAn (available within MetaPhlAn) allows strain-level microbial population genomics. | ||
|
||
Additional information: | ||
|
||
The MetaPhlAn 4 database has been substantially increased (~21GB) in comparison with the previous 3.1 version. Thus, for running MetaPhlAn 4, a minimum of 25GB or memory is needed. | ||
The database can be downloaded from [Segatalab FTP](http://cmprod1.cibio.unitn.it/biobakery4/metaphlan_databases/) or via metaphlan with the following command: | ||
|
||
```metaphlan --install``` | ||
|
||
Full documentation: https://github.com/biobakery/MetaPhlAn/wiki/MetaPhlAn-4.1 | ||
|
||
## Example Usage | ||
|
||
```bash | ||
metaphlan metagenome.fastq --input_type fastq -o profiled_metagenome.txt | ||
``` |