Skip to main content

rgi

Tags: bacteria assembly antimicrobial-resistance resistome homology sample-scope

Predict antimicrobial resistance from protein or nucleotide data.

This subworkflow uses the Resistance Gene Identifier (RGI) to predict resistomes based on homology and SNP models. It includes analysis of resistance genes, creation of summary visualizations, and aggregation of results across samples.

Take

assembly: Channel<Record>
FieldDescription
metaGroovy Record containing sample information
assemblyAssembled contigs in FASTA format for resistome prediction

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
tsvRGI results in tab-separated format
jsonRGI results in JSON format (optional)

run_outputs

OutputDescription
csvAggregated results in CSV format

Module Composition

This subworkflow calls the following modules:

  • rgi_main - Predict antibiotic resistance from assemblies.
  • rgi_heatmap - Create heatmaps of resistance gene presence/absence.
  • csvtk_concat - Concatenate multiple CSV or TSV files into a single table.

Used By

This subworkflow is used by the following workflows:

  • rgi - Prediction of antibiotic resistance genes using RGI.

Citations

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

Source

View source on GitHub