How microbial-ecology-group/amrplusplus works
AMR++ is a Nextflow pipeline for turning sequencing reads into antimicrobial-resistance, microbiome, and related analysis outputs. Its main workflow is raw FASTQ input through quality control, alignment and resistome counting, followed by count matrices and optional SNV confirmation, rarefaction, or coverage-threshold evaluation. The README documents these capabilities, but the Nextflow orchestration files were not excerpted; links to specific workflow stages are therefore shown as unverified dashed edges. The graph also includes the source-indexed analysis scripts and the MEGARes reference data.
Main entry points: AMR++_standard.nf Standard workflows · main_AMR++.nf Pipeline entry · fastq_align.nf Read alignment · alignment_analyzer.py Alignment counting
Components 23
Workflow orchestration
- Pipeline entry
main_AMR++.nf - Standard workflows
subworkflows/AMR++_standard.nf - Workflow variants
subworkflows
Read processing
- QC and trimming
subworkflows/fastq_QC_trimming.nf - Read merging
subworkflows/fastq_merging.nf - Host removal
subworkflows/fastq_host_removal.nf - Read alignment
subworkflows/fastq_align.nf
Resistance analysis
- Resistome workflow
subworkflows/fastq_resistome.nf - Alignment counting
bin/alignment_analyzer.py - MEGARes references
data/amr - Microbiome profiling
subworkflows/fastq_microbiome.nf
Analysis extensions
- SNV confirmation
subworkflows/bam_snv.nf - SNV preparation
bin/SNV_calling/prep_NGLess.py - SNV matrix filtering
bin/SNV_calling/Filter_SNV_matrix.py - Coverage evaluation
bin/coverage_threshold_evaluation.py
Reporting
- Taxonomy matrices
bin/kraken2_long_to_wide.py - Evaluation matrices
bin/combine_evaluation_results.py - Rarefaction plots
bin/rfplot.py - Read statistics
bin/summarize_read_stats.py - Alignment diagnostics
bin/reads_to_gene_mapq.py - Resistome matrices
bin/alignment_analyzer.py
Other components
- Researcher
- Sequencing reads
Connections 22
- Researcher → Pipeline entry: runs
README.md - Sequencing reads → Pipeline entry: provides reads
README.md - Pipeline entry → Standard workflows: dispatches
- Pipeline entry → Workflow variants: selects variant
- Standard workflows → QC and trimming: runs QC
- Standard workflows → Read merging: supports merging
- Standard workflows → Host removal: supports removal
- Standard workflows → Read alignment: aligns reads
- Standard workflows → Resistome workflow: runs analysis
- Resistome workflow → Alignment counting: counts alignments
- Alignment counting → MEGARes references: uses reference
README.md - Alignment counting → Resistome matrices: writes counts
README.md - Standard workflows → Microbiome profiling: offers profiling
- Microbiome profiling → Taxonomy matrices: formats taxonomy
- Standard workflows → SNV confirmation: offers confirmation
README.md - SNV confirmation → SNV preparation: prepares calls
- SNV confirmation → SNV matrix filtering: filters matrix
- Read alignment → Coverage evaluation: evaluates thresholds
- Coverage evaluation → Evaluation matrices: combines outputs
bin/combine_evaluation_results.py - Standard workflows → Rarefaction plots: offers rarefaction
- QC and trimming → Read statistics: summarizes stats
- Read alignment → Alignment diagnostics: reports MAPQ