Skip to content

Microbiome reads with nf-core/taxprofiler

This demonstration runs nf-core/taxprofiler 2.0.1 on a declared subset of SRR12324253, a public Zymo microbial standard. Kraken2 supplies read classifications, and Bracken reestimates their species distribution with the same database.

The fetch script retains the first 100,000 matched pairs in the ENA FASTQ order. It checks mate identifiers and writes subset checksums. This selection is deterministic, but it is not a random sample of all reads. It supports a declared processing example rather than a performance claim across the complete run.

The provenance file records the full source MD5 values supplied by ENA. They remain unverified because the script does not download the complete source files. The subset has its own verified identity, and the documentation keeps that distinction explicit.

The database is the October 22, 2026 PlusPF release capped at 8 GB from the Langmead laboratory collection. The preparation checks its archive and extracted files against the published MD5 manifest and records an archive SHA-256.

The database sheet contains a Bracken row with its associated Kraken2 database. The pipeline activates both tools. Bracken uses the 150-base read model, species rank, and a minimum support setting of ten reads. The input contains shorter reads as well, so the fixed read length model is an approximation.

Fastp performs the selected short read quality step. The run retains paired reads and does not merge them. It does not perform host removal on this mock example. A host-associated biological sample requires a separate assessment of whether and how that step should run.

The companion directory requires repository access. Run the source preparation and pipeline from that repository’s root after the section environment is available.

The read subset comes from SRR12324253, covered by the INSDC data policy. The Langmead laboratory supplies the October 22, 2026 PlusPF index and permits its use and analysis results for any purpose. The source notice records the exact subset, database manifest, and underlying NCBI terms.

Terminal window
uv run --project guides/microbiome/container \
python guides/microbiome/fetch_shotgun.py
bash guides/microbiome/fetch_database.sh
bash guides/reproducibility/microbiome_taxprofiler/run.sh

Nextflow 26.04.0 runs the Podman profile with the recorded local resource limits. The runner reads the generated samplesheet and database sheet, then writes its results under outputs/pipeline/ in the guide directory. The work directory and inputs default to /mnt/data/bti_microbiome_2026_10_31/.

The Kraken report distinguishes directly assigned reads from clade totals. The Bracken table contains estimates at the requested species rank. Standardized tables can make files easier to compare, but they do not make different estimators measure the same quantity.

The companion exporter copies the original Kraken2 and Bracken reports, fastp measurements, software versions, and execution trace into the section fixtures. It records their source paths and SHA-256 values with the parameters and database provenance.

Terminal window
uv run --project guides/microbiome/container \
python guides/microbiome/export_pipeline_inputs.py taxprofiler

The taxonomic profiles lesson reads those reports in R and Python. It checks the species rank, calculates the unclassified fraction, and plots the largest species estimates. Each paired record counts as one Kraken2 fragment in this run.

Inspect read retention, the unclassified fraction, and the taxonomic rank before selecting taxa for a figure. A mock community’s expected DNA proportions are not automatically its expected read proportions or cell proportions. Reference coverage and the capped database can also affect apparent recovery.

The taxprofiler lesson explains these report fields and estimator choices.

The nf-core/taxprofiler 2.0.1 usage guide defines the sample and database sheets. Compare the database release and resource limits with the exact files in this execution record.

The Bracken project documentation explains how a matching Kraken database and read-length distribution enter abundance estimation. It provides the context for the Bracken stage after classification.