How epi2me-labs/wf-metagenomics works
Metagenomics is a Nextflow workflow for classifying sequencing reads and producing taxonomic profiles, with optional host depletion, AMR detection, and alignment-focused outputs. The documented path is input FASTQ/BAM through concatenation and read statistics, optional host filtering, one of two classification approaches, then abundance and report outputs. The graph also retains the substantial report-analysis modules identified in the source index. Workflow wiring beyond the README-described stages is not verified from sampled Nextflow source, so edges use the README as evidence.
Main entry points: minimap_pipeline.nf Minimap2 alignment · abundance_tables.py Abundance tables · common_pipeline.nf Concatenate and stats · report.py Interactive report
Components 18
Workflow stages
- Nextflow workflow
main.nf - Concatenate and stats
subworkflows/common_pipeline.nf - Host depletion
modules/local/common.nf
Classification
- Kraken2 classification
subworkflows/kraken_pipeline.nf - Bracken abundance
bin/workflow_glue/run_bracken.py - Minimap2 alignment
subworkflows/minimap_pipeline.nf - AMR detection
modules/local/amr.nf
Analysis and reports
- Abundance tables
bin/workflow_glue/abundance_tables.py - Alignment statistics
bin/workflow_glue/alignment_stats.py - Report analytics
bin/workflow_glue/report_utils/report_utils.py - Diversity metrics
bin/workflow_glue/diversity.py - Interactive report
bin/workflow_glue/report.py
Workflow glue
- Lineage aggregation
bin/workflow_glue/aggregate_lineages.py - Result models
bin/workflow_glue/models/common.py - IGV configuration
bin/workflow_glue/wfg_helpers/configure_igv.py
Other components
- Sequencing data
- Alignment outputs
- Taxonomic profile
Connections 19
- Sequencing data → Nextflow workflow: provides reads
README.md - Nextflow workflow → Concatenate and stats: starts with
README.md - Concatenate and stats → Host depletion: optionally filters
README.md - Concatenate and stats → Kraken2 classification: classifies with
README.md - Concatenate and stats → Minimap2 alignment: aligns with
README.md - Kraken2 classification → Bracken abundance: estimates abundance
README.md - Kraken2 classification → Abundance tables: feeds profiles
- Bracken abundance → Abundance tables: produces counts
- Minimap2 alignment → Alignment statistics: reports alignment stats
README.md - Minimap2 alignment → Alignment outputs: optionally outputs BAMs
README.md - Minimap2 alignment → IGV configuration: optionally configures IGV
README.md - Abundance tables → Taxonomic profile: writes abundance table
README.md - Abundance tables → Interactive report: supplies profile data
- Alignment statistics → Interactive report: supplies alignment plots
README.md - Report analytics → Interactive report: supports report
bin/workflow_glue/report.py - Diversity metrics → Report analytics: calculates diversity
bin/workflow_glue/report_utils/report_utils.py - Lineage aggregation → Abundance tables: aggregates lineages
- AMR detection → Interactive report: reports AMR results
README.md - Host depletion → Minimap2 alignment: excludes mapped reads
README.md