How cdcgov/aquascope works
Aquascope is a Nextflow bioinformatics pipeline for SARS-CoV-2 wastewater sequencing that aims to determine relative variant abundance. The graph shows the documented user-to-result purpose and major workflow branches suggested by the repository layout. The README does not describe internal routing, and the supplied source excerpts cover only samplesheet utilities, so internal workflow connections are shown as unverified rather than asserted as source-proven calls.
Main entry points: aquascope.nf Aquascope workflow · freyja_variant_demix_update/main.nf Freyja orchestration · freyja_only.nf Freyja workflow · main.nf Nextflow entry
Components 19
Pipeline entry
- Nextflow entry
main.nf - Aquascope workflow
workflows/aquascope.nf - Freyja workflow
workflows/freyja_only.nf - Quality alignment
workflows/quality_align.nf
Input and trimming
- Samplesheet validation
bin/check_samplesheet.py - BAM samplesheet
bin/bam_to_samplesheet.py - Input checks
subworkflows/local/input_check.nf - Read trimming
subworkflows/local/trimming.nf - ONT trimming
subworkflows/local/ont_trimming.nf
Alignment and QC
- Read alignment
modules/local/minimap2/align/main.nf - BAM sort and stats
subworkflows/local/bam_sort_stats_samtools/main.nf - Sequencing QC
modules/nf-core/qualimap/bamqc/main.nf - QC report
modules/nf-core/multiqc/main.nf
Variant analysis
- Freyja orchestration
subworkflows/local/freyja_variant_demix_update/main.nf - Variant calling
modules/local/freyja/variants/main.nf - Variant demixing
modules/local/freyja/demix/main.nf - Freyja reference update
modules/local/freyja/update/main.nf
Other components
- Pipeline user
- Relative variant abundance
Connections 18
- Pipeline user → Nextflow entry: runs pipeline
README.md - Nextflow entry → Aquascope workflow: starts workflow
- Aquascope workflow → Samplesheet validation: validates inputs
- Aquascope workflow → Input checks: checks inputs
- Aquascope workflow → Read trimming: trims reads
- Aquascope workflow → ONT trimming: trims ONT reads
- Aquascope workflow → Read alignment: aligns reads
- Aquascope workflow → BAM sort and stats: processes BAMs
- Aquascope workflow → Sequencing QC: assesses quality
- Aquascope workflow → QC report: reports QC
- Aquascope workflow → Freyja orchestration: analyzes variants
- Freyja workflow → BAM samplesheet: prepares BAM inputs
- Freyja workflow → Freyja orchestration: runs analysis
- Freyja orchestration → Freyja reference update: updates reference
- Freyja orchestration → Variant calling: calls variants
- Freyja orchestration → Variant demixing: demixes variants
- Freyja orchestration → Relative variant abundance: produces abundance
- Quality alignment → Read alignment: aligns reads