Skip to main content

rgi_main

Tags: resistance antimicrobial-resistance card rgi amr sample-scope

Predict antibiotic resistance from assemblies.

Uses RGI (Resistance Gene Identifier) to predict resistomes from protein or nucleotide data based on homology and SNP models using the Comprehensive Antibiotic Resistance Database (CARD).

Inputs​

record (
meta: Record,
fna: Path
)
FieldTypeDescription
metaRecordGroovy Record containing sample information
fnaPathAssembled contigs in FASTA format

Outputs​

record (
meta: Record,
tsv: Path,
json: Path?,
results: Set<Path>,
logs: Set<Path?>,
nf_logs: Set<Path>,
versions: Set<Path>
)
FieldTypeDescription
metaRecordSample information record
tsvPathRGI results in tab-separated format
jsonPath?RGI 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​

RGI Main Parameters​

ParameterTypeDefaultDescription
--rgi_use_diamondbooleanfalseUse DIAMOND for alignments instead of BLAST
--rgi_include_loosebooleanfalseInclude loose hits in addition to strict and perfect hits
--rgi_include_nudgebooleanfalseInclude hits nudged from loose to strict hits
--rgi_frequencybooleanfalseRepresent samples based on resistance profile
--rgi_categorystringOrganize resistance genes based on a category (choices: drug_class, resistance_mechanism, gene_family)
--rgi_clusterstringUse SciPy's hierarchical clustering algorithm to cluster rows (AMR genes) or columns (samples) (choices: samples, genes, both)
--rgi_displaystringplainSpecify display options for categories (choices: plain, fill, text)

Used By​

Subworkflows​

  • rgi - Predict antimicrobial resistance from protein or nucleotide data.

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

Version​

RGI_MAIN:
- rgi: 6.0.8