Skip to main content

midas

Tags: metagenomics species profiling abundance strain sample-scope

Species-level profiling from metagenomic data.

This subworkflow estimates strain-level genomic variation from metagenomic data using MIDAS. The pipeline identifies bacterial species abundances and provides strain-level profiling including SNP analysis. It uses a comprehensive reference database for accurate species identification and quantification in complex microbial communities.

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 (not supported by MIDAS)
database: Path?
download_midas: Boolean
save_as_tarball: Boolean
NameTypeDescription
databasePath?MIDAS reference database for species identification and quantification
download_midasBooleanBoolean flag to automatically download the MIDAS database if not available
save_as_tarballBooleanBoolean flag to save downloaded database as tarball

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
tsvA tab-delimited summary of species abundance and coverage
abundancesDetailed species abundance profile

run_outputs

OutputDescription
csvMerged species abundance results from all samples

Module Composition

This subworkflow calls the following modules:

  • csvtk_concat - Concatenate multiple CSV or TSV files into a single table.
  • midas_species - Estimate bacterial species abundance from metagenomic reads.
  • midas_download - Download the MIDAS reference database.

Used By

This subworkflow is used by the following workflows:

  • midas - Estimate species abundances from metagenomic samples.

Citations

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

Source

View source on GitHub