rgi2lab: aggregate and visualize RGI antimicrobial resistance gene results
Source:R/rgi2lab-package.R
rgi2lab-package.Rdrgi2lab 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.txtfiles ofrgi bwt, filter them by gene coverage, normalise read counts to RPKM, and join sample metadata (such as the run table fromsra2lab::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().