Skip to main content

mykrobe

Tags: bacteria reads antimicrobial-resistance genotype-prediction sample-scope

Predict antibiotic resistance from sequence reads.

This subworkflow uses Mykrobe to predict antibiotic resistance directly from sequencing reads. It provides rapid genotype-based resistance predictions for specific bacterial species.

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)
mykrobe_species: String
NameTypeDescription
mykrobe_speciesStringTarget bacterial species for resistance prediction (e.g., "staphylococcus_aureus", "mycobacterium_tuberculosis", or "enterococcus_faecium").

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
csvAMR predictions in machine-readable CSV format
jsonDetailed AMR prediction results in JSON format

run_outputs

OutputDescription
csvMerged AMR predictions from all samples

Module Composition

This subworkflow calls the following modules:

  • mykrobe_predict - Predict Antimicrobial Resistance (AMR) for supported bacterial species.
  • csvtk_concat - Concatenate multiple CSV or TSV files into a single table.

Used By

This subworkflow is used by the following workflows:

  • mykrobe - Antimicrobial resistance detection for specific bacterial species.

Citations

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

Source

View source on GitHub