SeroTrackRThe {SeroTrackR} R package compliments the PvSeroApp see Github here for experienced users who are comfortable with implementing the code in their own R sessions.
This package contains helper functions relevant for Plasmodium spp. projects for in-house and collaborator needs.
# Download the package available on the Comprehensive R Archive Network (CRAN)
install.packages("SeroTrackR")
# Load the package in your R session
library(SeroTrackR)
Alternatively, you can download the developmental version on GitHub.
# pak::pak("dionnecargy/SeroTrackR")
install.packages("SeroTrackR", repos = c('https://dionnecargy.r-universe.dev', 'https://cloud.r-project.org'))
library(SeroTrackR) # To load the package
The GitHub (master) version also bundles the trained classification model file locally, whereas the CRAN version downloads it from this repository at runtime, so the CRAN version requires an internet connection the first time functions such as classifyResults() are called.
Package dependencies are installed automatically by install.packages() or pak::pak(). If you are missing system libraries needed to build a dependency from source (e.g. curl, openssl, xml2 on Linux), pak::pak() will usually install the required system requirements for you; otherwise install the appropriate system package for your OS first.
Two sites serve different purposes:
The same vignettes are also available offline inside R:
browseVignettes("SeroTrackR")
# To run a specific vignette:
vignette("PvSeroApp_R_Tutorial")
vignette("Pk_Pv_Pf_Serology_Tutorial")
If you use SeroTrackR in your work, please cite both the pre-print describing the method and the package itself:
SeroTrackR R package (CRAN): https://doi.org/10.32614/CRAN.package.SeroTrackR
Run citation("SeroTrackR") in R to get both entries in BibTeX format.
The source code of each release is additionally archived on Zenodo for long-term preservation; the preferred citations are the two above.
master is the development branch. All changes (code, documentation, large data files in inst/extdata/) are made here. Large files such as PvSeroTaTmodel.rds (~24 MB) exceed CRAN's 5 MB package size limit and live only on master.CRAN is the submission branch. It is kept in sync with master automatically by the Sync to CRAN Branch GitHub Action on every push to master. On this branch, oversized files and pkgdown-related files (docs/, inst/hex/, inst/tutorials/, _pkgdown.yml) are removed, and the package code downloads the missing data at runtime from https://raw.githubusercontent.com/dionnecargy/SeroTrackR/master/inst/extdata/. Note that the author needs to consciously upload the R package to CRAN to make changes to the version available at the SeroTrackR CRAN DOI.CRAN unless resolving a merge conflict; all changes should flow from master.inst/extdata/:
.github/workflows/sync-to-cran.yml and a matching line to the .Rbuildignore step.classifyResults() for the pattern).Sync to CRAN Branch merges master into CRAN and re-applies the deletions. If it fails on merge conflicts, resolve manually: git checkout CRAN && git merge master, fix conflicts, push.R-CMD-check-CRAN then runs R CMD check --as-cran on the CRAN branch; its badge above shows the latest result.R-CMD-check-CRAN badge is passing with no warnings, and that the runtime-fetched URLs still resolve.