-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathREADME.Rmd
More file actions
129 lines (89 loc) · 3.94 KB
/
README.Rmd
File metadata and controls
129 lines (89 loc) · 3.94 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# amR: an R package suite for antimicrobial resistance prediction
<!-- badges: start -->
[](https://lifecycle.r-lib.org/articles/stages.html#experimental)
<!-- badges: end -->
**amR** is a metapackage that provides a single installation point for the amR suite of packages for antimicrobial resistance (AMR) prediction in bacterial pathogens.
```{r, echo=FALSE, fig.align='center', out.width='60%'}
knitr::include_graphics("man/figures/README-amR.png")
```
## 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](https://github.com/JRaviLab/amRdata) |
| **amRml** | Machine learning models for AMR prediction | [JRaviLab/amRml](https://github.com/JRaviLab/amRml) |
| **amRshiny** | Interactive dashboard for exploring results | [JRaviLab/amRshiny](https://github.com/JRaviLab/amRshiny) |
## Installation
### Install the entire suite
```r
# 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:
```r
remotes::install_github("JRaviLab/amRdata")
remotes::install_github("JRaviLab/amRml")
remotes::install_github("JRaviLab/amRshiny")
```
## Quick start
```r
# Load all packages
library(amRdata)
library(amRml)
library(amRshiny)
# 1. Prepare data with amRdata
# features <- prepareFeatures(...)
# 2. Train ML models with amRml
# results <- runMLPipeline(...)
# 3. Explore results with amRshiny
# launchDashboard(...)
```
## Workflow overview
```
┌─────────────┐ ┌─────────────┐ ┌─────────────┐
│ amRdata │ --> │ amRml │ --> │ amRshiny │
│ │ │ │ │ │
│ - Genomes │ │ - Train LR │ │ - Dashboard │
│ - Features │ │ - Evaluate │ │ - Plots │
│ - Metadata │ │ - Top feats │ │ - Export │
└─────────────┘ └─────────────┘ └─────────────┘
```
## Documentation
- [amRdata documentation](https://jravilab.github.io/amRdata)
- [amRml documentation](https://jravilab.github.io/amRml)
- [amRshiny documentation](https://jravilab.github.io/amRshiny)
## Citation
If you use the amR suite in your research, please cite:
```
Brenner EP^, Ghosh A^, Wolfe EP, Boyer EA, Vang CK, Lesiyon RL, Mayer DA, Ravi J. (2026).
amR: An R package suite for antimicrobial resistance prediction in bacterial pathogens.
https://github.com/JRaviLab/amR
```
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](https://doi.org/10.1101/2025.07.03.663053).
## Contributing
We welcome contributions! Please see [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines.
## License
BSD 3-Clause License. See [LICENSE](LICENSE) for details.
## Contact
**Corresponding author**: Janani Ravi (janani.ravi@cuanschutz.edu)
**Lab website**: https://jravilab.github.io
## Code of Conduct
Please note that amR is released with a [Contributor Code of Conduct](https://contributor-covenant.org/version/2/1/CODE_OF_CONDUCT.html). By contributing to this project, you agree to abide by its terms.