Skip to contents

Data Import & Preprocessing

Functions to import, harmonise, and prepare genotype and phenotype data from public repositories or internal formats.

import_amrfp()
Import and Process AMRFinderPlus Results
import_amrfp_ebi()
Import EBI-processed AMRFinderPlus Genotypes
import_amrfp_ebi_ftp()
Import EBI-processed AMRFinderPlus Genotypes from FTP
import_amrfp_ebi_web()
Import EBI-processed AMRFinderPlus Genotypes from Web
import_ast()
Import and process antimicrobial phenotype data from common sources
import_ebi_ast()
Import and process antimicrobial susceptibility phenotype data from the EBI AMR web portal
import_ebi_ast_ftp()
Import and process antimicrobial phenotype data files retrieved from the EBI AMR portal FTP site
import_gtdb()
Import GTDB Output
import_microscan_ast()
Import and process antimicrobial phenotype data exported from MicroScan instruments
import_ncbi_ast()
Import and process antimicrobial susceptibility phenotype data from the NCBI AST browser
import_ncbi_biosample()
Import and process antimicrobial phenotype data retrieved from NCBI BioSamples
import_sensititre_ast()
Import and process antimicrobial phenotype data exported from Sensititre instruments
import_vitek_ast()
Import and process antimicrobial phenotype data exported from Vitek instruments
import_whonet_ast()
Import and process antimicrobial phenotype data from WHONET files
export_ast()
Export AST Data
export_ebi_antibiogram()
Export EBI Antibiogram
export_ncbi_biosample()
Export NCBI BioSample Antibiogram
convert_aa_code()
Convert single-letter amino acid code(s) to three-letter code(s)
convert_mutation()
Convert mutation string based on method
download_ebi()
Download antimicrobial genotype or phenotype data from the EBI AMR Portal
download_ncbi_ast()
Download NCBI antimicrobial susceptibility testing (AST) data
get_binary_matrix()
Get Binary Matrix of Genotype and Phenotype Data
get_combo_matrix()
Add marker combinations to a binary geno-pheno matrix
combo_stats()
Generate a Series of Plots for AMR Gene and Combination Analysis
as.gene()
Gene Class and AMR Parsing Functions
gtdb.mo()
Get Microorganism from GTDB Species Name
format_ast()
Import and process antimicrobial phenotype data from a generic format

Resistance Interpretation

Core tools for interpreting antimicrobial resistance based on EUCAST breakpoints and custom models.

compare_estimates()
Plot to Compare Two Sets of Estimates
compare_geno_pheno_id()
Compare Genotype and Phenotype Data by Sample ID
get_eucast_amr_distribution() get_eucast_mic_distribution() get_eucast_disk_distribution() compare_mic_with_eucast() compare_disk_with_eucast()
Get and Compare Antimicrobial Wild Type Distributions from EUCAST
eucast_supported_ab_distributions()
Retrieve Available Antimicrobial Wild Type Distributions from EUCAST
merge_logreg_soloppv()
Merge Logistic Regression and Solo PPV Statistics
interpret_ast()
Interpret antimicrobial susceptibility phenotype data in a standard format tibble

Modelling and analysis

Statistical models for resistance prediction and inference, including logistic regression and Firth regression.

amr_upset()
Generate Upset Plot
solo_ppv_analysis()
Perform Solo PPV Analysis for AMR Markers
ppv()
Generate PPV Plot
amr_logistic()
AMR Logistic Regression Analysis
glm_details()
Extract Details from a Generalized Linear Model
logistf_details()
Extract Details from a logistf Model
getBreakpoints()
Get Clinical Breakpoints for an Antibiotic
checkBreakpoints()
Check and Retrieve Breakpoints for an Antibiotic

Visualisation & Reporting

Tools to visualise results, including MIC distributions, model outputs, and genotype-phenotype relationships.

plot_combined_stats()
Plot Combined Statistics
plot_estimates()
Plot Estimates from a Table of Results
plot_solo_logReg()
Plot Combined Statistics of Logistic Regression and Solo PPV
assay_by_var()
Generate a Stacked Bar Plot of Assay Values Colored by a Variable

Data

Example datasets for demonstration and reproducible analysis.

ecoli_ast
E. coli NCBI AST Example Data, Re-interpreted with AMR Package
ecoli_ast_raw
E. coli NCBI AST Example Data
ecoli_geno_raw
E. coli Genotype Example Data