Microbiome reads with nf-core/ampliseq
The amplicon demonstration starts from the public mothur MiSeq SOP archive and processes its paired reads with nf-core/ampliseq 3.1.0. The archive includes repeated mouse samples and a mock community. Its role is to demonstrate sequence processing, not to supply independent animals for a population comparison.
Identify the source and its preparation
Section titled “Identify the source and its preparation”The DADA2 tutorial describes these reads as already free of the primer and adapter sequence needed to be removed before its workflow. This run therefore skips primer removal and records that decision explicitly. The input preparation compresses the original FASTQ files and writes a samplesheet with matching forward and reverse paths.
The companion preserves the archive SHA-256 and checks it before preparation.
The source archive is miseqsopdata.zip, and its recorded digest is
728f7544824f8ca0223618b18bb60fce6a5dc20ae3d476267dbd5cf5594a35d4.
The sample order and paths come from the prepared archive rather than a manually
copied list of filenames.
Reproduce the declared invocation
Section titled “Reproduce the declared invocation”The companion directory
requires repository access. Its run.sh executes the versioned pipeline,
parameter file, and local configuration. The source-data scripts are in
guides/microbiome/ in the same repository.
The mouse and mock-community reads come from the Schloss laboratory MiSeq SOP archive, whose source site grants CC BY 4.0. SILVA supplies the 138.2 taxonomy under its own CC BY 4.0 grant. The source notice records these credits and the new analysis outputs.
bash guides/microbiome/fetch_inputs.shuv run --project guides/microbiome/container \ python guides/microbiome/prepare_inputs.pybash guides/reproducibility/microbiome_ampliseq/run.shThe script uses Nextflow 26.04.0 and the Podman profile. It records a forward truncation of 240 bases and a reverse truncation of 160 bases, with SILVA 138.2 for taxonomy. Species assignment, QIIME2 downstream analysis, and serialized R object exports are disabled for this demonstration.
The work directory is /mnt/data/bti_microbiome_2026_10_31/ by default.
The runner accepts BTI_MICROBIOME_SCRATCH for another work directory.
The preparation script accepts the corresponding --scratch path.
Preserve the resolved samplesheet and execution configuration with the results.
Inspect what the workflow produced
Section titled “Inspect what the workflow produced”The pipeline results appear under the guide’s outputs/pipeline/ directory.
Read the sequence table, taxonomic assignments, read tracking, and quality
reports together. A nonchimeric count table without its sample-level retention
report hides where observations disappeared.
| File within the pipeline results | Contents |
|---|---|
dada2/ASV_table.tsv |
Inferred ASV counts by library |
dada2/ASV_tax.silva_138_2.tsv |
SILVA taxonomic assignments |
dada2/DADA2_stats.tsv |
Input, filtered, denoised, merged, and nonchimeric counts |
pipeline_info/ |
Execution trace, parameters, software versions, and reports |
The companion exporter preserves these small analysis tables and their source
hashes in guides/microbiome/fixtures/. The
QC lesson
calculates retention from the exported DADA2 report in R and Python.
uv run --project guides/microbiome/container \ python guides/microbiome/export_pipeline_inputs.py ampliseqThe execution log and software version report record the processes that actually ran. The companion gate checks the pipeline exit status and the freshness of its output files. Its result belongs to this input set and parameter choice.
Keep the interpretation within the assay
Section titled “Keep the interpretation within the assay”The output sequences represent the assayed marker region. An ASV is not an automatic species identification, and a sequence count is not a cell count. The ampliseq lesson explains the decisions at each processing step.
The paired statistical lessons use a separate public colorectal OTU table. Their results do not come from these mouse reads. The dataset lesson documents that boundary.
Further reading
Section titled “Further reading”The ampliseq 3.1.0 usage guide explains the sample and run metadata and the conditions for skipping primer removal. Compare those conditions with the preparation recorded here.
The DADA2 tutorial describes the MiSeq SOP reads, their mouse sampling design, and the primer-free input expected by its workflow. It gives the source context for this example without turning repeated samples into independent animals.