
Package index
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_kleborate() - Import and Process Kleborate Results
-
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_phoenix_ast() - Import and process antimicrobial phenotype data exported from BD Phoenix instruments
-
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_ebi_ast() - Export EBI Antibiogram
-
export_ncbi_ast() - 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
-
summarise_geno() - Summarise a Genotype Table
-
summarise_pheno() - Summarise a Phenotype Table
-
format_ast() - Import and process antimicrobial phenotype data from a generic format
-
format_ebi_json() - Generate EBI antibiogram submission in JSON
-
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
-
query_ncbi_bq_ast() - Query antimicrobial phenotype (AST) data from NCBI Pathogen Detection BigQuery
-
query_ncbi_bq_geno() - Query antimicrobial genotype (MicroBIGG-E) data from NCBI Pathogen Detection BigQuery
-
hamronize_data() - hamronize_data
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
-
concordance() - Calculate genotype-phenotype concordance from binary matrix
-
print(<amr_concordance>) - Print method for amr_concordance objects
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
-
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
-
ecoli_cip_vs_ref - E. coli Ciprofloxacin MIC Distribution Example Data
-
ecoli_cip_mic_data - EUCAST Reference distribution for Ciprofloxacin in E. coli
-
staph_ast_ncbi - S. aureus Example of Imported NCBI Phenotype Data
-
staph_ast_ncbi_raw - S. aureus Example of Raw Phenotype Data Downloaded from NCBI BioSamples via Entrez API
-
staph_ast_ncbi_cloud_raw - S. aureus Example of Raw Phenotype Data Downloaded from NCBI via Google Cloud BigQuery
-
staph_geno_ncbi_cloud_raw - S. aureus Example of Raw Genotype Data Downloaded from NCBI via Google Cloud BigQuery
-
staph_ast_ebi - S. aureus Example of Imported EBI Phenotype Data
-
staph_geno_ebi - S. aureus Example of Imported EBI Genotype Data
-
amrfp_drugs_table - NCBI Subclass mapping to drug class
-
pheno_eco_2075 - E. coli AST data from Mills et al 2022
-
geno_eco_2075 - E. coli genotype data from Mills et al 2022
-
eurogasp_geno_raw - N. gonorrhoeae Euro-GASP Genotype Data Use Case 1
-
ngono_cro_geno_raw - N. gonorrhoeae PBP2 Mutations Genotype Data Use Case 2
-
ngono_tet_geno_raw - N. gonorrhoeae Tetracycline Resistance Genotype Data Use Case 3
-
ngono_cro_pheno_raw - N. gonorrhoeae PBP2 Mutations Phenotype Data Use Case 2
-
eurogasp_pheno_raw - N. gonorrhoeae Euro-GASP Phenotype Data Use Case 1
-
ngono_tet_pheno_raw - N. gonorrhoeae Tetracycline Resistance Phenotype Data Use Case 3
-
salm_raw - Example Salmonella Genotype-Phenotype Data
-
kleborate_raw - Example Kleborate Genotype Data from EuSCAPE project
-
kleborate_raw_v313 - Example Kleborate v3.1.3 Genotype Data from EuSCAPE project
-
kleborate_classes - Table mapping Kleborate drug class columns