Docker image for MetaPhlAn
The database required to execute MetaPhlAn is not included in the image. You need to download the database before using MetaPhlAn analysis commands. You can download the database onto your local storage and mount it with -v option.
You need to download the database only once.
Step 1. Pull the image
docker pull sphong/metaphlan
Step 2. Download the database
download_databash.sh file.
db_dir) where the database will be downloadedmpa_vJun23_CHOCOPhlAnSGB_202307./download_database.sh
Step 1. Run a Docker container
<your_local_directory>)$ docker run -it --rm -v <your_local_directory>:/database -v <your_analysis_directory>:/data sphong/metaphlan /bin/bash
Step 2. Execute metaphlan commands
--bowtie2db /database argument to set up the MetaPhlAn database./data, designated as the Docker container's working directory.MetaPhaAn can be executed as a command line script. Refer to the following example.
docker run -it --rm \
-v "/data/database/MetaPhlAn/vJun23:/database" \
-v "$PWD:/data" \
-e USER_ID=$(id -u)\
-e GROUP_ID=$(id -g)\
sphong/metaphlan /bin/bash -c "metaphlan input/SRS014476-Supragingival_plaque.fasta.gz --input_type fasta --bowtie2db /database > profile.txt"
> cannot be sent as an input argument, and /bin/bash -c command was used to execute the script in the container.root, which facilitate easier file processing.USER_ID and GROUP_ID were delivered as environmental argument. (cf. Do not attempt to use --user)Content type
Image
Digest
sha256:5d72ce8f4…
Size
2.7 GB
Last updated
over 2 years ago
docker pull sphong/metaphlan