Skip to contents

Combine results

Read a project’s rgi bwt results into one table, filtered and normalised, with sample metadata; and read the mapping statistics.

rgi_aggregate()
Combine RGI gene mapping results and join sample metadata
rgi_mapping_stats()
Read RGI's mapping statistics for each sample

Plot the cohort

See how the cohort was sampled: one row per subject, one point per sample.

rgi_timeline()
Plot a cohort's sampling timeline

Plot abundances

A samples x resistance genes heatmap of genes, gene families, drug classes or mechanisms, and a focused plot of one gene or drug class across samples, subjects and groups, raw or CLR-transformed.

rgi_heatmap()
Plot a heatmap of resistance gene abundances
rgi_feature_plot()
Plot the abundance of one resistance gene, gene family or drug class
rgi_feature_abundance()
Abundance of one resistance gene, gene family or drug class in each sample

Example data

rgi bwt results and run metadata from BioProject PRJNA1556220, installed with the package.

rgi_example()
Paths to the example data installed with rgi2lab

Package

rgi2lab rgi2lab-package
rgi2lab: aggregate and visualize RGI antimicrobial resistance gene results