Skip to contents

rgi2lab picks up where the RGI functions of sra2lab (rgi_runs(), rgi_local()) leave off. Its four core functions are:

rgi_aggregate()

read and combine the per-sample gene_mapping_data.txt files of rgi bwt, filter them by gene coverage, normalise read counts to RPKM, and join sample metadata (such as the run table from sra2lab::get_bioproject_runs()).

rgi_timeline()

plot the cohort's sampling timeline: one row per subject, one point per sample.

rgi_heatmap()

plot a samples x resistance genes heatmap, of genes or of CARD's AMR gene families, drug classes or resistance mechanisms.

rgi_feature_plot()

plot the abundance of one gene, gene family or drug class across samples, subjects and groups, optionally CLR-transformed. The values behind it come from rgi_feature_abundance().

Details

rgi_mapping_stats() reads each sample's mapping statistics (reads sequenced and mapped to CARD).

Example rgi bwt results from 18 SRA runs of BioProject PRJNA1556220 and the BioProject's run table are installed with the package; see rgi_example().

Author

Maintainer: Brendan J. Kelly brendank@upenn.edu

Authors: