metagenomicspipeline
shotgun metagenomics pipeline to obtain relative abundances and pathway abundances
Science Score: 57.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
✓DOI references
Found 3 DOI reference(s) in README -
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (12.6%) to scientific vocabulary
Keywords
Repository
shotgun metagenomics pipeline to obtain relative abundances and pathway abundances
Basic Info
Statistics
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
- Releases: 2
Topics
Metadata Files
README.md
Metagenomics pipeline to get taxonomy and pathways
This pipeline can be used to obtain tax profiles, pathway abundance tables from metagenomic reads. The input The MetaPhlAn, HUMAnN and Kraken2 databases are in the current version downloaded as part of the pipeline and stored in the db folder (the first time you use the pipeline, it therefore takes a bit longer).
Introduction
metagenomicspipeline is a bioinformatics pipeline that processes shotgun metagenomics reads to obtain relative abundances and pathway abundances using BioBakery software.

- Input check
- Preprocessing
- Taxonomy profiles:
MetaPhlAn(default) orKraken2 - Pathway abundances:
HUMAnN - Present a MultiQC report (
MultiQC)
If you only want to use certain parts of the pipeline, you can use the flags --skip-processing, --skip-metaphlan, --skip-humann to skip certain subworkflows. If you want to get Kraken2 profiles instead of MetaPhlAn, use --skip-kraken false.
Usage
:::note
If you are new to Nextflow and nf-core, please refer to this page on how
to set-up Nextflow. Make sure to test your setup
with -profile test before running the workflow on actual data.
:::
First, prepare a samplesheet with your input data that looks as follows:
samplesheet.csv:
csv
sample,fastq_1,fastq_2
CONTROL_REP1,AEG588A1_S1_L002_R1_001.fastq.gz,AEG588A1_S1_L002_R2_001.fastq.gz
Each row represents a pair of fastq files. This pipeline does accept single-end and paired-end fastq files. For single-end data, use only fastq_1.
Now, you can run the pipeline using:
bash
nextflow run barbarahelena/metagenomicspipeline \
-profile <docker/singularity/.../institute> \
--input samplesheet.csv \
--genome GRCh38 \
--outdir <OUTDIR>
The subsampling level is by default is 20 million. If you want to change this subsampling level, you can specify it by using --subsamplelevel 10000000 (to set it to 10 million, for example).
I recommend using docker or singularity, this is a lot less error prone because of the containerized environments. If you don't have container software installed, you can also use conda as profile. For users at the University of Amsterdam: use the profile snellius if you are using the Snellius (uses Singularity by default).
You can also run a test that uses the samplesheet_test.csv in the assets folder (you don't need data for this), using:
bash
nextflow run barbarahelena/metagenomicspipeline \
-profile test \
--outdir <OUTDIR>
HPC
If you are working on an HPC, there might be specific rules on how many jobs the pipeline can submit in a specific timeframe. I wrote a separate instruction for use on HPCs in the usage documentation
For more details and further functionality, please refer to the usage documentation and the parameter documentation.
Pipeline output
All output of the different parts of the pipeline are stored in subdirectories of the output directory. These directories are named after the tools that were used ('metaphlan', 'humann', etc.). Other important outputs are the multiqc report in the multiqc folder and the execution html report in the pipeline_info folder.
For more details on the pipeline output, please refer to the output documentation.
Credits
I used the nf-core template as much as possible and used the taxprofiler nf-core pipeline and Eduard's metagenomics pipeline as examples.
Contributions and Support
If you would like to contribute to this pipeline, please see the contributing guidelines. For further information or help, don't hesitate to get in touch.
Citations
This pipeline uses bioBakery software, including MetaPhlAn and HUMAnN. It also uses Kraken2, if you specify it in the options (--skip_metaphlan, with --skip_kraken false). Please cite the papers of these tools. An extensive list of references for the tools used by the pipeline can be found in the CITATIONS.md file.
If you use this metagenomicspipeline for your analysis, please cite it using the following doi: 10.5281/zenodo.10663326.
Owner
- Name: Barbara Verhaar
- Login: barbarahelena
- Kind: user
- Location: Amsterdam
- Twitter: BarbaraVerhaar
- Repositories: 1
- Profile: https://github.com/barbarahelena
PhD candidate @ Amsterdam UMC Vascular medicine
Citation (CITATIONS.md)
# metagenomicspipeline: Citations ## [nf-core](https://pubmed.ncbi.nlm.nih.gov/32055031/) > Ewels PA, Peltzer A, Fillinger S, Patel H, Alneberg J, Wilm A, Garcia MU, Di Tommaso P, Nahnsen S. The nf-core framework for community-curated bioinformatics pipelines. Nat Biotechnol. 2020 Mar;38(3):276-278. doi: 10.1038/s41587-020-0439-x. PubMed PMID: 32055031. ## [Nextflow](https://pubmed.ncbi.nlm.nih.gov/28398311/) > Di Tommaso P, Chatzou M, Floden EW, Barja PP, Palumbo E, Notredame C. Nextflow enables reproducible computational workflows. Nat Biotechnol. 2017 Apr 11;35(4):316-319. doi: 10.1038/nbt.3820. PubMed PMID: 28398311. ## Pipeline tools - [FastQC](https://www.bioinformatics.babraham.ac.uk/projects/fastqc/) > Andrews, S. (2010). FastQC: A Quality Control Tool for High Throughput Sequence Data [Online]. - [MultiQC](https://pubmed.ncbi.nlm.nih.gov/27312411/) > Ewels P, Magnusson M, Lundin S, Käller M. MultiQC: summarize analysis results for multiple tools and samples in a single report. Bioinformatics. 2016 Oct 1;32(19):3047-8. doi: 10.1093/bioinformatics/btw354. Epub 2016 Jun 16. PubMed PMID: 27312411; PubMed Central PMCID: PMC5039924. - [MetaPhlAn](https://github.com/biobakery/MetaPhlAn) > Francesco Beghini, Lauren J McIver, Aitor Blanco-Mìguez, Leonard Dubois, Francesco Asnicar, Sagun Maharjan, Ana Mailyan, Andrew Maltez Thomas,Paolo Manghi, Mireia Valles-Colomer, George Weingart, Yancong Zhang, Moreno Zolfo, Curtis Huttenhower, Eric A Franzosa, Nicola Segata. Integrating taxonomic, functional, and strain-level profiling of diverse microbial communities with bioBakery. _eLife_ 2021 10:e65088. doi: [10.7554/eLife.65088](https://doi.org/10.7554/eLife.65088). - [Kraken2](https://github.com/DerrickWood/kraken2) > Aitor Blanco-Miguez, Francesco Beghini, Fabio Cumbo, Lauren J. McIver, Kelsey N. Thompson, Moreno Zolfo, Paolo Manghi, Leonard Dubois, Kun D. Huang, Andrew Maltez Thomas, Gianmarco Piccinno, Elisa Piperni, Michal Punčochář, Mireia Valles-Colomer, Adrian Tett, Francesca Giordano, Richard Davies, Jonathan Wolf, Sarah E. Berry, Tim D. Spector, Eric A. Franzosa, Edoardo Pasolli, Francesco Asnicar, Curtis Huttenhower, Nicola Segata. Extending and improving metagenomic taxonomic profiling with uncharacterized species using MetaPhlAn 4. _Nat Biotechnol._ 2023. doi: [10.1038/s41587-023-01688-w](https://doi.org/10.1038/s41587-023-01688-w). - [HUMAnN](https://github.com/biobakery/humann) > Francesco Beghini, Lauren J McIver, Aitor Blanco-Mìguez, Leonard Dubois, Francesco Asnicar, Sagun Maharjan, Ana Mailyan, Andrew Maltez Thomas, Paolo Manghi, Mireia Valles-Colomer, George Weingart, Yancong Zhang, Moreno Zolfo, Curtis Huttenhower, Eric A Franzosa, Nicola Segata. Integrating taxonomic, functional, and strain-level profiling of diverse microbial communities with bioBakery 3. _eLife_ 2021. doi: [10.7554/eLife.65088](https://doi.org/10.7554/eLife.65088). ## Software packaging/containerisation tools - [Singularity](https://pubmed.ncbi.nlm.nih.gov/28494014/) > Kurtzer GM, Sochat V, Bauer MW. Singularity: Scientific containers for mobility of compute. PLoS One. 2017 May 11;12(5):e0177459. doi: 10.1371/journal.pone.0177459. eCollection 2017. PubMed PMID: 28494014; PubMed Central PMCID: PMC5426675. - [Docker](https://dl.acm.org/doi/10.5555/2600239.2600241) > Merkel, D. (2014). Docker: lightweight linux containers for consistent development and deployment. Linux Journal, 2014(239), 2. doi: 10.5555/2600239.2600241. - [Anaconda](https://anaconda.com) > Anaconda Software Distribution. Computer software. Vers. 2-2.4.0. Anaconda, Nov. 2016. Web. - [Bioconda](https://pubmed.ncbi.nlm.nih.gov/29967506/) > Grüning B, Dale R, Sjödin A, Chapman BA, Rowe J, Tomkins-Tinch CH, Valieris R, Köster J; Bioconda Team. Bioconda: sustainable and comprehensive software distribution for the life sciences. Nat Methods. 2018 Jul;15(7):475-476. doi: 10.1038/s41592-018-0046-7. PubMed PMID: 29967506. - [BioContainers](https://pubmed.ncbi.nlm.nih.gov/28379341/) > da Veiga Leprevost F, Grüning B, Aflitos SA, Röst HL, Uszkoreit J, Barsnes H, Vaudel M, Moreno P, Gatto L, Weber J, Bai M, Jimenez RC, Sachsenberg T, Pfeuffer J, Alvarez RV, Griss J, Nesvizhskii AI, Perez-Riverol Y. BioContainers: an open-source and community-driven framework for software standardization. Bioinformatics. 2017 Aug 15;33(16):2580-2582. doi: 10.1093/bioinformatics/btx192. PubMed PMID: 28379341; PubMed Central PMCID: PMC5870671.
GitHub Events
Total
- Release event: 2
- Push event: 16
- Pull request event: 4
- Create event: 1
Last Year
- Release event: 2
- Push event: 16
- Pull request event: 4
- Create event: 1
Dependencies
- actions/upload-artifact v3 composite
- seqeralabs/action-tower-launch v2 composite
- actions/upload-artifact v3 composite
- seqeralabs/action-tower-launch v2 composite
- mshick/add-pr-comment v1 composite
- actions/checkout v3 composite
- nf-core/setup-nextflow v1 composite
- actions/stale v7 composite
- actions/checkout v3 composite
- actions/setup-node v3 composite
- actions/checkout v3 composite
- actions/setup-node v3 composite
- actions/setup-python v4 composite
- actions/upload-artifact v3 composite
- mshick/add-pr-comment v1 composite
- nf-core/setup-nextflow v1 composite
- psf/black stable composite
- dawidd6/action-download-artifact v2 composite
- marocchino/sticky-pull-request-comment v2 composite
- actions/setup-python v4 composite
- rzr/fediverse-action master composite
- zentered/bluesky-post-action v0.0.2 composite