Skip to main content

kraken2

Tags: metagenomics taxonomic-classification kraken2 k-mer sample-scope

Classify metagenomic reads using Kraken2.

This subworkflow performs taxonomic classification of metagenomic reads using Kraken2, a fast taxonomic classification system. It assigns taxonomic labels to sequencing reads based on k-mer matching against a reference database.

Uses explicit positional record fields for reads:

  • Input: record(meta, r1, r2, se, lr) where each read slot is Path?

Take

reads: Channel<Record>
FieldDescription
metaGroovy Record containing sample information
r1Illumina R1 reads (paired-end)
r2Illumina R2 reads (paired-end)
seSingle-end Illumina reads
lrLong reads (ONT/PacBio)
database: Path
NameTypeDescription
databasePathPath to the Kraken2 database for taxonomic classification.

Emit

Published

The sample_outputs and run_outputs emissions are aggregates of output files that will be published in the entry workflow.

sample_outputs

OutputDescription
kraken2_reportStandard Kraken2 report containing taxonomic abundance counts
scrub_reportSummary report of reads removed during host scrubbing (optional)
special_metaA simplified metadata record for internal use
classifiedReads assigned to a taxon in the database (FASTQ)
unclassifiedReads NOT assigned to any taxon (FASTQ)

run_outputs

No run-scope outputs.

Module Composition

This subworkflow calls the following modules:

  • kraken2 - Taxonomic classification and host filtering of sequence reads.

Used By

This subworkflow is used by the following workflows:

  • kraken2 - Taxonomic classification of metagenomic sequence reads.

Citations

If you use this in your analysis, please cite the following.

Source

View source on GitHub