nf-core taxprofiler

Metagenomic taxonomic profiling with many profilers at once: a native port of nf-core/taxprofiler 2.0.1.

by Temple Compute

Run nf-core taxprofiler on Horus

W-58 · nf-core/taxprofiler (native port)

Metagenomic taxonomic profiling with many profilers at once: a native port of nf-core/taxprofiler 2.0.1.

Domain: nf-core ports

Overview

Runs the route nextflow run nf-core/taxprofiler -r 2.0.1 -profile test,docker takes, as Horus tasks with the same containers, rendered command lines and per-process cpus/memory: read QC, host removal and run merging, then Kraken2, Bracken, Centrifuge, MetaPhlAn, Kaiju, DIAMOND, ganon, KMCP, sylph, Melon and MetaCache against every database in the database sheet, Krona charts, taxpasta tables and MultiQC. The pipeline's Groovy channel logic depends only on the two sheets, so one planning task (scripts/plan.py) decides which runs get which preprocessing and which (sample, database) pairs each profiler gets, and writes one folder of job files per process. Every per-run, per-pair and per-group process is a horus_map over its folder. The workflow has 52 tasks (46 maps).

Variants

Pipeline

plan                          samplesheet + database sheet ──► work/reads/, work/dbs/, work/jobs/<process>/
untar[*]                      .tar.gz databases ──► work/untar/
fastqc_raw[*]                 FASTQC on raw short and nanopore runs
fastp, fastqc_short, nonpareil, bbduk[*]       short runs: fastp with pair merging, FastQC, Nonpareil, BBDuk
nonpareil_curve[*], nonpareil_set, nonpareil_curvesr
bowtie2_build, bowtie2_align, samtools_index, stats_short    short-read host removal
porechop, nanoq, fastqc_long[*]                nanopore runs: porechop_abi, nanoq, FastQC
minimap2_index, minimap2_align, stats_long, samtools_view, samtools_fastq   long-read host removal
merge_runs[*]                 runs of one sample ──► <id>.merged.fastq.gz
kraken2, bracken, centrifuge, ckreport, metaphlan, kaiju, kaijutable, diamond,
ganon, ganon_report, kmcp, kmcp_profile, sylph, sylphtax, melon, metacache[*]   per (sample, database)
kreport2krona, kaiju2krona, krona[*]           Krona charts per (tool, database)
taxpasta_merge, taxpasta_standardise[*]        standardised tables per (tool, database)
bracken_combined, centrifuge_combined, kaiju_combined, kraken2_combined,
metaphlan_combined, ganon_combined, sylph_combined[*]   each tool's own merged table
multiqc                       ──► results/multiqc/multiqc_report.html

Inputs / Outputs

Profiles, taxpasta tables, the tools' merged tables and the MultiQC general statistics match the Nextflow run. Some files match only up to order, in both engines: multithreaded tools (Kaiju, Centrifuge, MetaCache, bowtie2 unmapped reads) write reads in a different order, and Nextflow collects samples into the merged tables in completion order, so the columns come in a different order. DIAMOND aligns a few more or fewer reads between runs of the same input, which moves them to or from the unclassified count: Nextflow on a Horus node (blackbox run 85fa0f6c) aligned 1 more read of sample 2612 than the local Nextflow run, and the native run 0dc08bce 2 fewer of 2613 (7,813 vs 7,815). Nonpareil subsamples reads at random with no seed, so its curves and diversity values differ slightly on every run. The MultiQC report has no software versions, workflow summary or methods sections, which nf-core builds from Nextflow run metadata.

Not ported (off in the test profile): MALT and MEGAN, mOTUs, KrakenUniq (no database in the test sheet; plan stops on a KrakenUniq row), AdapterRemoval, Falco, PRINSEQ++, Filtlong, Porechop, PacBio FASTQ input, prebuilt host indexes and the other --perform_* / --save_* switches. Their params are fixed at the test profile's values.

Bracken, the Centrifuge kreport and the merged Kraken-style tables keep the pipeline's errorStrategy 'ignore': a failed tool leaves no output and the task succeeds. Nextflow then drops that file from the downstream groups; here the Krona, taxpasta and merge tasks that list it fail on the missing file and stop the run. The test profile does not take this path.

Parameters

| id | Default | Meaning | |---|---|---| | samplesheet | examples/samplesheet.csv | Runs and their reads (--input) | | databases | examples/databases.csv | Profilers and their databases (--databases) | | hostremoval_reference | test profile genome.fasta | Host genome to remove (--hostremoval_reference) | | sylph_taxonomy | test profile test_taxonomy.tsv.gz | sylph-tax taxonomy (--sylph_taxonomy) | | input_mirror | empty | Folder searched by file name before downloading |

References