GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - JRaviLab/amR: amR package suite: 1) amRdata, 2) amRml, 3) amRshiny

BranchesTags
Open more actions menu

Latest commit

 

History

17 Commits
17 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
R
R
 
 
man
man
 
 
tests
tests
 
 
vignettes
vignettes
 
 
.Rbuildignore
.Rbuildignore
 
 
.gitignore
.gitignore
 
 
CODE_OF_CONDUCT.md
CODE_OF_CONDUCT.md
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
DESCRIPTION
DESCRIPTION
 
 
LICENSE
LICENSE
 
 
LICENSE.md
LICENSE.md
 
 
NAMESPACE
NAMESPACE
 
 
README.Rmd
README.Rmd
 
 
README.md
README.md
 
 
amR.Rproj
amR.Rproj
 
 
cran-comments.md
cran-comments.md
 
 

Repository files navigation

amR: an R package suite for antimicrobial resistance prediction

Lifecycle: experimental

amR is a metapackage that provides a single installation point for the amR suite of packages for antimicrobial resistance (AMR) prediction in bacterial pathogens.

The amR suite

The amR suite consists of three packages that work together:

Package Description Repository
amRdata Data curation and feature extraction from bacterial genomes JRaviLab/amRdata
amRml Machine learning models for AMR prediction JRaviLab/amRml
amRviz Interactive dashboard for exploring results JRaviLab/amRviz

Installation

Install the entire suite

# Install amR metapackage
if (!requireNamespace("remotes", quietly = TRUE))
    install.packages("remotes")

remotes::install_github("JRaviLab/amR")

# Then install all packages in the suite
library(amR)
installAMR()

Install individual packages

You can also install packages individually:

remotes::install_github("JRaviLab/amRdata")
remotes::install_github("JRaviLab/amRml")
remotes::install_github("JRaviLab/amRviz")

Alternative: install with pak

installAMR(method = "pak")

Install from a specific branch

# Same branch (or tag/commit) for every package
installAMR(branch = "dev")

# Per-package branches; others use their default branch
installAMR(branch = c(ml = "dev"))

# The metapackage itself, via pak
pak::pkg_install("JRaviLab/amR@dev")

Quick start

# Load all packages
library(amRdata)
library(amRml)
library(amRviz)

# 1. Prepare data with amRdata
# features <- prepareFeatures(...)

# 2. Train ML models with amRml
# results <- runMLPipeline(...)

# 3. Explore results with amRviz
# launchDashboard(...)

Workflow overview

┌─────────────┐     ┌─────────────┐     ┌─────────────┐
│  amRdata    │ --> │   amRml     │ --> │  amRviz   │
│             │     │             │     │             │
│ - Genomes   │     │ - Train LR  │     │ - Dashboard │
│ - Features  │     │ - Evaluate  │     │ - Plots     │
│ - Metadata  │     │ - Top feats │     │ - Export    │
└─────────────┘     └─────────────┘     └─────────────┘

Documentation

  • amRdata documentation
  • amRml documentation
  • amRviz documentation

Citation

amR: an R package suite to predict antimicrobial resistance in bacterial pathogens

Abhirupa Ghosh^, Evan P. Brenner^, Emily A. Boyer, Alexander P. McKim, Charmie K. Vang, Ethan P. Wolfe, David Mayer, Raymond L. Lesiyon, Janani Ravi. bioRxiv (2026). doi: 10.64898/2026.07.10.734579

^ Co-first authors

Department of Biomedical Informatics, Center for Health Artificial Intelligence, University of Colorado Anschutz

Abstract

Motivation: Identifying bacterial antimicrobial resistance (AMR) is critical for diagnostics and treatment, but resistance is a complex trait arising from myriad mechanisms spanning multiple molecular scales. Existing computational approaches often function as black boxes and rarely explore cross-species or multi-drug patterns. We developed amR, an integrated R package suite that provides a complete framework from bacterial genome data curation to interpretable AMR predictions, enabling identification of resistance mechanisms across species and drugs.

Results: The amR R package suite contains three modular packages. amRdata downloads genomes and paired antimicrobial susceptibility testing data from BV-BRC and processes them, constructs pangenomes, and extracts features at gene/protein cluster, protein domain, annotated Clusters of Orthologous Groups and ResFinder AMR-associated features, and structural variant scales; data are stored in memory-efficient formats (Parquet, DuckDB). amRml trains interpretable machine learning models per species-drug combination, calculates feature importance and performance metrics, and provides rich ground for hypothesis generation and mechanism discovery. amRviz provides an interactive Shiny dashboard to explore metadata distributions and model performance across species and drugs, visualize top predictive AMR features, and analyze cross-model patterns across geographic/temporal strata. We apply the suite to Shigella sonnei, achieving a median Matthews Correlation Coefficient of 0.89 across 23 drugs and drug classes. With thousands of genomes, multi-scale features, and interpretable models, amR provides an accessible, comprehensive framework for AMR research. The amR package suite is installable via GitHub (https://github.com/JRaviLab/amR; BSD-3-Clause license).

How to cite

If you use the amR suite in your research, please cite:

Ghosh A^, Brenner EP^, Boyer EA, McKim AP, Vang CK, Wolfe EP, Mayer D, Lesiyon RL, Ravi J.

amR: an R package suite to predict antimicrobial resistance in bacterial pathogens.

bioRxiv. 2026. DOI: 10.64898/2026.07.10.734579.

^ Co-first authors

Looking for a cool application of this amR prediction framework? Check out our recent work on predicting AMR in ESKAPE pathogens: Ghosh^, Brenner^, Vang^, Wolfe^, et al., bioRxiv 2025.

Contributing

We welcome contributions! Please see CONTRIBUTING.md for guidelines.

License

BSD 3-Clause License. See LICENSE for details.

Contact

Corresponding author: Janani Ravi ([email protected])

Lab website: https://jravilab.github.io

Code of Conduct

Please note that amR is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.

About

amR package suite: 1) amRdata, 2) amRml, 3) amRshiny

jravilab.github.io/amR

Topics

amrantimicrobial-resistancebacterial-genomicsdashboardmachine-learningr-package

Resources

Readme

Code of conduct

Code of conduct

Contributing

Contributing
Activity
Custom properties

Stars

3 stars

Watchers

0 watching

Forks

2 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.