Skip to content

nf-core/taxprofiler

nf-core/taxprofiler runs taxonomic tools on shotgun reads and organizes their outputs. Preprocessing and profiling steps are selected explicitly. A database row alone does not activate a tool, and a tool flag alone does not supply its database.

The read samplesheet identifies the sample, sequencing run, instrument platform, and sequence files. Keeping a run identifier separate from the biological sample identifier helps distinguish sequencing runs from independent specimens.

The database sheet requires the tool, database name, tool arguments, and database path. Release 2.0.1 also accepts an optional db_type column to restrict supported read types. The versioned usage documentation and input schemas define their allowed values.

Input Identity to preserve
Read pair Sample, run accession, mate order, and source checksums
Database Tool, release date, sequence coverage, and archive checksum
Parameters Activated tools, read filters, classification settings, and output rank
Host reference Organism, assembly, and intended removal rule when used

Distinguish classification from abundance estimation

Section titled “Distinguish classification from abundance estimation”

Kraken2 compares sequence minimizers with a database and assigns reads within a taxonomic tree. A report can include both a taxon’s directly assigned reads and all reads assigned within its descendant clade. These fields answer different count questions.

Bracken uses the Kraken database’s read distribution models to reestimate abundance at a selected rank. Its database must match the Kraken database and the selected read length model. A Bracken estimate does not automatically measure cell abundance, and Kraken plus Bracken are not independent classifiers.

Marker based tools such as MetaPhlAn and mOTUs use a different evidence model. Differences between their profiles and Kraken based results can reflect the reference content, marker rules, unknown organisms, and denominators. A comparison needs those definitions before it needs a correlation coefficient.

The input is the first 100,000 matched read pairs of public run SRR12324253, from a Zymo microbial standard. The extraction script records the selection rule and the checksums of the resulting subset.

The selected database is the October 22, 2026 PlusPF release capped at 8 GB from the Langmead laboratory database collection. It includes fungal references as well as the standard database content. The cap reduces the stored sequence signatures and can affect sensitivity. The archive’s published checksum is checked before extraction.

Read lengths in the downloaded subset vary, with a maximum of 150 bases. The example uses the 150-base Bracken model as an approximation. That choice is a limitation to report, especially when preprocessing leaves many shorter reads. The local execution record contains the exact settings and output inspection.

The human shotgun case study uses archived IBDMDB profiles from taxprofiler 1.2.6. It selects independent participants and compares Bracken and MetaPhlAn in R and Python. Its database releases differ from this mock demonstration, and its original primary run is not rerun here. The profiler comparison keeps the denominators explicit and includes unreported entries in group means.

Investigate failures at the relevant stage

Section titled “Investigate failures at the relevant stage”

A large unclassified fraction can reflect database coverage, read quality, host material, or an organism outside the database. Increasing the number of classifiers does not identify the cause by itself. Inspect the relevant preprocessing reports and database content before interpreting a missing taxon.

The Kraken2 manual explains its report fields. The Bracken publication describes the abundance reestimation model.

  • nf-core/taxprofiler 2.0.1 usage guide

    The versioned guide documents the database sheet and profiler-specific arguments. Use it to connect each output to the database and settings that produced it.

  • Bracken README

    The original project documentation describes abundance estimation from Kraken reports and the database files required for a selected read length. This distinction helps interpret the Bracken table separately from a Kraken classification report.