mirror of
https://github.com/msberends/AMR.git
synced 2025-02-23 09:10:03 +01:00
(v2.1.1.9143) unit tests
This commit is contained in:
parent
cc2bb151ab
commit
2171f05951
@ -1,5 +1,5 @@
|
|||||||
Package: AMR
|
Package: AMR
|
||||||
Version: 2.1.1.9142
|
Version: 2.1.1.9143
|
||||||
Date: 2025-02-07
|
Date: 2025-02-07
|
||||||
Title: Antimicrobial Resistance Data Analysis
|
Title: Antimicrobial Resistance Data Analysis
|
||||||
Description: Functions to simplify and standardise antimicrobial resistance (AMR)
|
Description: Functions to simplify and standardise antimicrobial resistance (AMR)
|
||||||
|
2
NEWS.md
2
NEWS.md
@ -1,4 +1,4 @@
|
|||||||
# AMR 2.1.1.9142
|
# AMR 2.1.1.9143
|
||||||
|
|
||||||
*(this beta version will eventually become v3.0. We're happy to reach a new major milestone soon, which will be all about the new One Health support! Install this beta using [the instructions here](https://msberends.github.io/AMR/#latest-development-version).)*
|
*(this beta version will eventually become v3.0. We're happy to reach a new major milestone soon, which will be all about the new One Health support! Install this beta using [the instructions here](https://msberends.github.io/AMR/#latest-development-version).)*
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
Metadata-Version: 2.2
|
Metadata-Version: 2.2
|
||||||
Name: AMR
|
Name: AMR
|
||||||
Version: 2.1.1.9142
|
Version: 2.1.1.9143
|
||||||
Summary: A Python wrapper for the AMR R package
|
Summary: A Python wrapper for the AMR R package
|
||||||
Home-page: https://github.com/msberends/AMR
|
Home-page: https://github.com/msberends/AMR
|
||||||
Author: Matthijs Berends
|
Author: Matthijs Berends
|
||||||
|
Binary file not shown.
BIN
PythonPackage/AMR/dist/amr-2.1.1.9142.tar.gz
vendored
BIN
PythonPackage/AMR/dist/amr-2.1.1.9142.tar.gz
vendored
Binary file not shown.
BIN
PythonPackage/AMR/dist/amr-2.1.1.9143.tar.gz
vendored
Normal file
BIN
PythonPackage/AMR/dist/amr-2.1.1.9143.tar.gz
vendored
Normal file
Binary file not shown.
@ -2,7 +2,7 @@ from setuptools import setup, find_packages
|
|||||||
|
|
||||||
setup(
|
setup(
|
||||||
name='AMR',
|
name='AMR',
|
||||||
version='2.1.1.9142',
|
version='2.1.1.9143',
|
||||||
packages=find_packages(),
|
packages=find_packages(),
|
||||||
install_requires=[
|
install_requires=[
|
||||||
'rpy2',
|
'rpy2',
|
||||||
|
@ -138,12 +138,15 @@ globalVariables(c(
|
|||||||
"atc_group1",
|
"atc_group1",
|
||||||
"atc_group2",
|
"atc_group2",
|
||||||
"base_ab",
|
"base_ab",
|
||||||
|
"beta_posterior_1",
|
||||||
|
"beta_posterior_2",
|
||||||
"ci_max",
|
"ci_max",
|
||||||
"ci_min",
|
"ci_min",
|
||||||
"clinical_breakpoints",
|
"clinical_breakpoints",
|
||||||
"code",
|
"code",
|
||||||
"cols",
|
"cols",
|
||||||
"count",
|
"count",
|
||||||
|
"coverage",
|
||||||
"data",
|
"data",
|
||||||
"disk",
|
"disk",
|
||||||
"dosage",
|
"dosage",
|
||||||
@ -152,6 +155,7 @@ globalVariables(c(
|
|||||||
"fullname",
|
"fullname",
|
||||||
"fullname_lower",
|
"fullname_lower",
|
||||||
"g_species",
|
"g_species",
|
||||||
|
"gamma_posterior",
|
||||||
"genus",
|
"genus",
|
||||||
"gr",
|
"gr",
|
||||||
"group",
|
"group",
|
||||||
@ -166,6 +170,7 @@ globalVariables(c(
|
|||||||
"language",
|
"language",
|
||||||
"lookup",
|
"lookup",
|
||||||
"lower",
|
"lower",
|
||||||
|
"lower_ci",
|
||||||
"method",
|
"method",
|
||||||
"mic ",
|
"mic ",
|
||||||
"mic",
|
"mic",
|
||||||
@ -197,9 +202,11 @@ globalVariables(c(
|
|||||||
"species",
|
"species",
|
||||||
"syndromic_group",
|
"syndromic_group",
|
||||||
"total",
|
"total",
|
||||||
|
"total_rows",
|
||||||
"txt",
|
"txt",
|
||||||
"type",
|
"type",
|
||||||
"upper",
|
"upper",
|
||||||
|
"upper_ci",
|
||||||
"uti_index",
|
"uti_index",
|
||||||
"value",
|
"value",
|
||||||
"varname",
|
"varname",
|
||||||
|
@ -625,7 +625,7 @@ antibiogram.default <- function(x,
|
|||||||
|
|
||||||
# simulate pathogen incidence
|
# simulate pathogen incidence
|
||||||
# = Dirichlet (Gamma) parameters
|
# = Dirichlet (Gamma) parameters
|
||||||
random_incidence <- runif(1, min = 0, max = 1)
|
random_incidence <- stats::runif(1, min = 0, max = 1)
|
||||||
simulated_incidence <- stats::qgamma(
|
simulated_incidence <- stats::qgamma(
|
||||||
p = random_incidence,
|
p = random_incidence,
|
||||||
shape = priors$gamma_posterior,
|
shape = priors$gamma_posterior,
|
||||||
@ -636,7 +636,7 @@ antibiogram.default <- function(x,
|
|||||||
|
|
||||||
# simulate susceptibility
|
# simulate susceptibility
|
||||||
# = Beta parameters
|
# = Beta parameters
|
||||||
random_susceptibity <- runif(1, min = 0, max = 1)
|
random_susceptibity <- stats::runif(1, min = 0, max = 1)
|
||||||
simulated_susceptibility <- stats::qbeta(
|
simulated_susceptibility <- stats::qbeta(
|
||||||
p = random_susceptibity,
|
p = random_susceptibity,
|
||||||
shape1 = priors$beta_posterior_1,
|
shape1 = priors$beta_posterior_1,
|
||||||
@ -1009,7 +1009,7 @@ wisca <- function(x,
|
|||||||
}
|
}
|
||||||
|
|
||||||
#' @export
|
#' @export
|
||||||
#' @param wisca_model the outcome of [wisca()] or [antibiogram(..., wisca = TRUE)]
|
#' @param wisca_model the outcome of [wisca()] or [`antibiogram(..., wisca = TRUE)`][antibiogram()]
|
||||||
#' @rdname antibiogram
|
#' @rdname antibiogram
|
||||||
retrieve_wisca_parameters <- function(wisca_model, ...) {
|
retrieve_wisca_parameters <- function(wisca_model, ...) {
|
||||||
stop_ifnot(isTRUE(attributes(wisca_model)$wisca), "This function only applies to WISCA models. Use `wisca()` or `antibiogram(..., wisca = TRUE)` to create a WISCA model.")
|
stop_ifnot(isTRUE(attributes(wisca_model)$wisca), "This function only applies to WISCA models. Use `wisca()` or `antibiogram(..., wisca = TRUE)` to create a WISCA model.")
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
This knowledge base contains all context you must know about the AMR package for R. You are a GPT trained to be an assistant for the AMR package in R. You are an incredible R specialist, especially trained in this package and in the tidyverse.
|
This knowledge base contains all context you must know about the AMR package for R. You are a GPT trained to be an assistant for the AMR package in R. You are an incredible R specialist, especially trained in this package and in the tidyverse.
|
||||||
|
|
||||||
First and foremost, you are trained on version 2.1.1.9142. Remember this whenever someone asks which AMR package version you’re at.
|
First and foremost, you are trained on version 2.1.1.9143. Remember this whenever someone asks which AMR package version you’re at.
|
||||||
|
|
||||||
Below are the contents of the file, the file, and all the files (documentation) in the package. Every file content is split using 100 hypens.
|
Below are the contents of the file, the file, and all the files (documentation) in the package. Every file content is split using 100 hypens.
|
||||||
----------------------------------------------------------------------------------------------------
|
----------------------------------------------------------------------------------------------------
|
||||||
@ -1708,7 +1708,7 @@ retrieve_wisca_parameters(wisca_model, ...)
|
|||||||
|
|
||||||
\item{info}{a \link{logical} to indicate info should be printed - the default is \code{TRUE} only in interactive mode}
|
\item{info}{a \link{logical} to indicate info should be printed - the default is \code{TRUE} only in interactive mode}
|
||||||
|
|
||||||
\item{wisca_model}{the outcome of \code{\link[=wisca]{wisca()}} or \link{antibiogram(..., wisca = TRUE)}}
|
\item{wisca_model}{the outcome of \code{\link[=wisca]{wisca()}} or \code{\link[=antibiogram]{antibiogram(..., wisca = TRUE)}}}
|
||||||
|
|
||||||
\item{...}{when used in \link[knitr:kable]{R Markdown or Quarto}: arguments passed on to \code{\link[knitr:kable]{knitr::kable()}} (otherwise, has no use)}
|
\item{...}{when used in \link[knitr:kable]{R Markdown or Quarto}: arguments passed on to \code{\link[knitr:kable]{knitr::kable()}} (otherwise, has no use)}
|
||||||
|
|
@ -83,7 +83,7 @@ retrieve_wisca_parameters(wisca_model, ...)
|
|||||||
|
|
||||||
\item{info}{a \link{logical} to indicate info should be printed - the default is \code{TRUE} only in interactive mode}
|
\item{info}{a \link{logical} to indicate info should be printed - the default is \code{TRUE} only in interactive mode}
|
||||||
|
|
||||||
\item{wisca_model}{the outcome of \code{\link[=wisca]{wisca()}} or \link{antibiogram(..., wisca = TRUE)}}
|
\item{wisca_model}{the outcome of \code{\link[=wisca]{wisca()}} or \code{\link[=antibiogram]{antibiogram(..., wisca = TRUE)}}}
|
||||||
|
|
||||||
\item{...}{when used in \link[knitr:kable]{R Markdown or Quarto}: arguments passed on to \code{\link[knitr:kable]{knitr::kable()}} (otherwise, has no use)}
|
\item{...}{when used in \link[knitr:kable]{R Markdown or Quarto}: arguments passed on to \code{\link[knitr:kable]{knitr::kable()}} (otherwise, has no use)}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user