Skip to main content

mykrobe_predict

Tags: amr resistance susceptibility k-mer fastq bam mykrobe sample-scope

Predict Antimicrobial Resistance (AMR) for supported bacterial species.

Uses Mykrobe to quickly predict resistance and susceptibility based on short reads (FASTQ) or aligned reads (BAM). It maps k-mers from the input sequences against a curated database of resistance markers for species like M. tuberculosis and S. aureus.

Uses explicit positional record fields for reads:

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

Inputs

record (
meta: Record,
r1: Path?,
r2: Path?,
se: Path?,
lr: Path?
)
FieldTypeDescription
metaRecordGroovy Record containing sample information
r1Path?Illumina R1 reads (paired-end)
r2Path?Illumina R2 reads (paired-end)
sePath?Single-end Illumina reads
lrPath?Long reads (ONT/PacBio)
species: String
NameTypeDescription
speciesStringThe target species for which to make the AMR prediction (e.g., "tb" or "staph")

Outputs

record (
meta: Record,
csv: Path,
json: Path,
results: Set<Path>,
logs: Set<Path?>,
nf_logs: Set<Path>,
versions: Set<Path>
)
FieldTypeDescription
metaRecordSample information record
csvPathAMR predictions in machine-readable CSV format
jsonPathDetailed AMR prediction results in JSON format
resultsSet<Path>All output files to be published
logsSet<Path?>Optional program specific log files
nf_logsSet<Path>Nextflow-specific log files (e.g. .command.{begin
versionsSet<Path>A YAML formatted file with program versions

Parameters

Mykrobe Parameters

ParameterTypeDefaultDescription
--mykrobe_speciesstringSpecies panel to use (choices: sonnei, staph, tb, typhi)
--mykrobe_optsstringExtra Mykrobe options in quotes

Used By

Subworkflows

  • genotyphi - Assign genotypes to Salmonella Typhi genomes.
  • mykrobe - Predict antibiotic resistance from sequence reads.

Workflows

  • genotyphi - Salmonella Typhi genotyping with lineage assignment.
  • 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

Version

MYKROBE_PREDICT:
- mykrobe: 0.13.0