A Shiny app for importing antibiogram data, and exporting it to formats suitable for submission to NCBI or EBI-ready.
-
The easiest way to use the app is to access the online at apps.amrverse.org/amrgenconverter, which requires no installation and no knowledge of R.
-
If you have Rstudio, you can download the app code from this repository and run it locally (see below).
-
The app uses the import and export functions from the AMRgen R package. If you are an R user, you might prefer to use the AMRgen R package directly, as this is more flexible and can be integrated into work flows.
- Upload CSV, TSV, TXT, compressed AST input files, or Excel workbooks (
.xls/.xlsx) - Import supported source formats including NCBI, EBI, WHONET, Vitek, MicroScan, Phoenix, and Sensititre
- Optionally interpret AST values with EUCAST, CLSI, or ECOFF rules during import
- Review imported long-format phenotype data in the browser
- Generate summary tables from
summarise_pheno() - Preview and download
export_ncbi_ast()output as TSV - Preview and download
export_ebi_ast()output as TSV - Optionally generate EBI JSON submission files and download them as a zip archive
Install the required packages if needed:
install.packages(c("shiny", "bslib", "DT", "remotes"))
remotes::install_github("AMRverse/AMRgen")Then start the app from the project directory:
shiny::runApp()Install rsconnect if needed:
install.packages("rsconnect")In the shinyapps.io dashboard, copy your account token details and run:
rsconnect::setAccountInfo(
name = "<ACCOUNT>",
token = "<TOKEN>",
secret = "<SECRET>"
)Then deploy this app from the project directory:
source("deploy_shinyapps.R")Or deploy directly:
rsconnect::deployApp(appDir = ".", appName = "amrgenconverter")Notes:
- This app depends on
AMRgen, which is installed from GitHub rather than CRAN. - If deployment fails on package restore, reinstall
AMRgenlocally withremotes::install_github("AMRverse/AMRgen")and redeploy.