superslim-r

R · R package (v0.7.0)

An R package that loads a compact SuperSLIM model file and predicts the mean transcriptome response to knocking down a gene in the learned cell systems. The inference is written in base R and gives the same values as the Python package (maximum difference 4e-7 on the released model). The only dependency is the archive package, which reads the compressed model file.

Installation

R (binary from R-universe)

install.packages("superslim", repos = c("https://daikikumakura.r-universe.dev", "https://cloud.r-project.org"))

R

pak::pak("DaikiKumakura/superslim/r")
library(superslim)
m <- ss_load(ss_download("open-v3"))
ss_predict(m, c("TP53", "EGFR"), "cd4_rest")

Not on CRAN; initial version. The open model (CC BY-NC-SA 4.0, non-commercial) is downloaded on request and checked against its SHA-256.

Status

Initial version, not on CRAN. The R package lives in the r/ folder of the superslim repository (same version number as the Python package). R package checks pass in CI on Linux, Windows and macOS. The tests compare predictions of a synthetic model with golden values from the Python package, and the released model agrees with the Python package to 4e-7. Only the systems in a model file are predicted; predictions for genes a system never measured are hypotheses.

Cite this software

Kumakura, D. superslim-r. Zenodo. https://doi.org/10.5281/zenodo.24393778

The DOI refers to the archived release; the Zenodo record lists all versions. A CITATION.cff file is in the repository.

All software