Date: 2026-04-08

# Introduction to StatescopeR

Mischa Steketee1* and Yongsoo Kim1**

1Department of Pathology, Cancer Center Amsterdam, Amsterdam UMC, Vrije Universiteit Amsterdam, Amsterdam, The Netherlands

*m.f.b.steketee@amsterdamumc.nl
**yo.kim@amsterdamumc.nl

#### 8 April 2026

# 1 Introduction

StatescopeR is an R wrapper around Statescope, a computational framework designed to discover cell states from cell type-specific gene expression profiles inferred from bulk RNAseq profiles. StatescopeR executes the three following steps consecutively: 1) Single cell RNAseq reference-based deconvolution 2) Refinement of inferred cell type-specific gene expression profiles 3) Cell state discovery. In addition to bulk RNAseq and a single cell RNAseq (scRNAseq) reference, StatescopeR can integrate prior expectations of (groups of) cell fractions in the bulk RNAseq. For example tumor fractions estimated by DNA copy number analysis or immune cell fractions by immunohistochemistry. Below is a manual for running StatescopeR with scRNAseq data from human pancreas cells used for both the reference and pseudobulk which is deconvolved.

# 2 Running StatescopeR

## 2.1 Installation

StatescopeR is available through Bioconductor. Install it using the following commands in R:

    if (!requireNamespace("BiocManager", quietly = TRUE)) {
        install.packages("BiocManager")
    }

    BiocManager::install("StatescopeR")

    ## Check that you have a valid Bioconductor installation
    BiocManager::valid()

## 2.2 Prepare scRNAseq data

After installing StatescopeR, the next step is to load it along with the scuttle and the scRNAseq packages. From the latter, the SegerstolpePancreas dataset will be used as an example. This dataset will serve two purposes: 1) Creating a scRNAseq reference. Alternatively, premade signatures can be obtained from https://github.com/tgac-vumc/StatescopeData using the fetch_signature function. 2) Creating pseudobulk for deconvolution, which can also be used for evaluation, as the true cell type fractions and expression are known. Usually, bulk RNA sequencing data, with unknown cell type fractions and expression, would be used for deconvolution.

    ## Load StatescopeR & scRNAseq (for example data)
    suppressMessages(library(StatescopeR))
    suppressMessages(library(scRNAseq))
    suppressMessages(library(scuttle))

    ## Load the SegerstolpePancreas data set
    scRNAseq <- SegerstolpePancreasData()

    ## remove duplicate genes
    scRNAseq <- scRNAseq[!duplicated(rownames(scRNAseq)), ]

    ## remove cells with no cell type label
    scRNAseq <- scRNAseq[, !is.na(scRNAseq$`cell type`)]

    ## remove very rare cell types (<100 cells in total data set)
    celltypes_to_remove <-
        names(table(scRNAseq$`cell type`)[(table(scRNAseq$`cell type`) < 100)])
    scRNAseq <- scRNAseq[, !scRNAseq$`cell type` %in% celltypes_to_remove]

## 2.3 Prepare StatescopeR input

StatescopeR takes the following inputs: 1) scRNAseq reference/signature 2) bulk RNAseq to be deconvolved 3) selected genes for deconvolution, by default this uses AutoGeneS (optional) Prior expectation of fractions. See Group expectations for expectations of groups of cell types. (optional) Hyperparameters (i.e. cores for parallelization , nrepfinal for maximum number of optimization iterations etc.)

    ## Normalize (cp10k) and logtransform scRNAseq
    cpm(scRNAseq) <- calculateCPM(scRNAseq)
    #> Warning in .local(x, ...): 'normalizeCounts' is deprecated.
    #> Use 'scrapper::normalizeCounts' instead.
    #> See help("Deprecated")
    logcounts(scRNAseq) <- log1p(cpm(scRNAseq) / 100)

    ## Create scRNAseq reference/signature with 50 hvg for quick example
    signature <- create_signature(scRNAseq,
        hvg_genes = TRUE, n_hvg_genes = 50L,
        labels = scRNAseq$`cell type`
    )
    #> Warning in fitTrendVar(mu[, ct], omega[, ct]): 'fitTrendVar' is deprecated.
    #> Use 'scrapper::fitVarianceTrend' instead.
    #> See help("Deprecated")
    #> Warning in fitTrendVar(mu[, ct], omega[, ct]): 'fitTrendVar' is deprecated.
    #> Use 'scrapper::fitVarianceTrend' instead.
    #> See help("Deprecated")
    #> Warning in fitTrendVar(mu[, ct], omega[, ct]): 'fitTrendVar' is deprecated.
    #> Use 'scrapper::fitVarianceTrend' instead.
    #> See help("Deprecated")
    #> Warning in fitTrendVar(mu[, ct], omega[, ct]): 'fitTrendVar' is deprecated.
    #> Use 'scrapper::fitVarianceTrend' instead.
    #> See help("Deprecated")
    #> Warning in fitTrendVar(mu[, ct], omega[, ct]): 'fitTrendVar' is deprecated.
    #> Use 'scrapper::fitVarianceTrend' instead.
    #> See help("Deprecated")
    #> Warning in fitTrendVar(mu[, ct], omega[, ct]): 'fitTrendVar' is deprecated.
    #> Use 'scrapper::fitVarianceTrend' instead.
    #> See help("Deprecated")
    #> Warning in fitTrendVar(fm, fv, ...): 'fitTrendVar' is deprecated.
    #> Use 'scrapper::fitVarianceTrend' instead.
    #> See help("Deprecated")
    #> Warning in combineBlocks(collected, method = method, equiweight = equiweight, : 'combineBlocks' is deprecated.
    #> See help("Deprecated")
    #> Warning in getTopHVGs(dec.data, n = n_hvg_genes): 'getTopHVGs' is deprecated.
    #> Use 'scrapper::chooseHighlyVariableGenes' instead.
    #> See help("Deprecated")

    ## select subset of genes for deconvolution (30/50 hvg to make it quick)
    selected_genes <- select_genes(scRNAseq, 30L, 50L,
        labels = scRNAseq$`cell type`
    )
    #> Warning in fitTrendVar(fm, fv, ...): 'fitTrendVar' is deprecated.
    #> Use 'scrapper::fitVarianceTrend' instead.
    #> See help("Deprecated")
    #> Warning in combineBlocks(collected, method = method, equiweight = equiweight, : 'combineBlocks' is deprecated.
    #> See help("Deprecated")
    #> Warning in getTopHVGs(dec.data, n = n_hvg_genes): 'getTopHVGs' is deprecated.
    #> Use 'scrapper::chooseHighlyVariableGenes' instead.
    #> See help("Deprecated")
    #> Using Python: /home/biocbuild/.pyenv/versions/3.11.15/bin/python3.11
    #> Creating virtual environment '/var/cache/basilisk/1.23.0/StatescopeR/0.99.36/statescope' ...
    #> + /home/biocbuild/.pyenv/versions/3.11.15/bin/python3.11 -m venv /var/cache/basilisk/1.23.0/StatescopeR/0.99.36/statescope
    #> Done!
    #> Installing packages: pip, wheel, setuptools
    #> + /var/cache/basilisk/1.23.0/StatescopeR/0.99.36/statescope/bin/python -m pip install --upgrade pip wheel setuptools
    #> Installing packages: 'anndata==0.11.4', 'deap==1.4.3', 'cachetools==7.0.5', 'numba==0.62.1', 'pandas==1.5.3', 'joblib==1.5.3', 'numpy==1.23.5', 'scipy==1.15.3', 'matplotlib==3.6.3', 'seaborn==0.13.2', 'scikit-learn==1.5.2', 'torch==2.8.0', 'dill==0.3.4', 'statescope-autogenes==1.0.4.post2', 'psutil==7.2.2'
    #> + /var/cache/basilisk/1.23.0/StatescopeR/0.99.36/statescope/bin/python -m pip install --upgrade --no-user 'anndata==0.11.4' 'deap==1.4.3' 'cachetools==7.0.5' 'numba==0.62.1' 'pandas==1.5.3' 'joblib==1.5.3' 'numpy==1.23.5' 'scipy==1.15.3' 'matplotlib==3.6.3' 'seaborn==0.13.2' 'scikit-learn==1.5.2' 'torch==2.8.0' 'dill==0.3.4' 'statescope-autogenes==1.0.4.post2' 'psutil==7.2.2'
    #> Virtual environment '/var/cache/basilisk/1.23.0/StatescopeR/0.99.36/statescope' successfully created.

    ## Create pseudobulk and normalize to cp10k (logging is done within Statescope)
    pseudobulk <- aggregateAcrossCells(scRNAseq, ids = scRNAseq$individual)
    #> Warning in .local(x, ...): 'aggregateAcrossCells' is deprecated.
    #> Use 'scrapper::aggregateAcrossCells.se' instead.
    #> See help("Deprecated")
    normcounts(pseudobulk) <- calculateCPM(pseudobulk) / 100
    #> Warning in .local(x, ...): 'normalizeCounts' is deprecated.
    #> Use 'scrapper::normalizeCounts' instead.
    #> See help("Deprecated")
    pseudobulk <- as(pseudobulk, "SummarizedExperiment")
    rownames(pseudobulk) <- rownames(scRNAseq)

    ## (optional) Create prior expectation for ductal cells
    prior <- gather_true_fractions(scRNAseq,
        ids = scRNAseq$individual,
        label_col = "cell type"
    ) # Use True sc fractions for this
    prior[rownames(prior) != "ductal cell", ] <- NA # Keep only ductal cells
    prior <- t(prior) # Transpose it to nSample x nCelltype

## 2.4 Run StatescopeR

Once all input data have been prepared, the (pseudo)bulk RNAseq can be deconvolved to identify transcriptional states. In short the modules work as follows: BLADE_deconvolution employs Bayesian variational inference, modelling the bulk gene expression level of each gene j in sample i by: \[\begin{equation} y_{ij} = log(\sum_{t} f_{i}^t exp(x_{ij}^t)) + \epsilon_{ij} \end{equation}\] with hidden variables \(f_{i}^t\) and \(x_{ij}^t\) denoting the fraction of cell type t for sample i and the expression of gene j for sample i in cell type j respectively. Refinement further optimizes cell type-specific gene expression profiles, \(x_{ij}^t\), by fixing estimated cell fractions and putting more emphasis on capturing inter-sample heterogeneity over staying close to the single cell prior knowledge. StateDiscovery uses convex-NMF to cluster inferred cell type-specific gene expression profiles in an unsupervised manner. These modules are wrappers around the original Python functions Statescope.

    ## Run Deconvolution module
    Statescope <- BLADE_deconvolution(signature, pseudobulk, selected_genes, prior)
    #> all of 30 genes are used for optimization.
    #> Initialization with Support vector regression
    #> No feature filtering is done (fsel = 0)
    #> Using CPU for computation.

    ## Run Refinement module
    Statescope <- Refinement(Statescope, signature, pseudobulk, cores = 2L)
    #> Warning in `[<-`(`*tmp*`, colnames(Mu)[i], value =
    #> SummarizedExperiment::SummarizedExperiment(assays =
    #> S4Vectors::SimpleList(weighted_gep = omega_weighted_gep_df))): implicit list
    #> embedding of S4 objects is deprecated
    #> Warning in `[<-`(`*tmp*`, colnames(Mu)[i], value =
    #> SummarizedExperiment::SummarizedExperiment(assays =
    #> S4Vectors::SimpleList(weighted_gep = omega_weighted_gep_df))): implicit list
    #> embedding of S4 objects is deprecated
    #> Warning in `[<-`(`*tmp*`, colnames(Mu)[i], value =
    #> SummarizedExperiment::SummarizedExperiment(assays =
    #> S4Vectors::SimpleList(weighted_gep = omega_weighted_gep_df))): implicit list
    #> embedding of S4 objects is deprecated
    #> Warning in `[<-`(`*tmp*`, colnames(Mu)[i], value =
    #> SummarizedExperiment::SummarizedExperiment(assays =
    #> S4Vectors::SimpleList(weighted_gep = omega_weighted_gep_df))): implicit list
    #> embedding of S4 objects is deprecated
    #> Warning in `[<-`(`*tmp*`, colnames(Mu)[i], value =
    #> SummarizedExperiment::SummarizedExperiment(assays =
    #> S4Vectors::SimpleList(weighted_gep = omega_weighted_gep_df))): implicit list
    #> embedding of S4 objects is deprecated
    #> Warning in `[<-`(`*tmp*`, colnames(Mu)[i], value =
    #> SummarizedExperiment::SummarizedExperiment(assays =
    #> S4Vectors::SimpleList(weighted_gep = omega_weighted_gep_df))): implicit list
    #> embedding of S4 objects is deprecated

    ## Run State Discovery module (pick k=2 for quick example)
    Statescope <- StateDiscovery(Statescope, k = 2L, Ncores = 2L)
    #> Warning in `[<-`(`*tmp*`, ct, value = final_H_norm): implicit list embedding of
    #> S4 objects is deprecated
    #> Warning in `[<-`(`*tmp*`, ct, value = final_W): implicit list embedding of S4
    #> objects is deprecated
    #> Warning in `[<-`(`*tmp*`, ct, value = final_H_norm): implicit list embedding of
    #> S4 objects is deprecated
    #> Warning in `[<-`(`*tmp*`, ct, value = final_W): implicit list embedding of S4
    #> objects is deprecated
    #> Warning in `[<-`(`*tmp*`, ct, value = final_H_norm): implicit list embedding of
    #> S4 objects is deprecated
    #> Warning in `[<-`(`*tmp*`, ct, value = final_W): implicit list embedding of S4
    #> objects is deprecated
    #> Warning in `[<-`(`*tmp*`, ct, value = final_H_norm): implicit list embedding of
    #> S4 objects is deprecated
    #> Warning in `[<-`(`*tmp*`, ct, value = final_W): implicit list embedding of S4
    #> objects is deprecated
    #> Warning in `[<-`(`*tmp*`, ct, value = final_H_norm): implicit list embedding of
    #> S4 objects is deprecated
    #> Warning in `[<-`(`*tmp*`, ct, value = final_W): implicit list embedding of S4
    #> objects is deprecated
    #> Warning in `[<-`(`*tmp*`, ct, value = final_H_norm): implicit list embedding of
    #> S4 objects is deprecated
    #> Warning in `[<-`(`*tmp*`, ct, value = final_W): implicit list embedding of S4
    #> objects is deprecated

## 2.5 Evaluate Statescope

Since pseudobulk data derived from scRNAseq are used in this manual, it is possible to verify the accuracy of the StatescopeR output.

    ## Count fractions of cells per sample in the pseudobulk
    true_fractions <- gather_true_fractions(scRNAseq,
        ids = scRNAseq$individual,
        label_col = "cell type"
    )

    ## Plot correlation and RMSE with true fractions per celltype
    fraction_eval(Statescope, true_fractions)

## 2.6 Downstream analysis/visualizations

After running StatescopeR, a wide range of analyses can be performed. In this section, we describe how to access the results and show some examples of visualizations with them.

    ## Show predicted fractions
    metadata(Statescope)$fractions
    #> DataFrame with 6 rows and 10 columns
    #>                    H1        H2        H3        H4        H5        H6
    #>             <numeric> <numeric> <numeric> <numeric> <numeric> <numeric>
    #> gamma cell  0.1576411  0.146393 0.1116459 0.1538476  0.136185  0.168911
    #> alpha cell  0.3153421  0.321666 0.1992635 0.3547509  0.278189  0.321965
    #> beta cell   0.1612974  0.164189 0.1165990 0.1686072  0.128851  0.174800
    #> acinar cell 0.1823366  0.148112 0.1887484 0.1327256  0.104978  0.127266
    #> ductal cell 0.0408422  0.089469 0.2961387 0.0416176  0.225245  0.072969
    #> delta cell  0.1425405  0.130171 0.0876046 0.1484511  0.126551  0.134089
    #>                  T2D1      T2D2      T2D3      T2D4
    #>             <numeric> <numeric> <numeric> <numeric>
    #> gamma cell  0.1874255 0.1146372 0.0874519  0.136660
    #> alpha cell  0.3662955 0.2365569 0.1931816  0.272396
    #> beta cell   0.1573401 0.0972888 0.0773847  0.152966
    #> acinar cell 0.1360951 0.1426316 0.1010792  0.137733
    #> ductal cell 0.0121824 0.3088510 0.4694579  0.169444
    #> delta cell  0.1406614 0.1000344 0.0714447  0.130801

    ## Show predicted ductal cell type specific gene expression profiles
    assay(metadata(Statescope)$ct_specific_gep$`ductal cell`, "weighted_gep")
    #> DataFrame with 50 rows and 10 columns
    #>                  H1         H2         H3         H4         H5         H6
    #>           <numeric>  <numeric>  <numeric>  <numeric>  <numeric>  <numeric>
    #> GCG       -0.215973  -0.215893  -0.203438  -0.216114  -0.214934  -0.215940
    #> TTR       -0.435215  -0.434997  -0.429688  -0.435440  -0.434162  -0.435067
    #> INS       -0.322632  -0.322478  -0.321090  -0.322689  -0.321496  -0.322501
    #> PPY       -0.282676  -0.282605  -0.281627  -0.282413  -0.282128  -0.282689
    #> REG1A      0.697377   0.737730   0.709590   0.762399   0.504541   0.777592
    #> ...             ...        ...        ...        ...        ...        ...
    #> PNLIP    -0.1857903 -0.1844684 -0.1857386 -0.1853737 -0.1917460 -0.1847322
    #> SERPING1  0.0626776  0.1846523  0.1422630  0.1521307  0.1970569  0.1418368
    #> CFTR     -0.0737707  0.1304957  0.0391264  0.0842647  0.0513849  0.1746965
    #> ABCC8    -0.0973652 -0.0973455 -0.0972208 -0.0973679 -0.0973043 -0.0973534
    #> CTSD      0.2840115  0.3007211  0.5573765  0.3915887  0.4702157 -0.0195685
    #>                T2D1       T2D2      T2D3       T2D4
    #>           <numeric>  <numeric> <numeric>  <numeric>
    #> GCG       -0.216210  -0.214216 -0.212178  -0.215054
    #> TTR       -0.435560  -0.431529 -0.426737  -0.433760
    #> INS       -0.322803  -0.310301 -0.287739  -0.321821
    #> PPY       -0.282785  -0.279352 -0.274000  -0.282211
    #> REG1A      0.706930   0.816627  0.993504   0.841843
    #> ...             ...        ...       ...        ...
    #> PNLIP    -0.1859052 -0.1812413 -0.174248 -0.1834243
    #> SERPING1  0.0608661  0.1776406  0.202820  0.1285111
    #> CFTR      0.0211235  0.1286228  0.195875  0.1663778
    #> ABCC8    -0.0973810 -0.0971522 -0.096878 -0.0972965
    #> CTSD      0.3060994  0.4565747  0.385707  0.2930529

    ## Show ductal cell state scores per sample
    metadata(Statescope)$statescores$`ductal cell`
    #> DataFrame with 10 rows and 2 columns
    #>               V1          V2
    #>        <numeric>   <numeric>
    #> H1   1.19523e-02 9.88048e-01
    #> H2   8.10709e-01 1.89291e-01
    #> H3   6.07670e-08 1.00000e+00
    #> H4   3.69550e-01 6.30450e-01
    #> H5   8.74509e-02 9.12549e-01
    #> H6   1.00000e+00 8.15941e-10
    #> T2D1 2.77667e-01 7.22333e-01
    #> T2D2 6.66190e-01 3.33810e-01
    #> T2D3 9.97045e-01 2.95503e-03
    #> T2D4 8.82874e-01 1.17126e-01

    ## Show ductal cell state loadings
    metadata(Statescope)$stateloadings$`ductal cell`
    #> DataFrame with 50 rows and 2 columns
    #>                  V1         V2
    #>           <numeric>  <numeric>
    #> GCG       -0.197702  -0.188050
    #> TTR       -0.398200  -0.385049
    #> INS       -0.286593  -0.286107
    #> PPY       -0.257807  -0.250841
    #> REG1A      0.782027   0.586392
    #> ...             ...        ...
    #> PNLIP    -0.1668809 -0.1664441
    #> SERPING1  0.1548935  0.1156324
    #> CFTR      0.1526919  0.0161338
    #> ABCC8    -0.0895788 -0.0864981
    #> CTSD      0.2441599  0.3852317

    ## Plot heatmap of fractions
    fraction_heatmap(Statescope)

    ## Plot barplot of top state loadings
    barplot_stateloadings(Statescope)

## 2.7 Group expectations

When an expected fraction is available for a group of cell types rather than for individual cell types (i.e. Lymphoid cells instead of T/B cells), StatescopeR allows the use of a group prior. Here we show an example where the expected fraction of the pancreatic islet cells (alpha, beta, gamma & delta cells) together is known, but not their individual contributions.

    ## define cell types in one group
    grouped_cts <- c("alpha cell", "beta cell", "gamma cell", "delta cell")

    ## initialize group assignment matrix (nCelltype x nGroup) with 0's
    celltype_names <- colnames(signature$mu)
    group_names <- c("Group", setdiff(celltype_names, grouped_cts))
    nCelltype <- length(celltype_names)
    nGroup <- length(group_names)

    group <- matrix(0,
        nrow = nGroup, ncol = nCelltype,
        dimnames = list(group_names, celltype_names)
    )

    ## initialize prior fraction matrix (nSamples x nCelltypes) with NA's
    nSamples <- ncol(pseudobulk)
    sample_names <- colnames(pseudobulk)

    prior <- matrix(
        nrow = nSamples, ncol = nGroup,
        dimnames = list(sample_names, group_names)
    )

    ## Assign cell types to groups
    for (ct in celltype_names) {
        if (ct %in% grouped_cts) {
            ## assign cell type to group
            group["Group", ct] <- 1
        } else {
            ## Assign cell type to its own group
            group[ct, ct] <- 1
        }
    }

    ## Add grouped prior fractions to prior
    true_fractions <- gather_true_fractions(scRNAseq, ids = scRNAseq$individual,
         label_col = "cell type")

    prior[names(true_fractions), "Group"] <- colSums(as.matrix(
        true_fractions[grouped_cts, ]
    ))

    ## init group prior
    group_prior <- list("Group" = group, "Expectation" = prior)

    ## Now you can just run Statescope as with a normal prior. Note we do not give
    ## a ductal cell prior this time
    Statescope <- BLADE_deconvolution(signature, pseudobulk, selected_genes,
        group_prior,
        cores = 1L,
        Nrep = 1L
    )
    #> all of 30 genes are used for optimization.
    #> Initialization with Support vector regression
    #> No feature filtering is done (fsel = 0)
    #> Using CPU for computation.

# 3 Citing `StatescopeR`

If you made use of StatescopeR for your research, please use the following information to cite the package and the underlying methodology.

    ## Citation info
    citation("StatescopeR")
    #> To cite package 'StatescopeR' in publications use:
    #>
    #>   Janssen J, Radonic T, Steketee M, van Asten S, Eijk P, van Maldegem
    #>   F, Noske D, Bahce I, Vallejo JG, van de Wiel M, Ylstra B, Kim Y
    #>   (2024). "Hidden RNA profiles of cells in the tumor microenvironment
    #>   accurately revealed by malignant cell fraction-informed
    #>   deconvolution." _Research Square_. doi:10.21203/rs.3.rs-4252952/v1
    #>   <https://doi.org/10.21203/rs.3.rs-4252952/v1>.
    #>   <https://www.researchgate.net/publication/380850052_Hidden_RNA_profiles_of_cells_in_the_tumor_microenvironment_accurately_revealed_by_malignant_cell_fraction-informed_deconvolution>.
    #>
    #> A BibTeX entry for LaTeX users is
    #>
    #>   @Article{,
    #>     title = {Hidden RNA profiles of cells in the tumor microenvironment accurately revealed by malignant cell fraction-informed deconvolution},
    #>     author = {Jurriaan Janssen and Teodora Radonic and Mischa Steketee and Saskia {van Asten} and Paul Eijk and Febe {van Maldegem} and David Noske and Idris Bahce and Juan Garcia Vallejo and Mark {van de Wiel} and Bauke Ylstra and Yongsoo Kim},
    #>     year = {2024},
    #>     journal = {Research Square},
    #>     doi = {10.21203/rs.3.rs-4252952/v1},
    #>     url = {https://www.researchgate.net/publication/380850052_Hidden_RNA_profiles_of_cells_in_the_tumor_microenvironment_accurately_revealed_by_malignant_cell_fraction-informed_deconvolution},
    #>   }

# 4 Reproducibility

The StatescopeR package (Janssen, Radonic, Steketee, van Asten, Eijk, van Maldegem, Noske, Bahce, Vallejo, van de Wiel, Ylstra, and Kim, 2024) was made possible thanks to:

- R (R Core Team, 2026)
- BiocStyle (Oleś, 2026)
- knitr (Xie, 2025)
- RefManageR (McLean, 2017)
- rmarkdown (Allaire, Xie, Dervieux, McPherson, Luraschi, Ushey, Atkins, Wickham, Cheng, Chang, and Iannone, 2026)
- sessioninfo (Wickham, Chang, Flight, Müller, and Hester, 2025)
- testthat (Wickham, 2011)

This package was developed using biocthis.

`R` session information.

    #> ─ Session info ───────────────────────────────────────────────────────────────
    #>  setting  value
    #>  version  R version 4.6.0 alpha (2026-04-05 r89794)
    #>  os       Ubuntu 24.04.4 LTS
    #>  system   x86_64, linux-gnu
    #>  ui       X11
    #>  language (EN)
    #>  collate  C
    #>  ctype    en_US.UTF-8
    #>  tz       America/New_York
    #>  date     2026-04-08
    #>  pandoc   2.7.3 @ /usr/bin/ (via rmarkdown)
    #>  quarto   1.8.25 @ /usr/local/bin/quarto
    #>
    #> ─ Packages ───────────────────────────────────────────────────────────────────
    #>  package              * version   date (UTC) lib source
    #>  abind                  1.4-8     2024-09-12 [2] CRAN (R 4.6.0)
    #>  alabaster.base         1.11.4    2026-04-08 [2] Bioconductor 3.23 (R 4.6.0)
    #>  alabaster.matrix       1.11.0    2026-04-08 [2] Bioconductor 3.23 (R 4.6.0)
    #>  alabaster.ranges       1.11.0    2026-04-08 [2] Bioconductor 3.23 (R 4.6.0)
    #>  alabaster.sce          1.11.0    2026-04-08 [2] Bioconductor 3.23 (R 4.6.0)
    #>  alabaster.schemas      1.11.0    2026-04-08 [2] Bioconductor 3.23 (R 4.6.0)
    #>  alabaster.se           1.11.0    2026-04-08 [2] Bioconductor 3.23 (R 4.6.0)
    #>  AnnotationDbi          1.73.1    2026-04-08 [2] Bioconductor 3.23 (R 4.6.0)
    #>  AnnotationFilter       1.35.0    2026-04-08 [2] Bioconductor 3.23 (R 4.6.0)
    #>  AnnotationHub          4.1.0     2026-04-08 [2] Bioconductor 3.23 (R 4.6.0)
    #>  backports              1.5.1     2026-04-03 [2] CRAN (R 4.6.0)
    #>  basilisk               1.23.0    2026-04-08 [2] Bioconductor 3.23 (R 4.6.0)
    #>  beachmat               2.27.4    2026-04-08 [2] Bioconductor 3.23 (R 4.6.0)
    #>  bibtex                 0.5.2     2026-02-03 [2] CRAN (R 4.6.0)
    #>  Biobase              * 2.71.0    2026-04-08 [2] Bioconductor 3.23 (R 4.6.0)
    #>  BiocFileCache          3.1.0     2026-04-08 [2] Bioconductor 3.23 (R 4.6.0)
    #>  BiocGenerics         * 0.57.0    2026-04-08 [2] Bioconductor 3.23 (R 4.6.0)
    #>  BiocIO                 1.21.0    2026-04-08 [2] Bioconductor 3.23 (R 4.6.0)
    #>  BiocManager            1.30.27   2025-11-14 [2] CRAN (R 4.6.0)
    #>  BiocNeighbors          2.5.4     2026-04-08 [2] Bioconductor 3.23 (R 4.6.0)
    #>  BiocParallel           1.45.0    2026-04-08 [2] Bioconductor 3.23 (R 4.6.0)
    #>  BiocSingular           1.27.1    2026-04-08 [2] Bioconductor 3.23 (R 4.6.0)
    #>  BiocStyle            * 2.39.0    2026-04-08 [2] Bioconductor 3.23 (R 4.6.0)
    #>  BiocVersion            3.23.1    2026-04-08 [2] Bioconductor 3.23 (R 4.6.0)
    #>  Biostrings             2.79.5    2026-04-08 [2] Bioconductor 3.23 (R 4.6.0)
    #>  bit                    4.6.0     2025-03-06 [2] CRAN (R 4.6.0)
    #>  bit64                  4.6.0-1   2025-01-16 [2] CRAN (R 4.6.0)
    #>  bitops                 1.0-9     2024-10-03 [2] CRAN (R 4.6.0)
    #>  blob                   1.3.0     2026-01-14 [2] CRAN (R 4.6.0)
    #>  bluster                1.21.1    2026-04-08 [2] Bioconductor 3.23 (R 4.6.0)
    #>  bookdown               0.46      2025-12-05 [2] CRAN (R 4.6.0)
    #>  bslib                  0.10.0    2026-01-26 [2] CRAN (R 4.6.0)
    #>  cachem                 1.1.0     2024-05-16 [2] CRAN (R 4.6.0)
    #>  Cairo                  1.7-0     2025-10-29 [2] CRAN (R 4.6.0)
    #>  cigarillo              1.1.0     2026-04-08 [2] Bioconductor 3.23 (R 4.6.0)
    #>  circlize               0.4.18    2026-04-04 [2] CRAN (R 4.6.0)
    #>  cli                    3.6.5     2025-04-23 [2] CRAN (R 4.6.0)
    #>  clue                   0.3-68    2026-03-26 [2] CRAN (R 4.6.0)
    #>  cluster                2.1.8.2   2026-02-05 [3] CRAN (R 4.6.0)
    #>  codetools              0.2-20    2024-03-31 [3] CRAN (R 4.6.0)
    #>  colorspace             2.1-2     2025-09-22 [2] CRAN (R 4.6.0)
    #>  ComplexHeatmap         2.27.1    2026-04-08 [2] Bioconductor 3.23 (R 4.6.0)
    #>  cowplot                1.2.0     2025-07-07 [2] CRAN (R 4.6.0)
    #>  crayon                 1.5.3     2024-06-20 [2] CRAN (R 4.6.0)
    #>  curl                   7.0.0     2025-08-19 [2] CRAN (R 4.6.0)
    #>  DBI                    1.3.0     2026-02-25 [2] CRAN (R 4.6.0)
    #>  dbplyr                 2.5.2     2026-02-13 [2] CRAN (R 4.6.0)
    #>  DelayedArray           0.37.1    2026-04-08 [2] Bioconductor 3.23 (R 4.6.0)
    #>  dichromat              2.0-0.1   2022-05-02 [2] CRAN (R 4.6.0)
    #>  digest                 0.6.39    2025-11-19 [2] CRAN (R 4.6.0)
    #>  dir.expiry             1.19.0    2026-04-08 [2] Bioconductor 3.23 (R 4.6.0)
    #>  doParallel             1.0.17    2022-02-07 [2] CRAN (R 4.6.0)
    #>  dplyr                  1.2.1     2026-04-03 [2] CRAN (R 4.6.0)
    #>  dqrng                  0.4.1     2024-05-28 [2] CRAN (R 4.6.0)
    #>  edgeR                  4.9.5     2026-04-08 [2] Bioconductor 3.23 (R 4.6.0)
    #>  ensembldb              2.35.0    2026-04-08 [2] Bioconductor 3.23 (R 4.6.0)
    #>  evaluate               1.0.5     2025-08-27 [2] CRAN (R 4.6.0)
    #>  ExperimentHub          3.1.0     2026-04-08 [2] Bioconductor 3.23 (R 4.6.0)
    #>  farver                 2.1.2     2024-05-13 [2] CRAN (R 4.6.0)
    #>  fastmap                1.2.0     2024-05-15 [2] CRAN (R 4.6.0)
    #>  filelock               1.0.3     2023-12-11 [2] CRAN (R 4.6.0)
    #>  foreach                1.5.2     2022-02-02 [2] CRAN (R 4.6.0)
    #>  generics             * 0.1.4     2025-05-09 [2] CRAN (R 4.6.0)
    #>  GenomeInfoDb           1.47.2    2026-04-08 [2] Bioconductor 3.23 (R 4.6.0)
    #>  GenomicAlignments      1.47.0    2026-04-08 [2] Bioconductor 3.23 (R 4.6.0)
    #>  GenomicFeatures        1.63.2    2026-04-08 [2] Bioconductor 3.23 (R 4.6.0)
    #>  GenomicRanges        * 1.63.2    2026-04-08 [2] Bioconductor 3.23 (R 4.6.0)
    #>  GetoptLong             1.1.1     2026-04-08 [2] CRAN (R 4.6.0)
    #>  ggplot2                4.0.2     2026-02-03 [2] CRAN (R 4.6.0)
    #>  GlobalOptions          0.1.4     2026-04-08 [2] CRAN (R 4.6.0)
    #>  glue                   1.8.0     2024-09-30 [2] CRAN (R 4.6.0)
    #>  gtable                 0.3.6     2024-10-25 [2] CRAN (R 4.6.0)
    #>  gypsum                 1.7.0     2026-04-08 [2] Bioconductor 3.23 (R 4.6.0)
    #>  h5mread                1.3.3     2026-04-08 [2] Bioconductor 3.23 (R 4.6.0)
    #>  HDF5Array              1.39.1    2026-04-08 [2] Bioconductor 3.23 (R 4.6.0)
    #>  htmltools              0.5.9     2025-12-04 [2] CRAN (R 4.6.0)
    #>  httr                   1.4.8     2026-02-13 [2] CRAN (R 4.6.0)
    #>  httr2                  1.2.2     2025-12-08 [2] CRAN (R 4.6.0)
    #>  igraph                 2.2.3     2026-04-07 [2] CRAN (R 4.6.0)
    #>  IRanges              * 2.45.0    2026-04-08 [2] Bioconductor 3.23 (R 4.6.0)
    #>  irlba                  2.3.7     2026-01-30 [2] CRAN (R 4.6.0)
    #>  iterators              1.0.14    2022-02-05 [2] CRAN (R 4.6.0)
    #>  jquerylib              0.1.4     2021-04-26 [2] CRAN (R 4.6.0)
    #>  jsonlite               2.0.0     2025-03-27 [2] CRAN (R 4.6.0)
    #>  KEGGREST               1.51.1    2026-04-08 [2] Bioconductor 3.23 (R 4.6.0)
    #>  knitr                  1.51      2025-12-20 [2] CRAN (R 4.6.0)
    #>  labeling               0.4.3     2023-08-29 [2] CRAN (R 4.6.0)
    #>  lattice                0.22-9    2026-02-09 [3] CRAN (R 4.6.0)
    #>  lazyeval               0.2.3     2026-04-04 [2] CRAN (R 4.6.0)
    #>  lifecycle              1.0.5     2026-01-08 [2] CRAN (R 4.6.0)
    #>  limma                  3.67.0    2026-04-08 [2] Bioconductor 3.23 (R 4.6.0)
    #>  locfit                 1.5-9.12  2025-03-05 [2] CRAN (R 4.6.0)
    #>  lubridate              1.9.5     2026-02-04 [2] CRAN (R 4.6.0)
    #>  magick                 2.9.1     2026-02-28 [2] CRAN (R 4.6.0)
    #>  magrittr               2.0.5     2026-04-04 [2] CRAN (R 4.6.0)
    #>  Matrix                 1.7-5     2026-03-21 [3] CRAN (R 4.6.0)
    #>  MatrixGenerics       * 1.23.0    2026-04-08 [2] Bioconductor 3.23 (R 4.6.0)
    #>  matrixStats          * 1.5.0     2025-01-07 [2] CRAN (R 4.6.0)
    #>  memoise                2.0.1     2021-11-26 [2] CRAN (R 4.6.0)
    #>  metapod                1.19.2    2026-04-08 [2] Bioconductor 3.23 (R 4.6.0)
    #>  otel                   0.2.0     2025-08-29 [2] CRAN (R 4.6.0)
    #>  pillar                 1.11.1    2025-09-17 [2] CRAN (R 4.6.0)
    #>  pkgconfig              2.0.3     2019-09-22 [2] CRAN (R 4.6.0)
    #>  plyr                   1.8.9     2023-10-02 [2] CRAN (R 4.6.0)
    #>  png                    0.1-9     2026-03-15 [2] CRAN (R 4.6.0)
    #>  ProtGenerics           1.43.0    2026-04-08 [2] Bioconductor 3.23 (R 4.6.0)
    #>  R6                     2.6.1     2025-02-15 [2] CRAN (R 4.6.0)
    #>  rappdirs               0.3.4     2026-01-17 [2] CRAN (R 4.6.0)
    #>  RColorBrewer           1.1-3     2022-04-03 [2] CRAN (R 4.6.0)
    #>  Rcpp                   1.1.1     2026-01-10 [2] CRAN (R 4.6.0)
    #>  RCurl                  1.98-1.18 2026-03-21 [2] CRAN (R 4.6.0)
    #>  RefManageR           * 1.4.0     2022-09-30 [2] CRAN (R 4.6.0)
    #>  restfulr               0.0.16    2025-06-27 [2] CRAN (R 4.6.0)
    #>  reticulate             1.45.0    2026-02-13 [2] CRAN (R 4.6.0)
    #>  rhdf5                  2.55.16   2026-04-08 [2] Bioconductor 3.23 (R 4.6.0)
    #>  rhdf5filters           1.23.3    2026-04-08 [2] Bioconductor 3.23 (R 4.6.0)
    #>  Rhdf5lib               1.33.6    2026-04-08 [2] Bioconductor 3.23 (R 4.6.0)
    #>  rjson                  0.2.23    2024-09-16 [2] CRAN (R 4.6.0)
    #>  rlang                  1.2.0     2026-04-06 [2] CRAN (R 4.6.0)
    #>  rmarkdown              2.31      2026-03-26 [2] CRAN (R 4.6.0)
    #>  Rsamtools              2.27.1    2026-04-08 [2] Bioconductor 3.23 (R 4.6.0)
    #>  RSQLite                2.4.6     2026-02-06 [2] CRAN (R 4.6.0)
    #>  rsvd                   1.0.5     2021-04-16 [2] CRAN (R 4.6.0)
    #>  rtracklayer            1.71.3    2026-04-08 [2] Bioconductor 3.23 (R 4.6.0)
    #>  S4Arrays               1.11.1    2026-04-08 [2] Bioconductor 3.23 (R 4.6.0)
    #>  S4Vectors            * 0.49.1    2026-04-08 [2] Bioconductor 3.23 (R 4.6.0)
    #>  S7                     0.2.1     2025-11-14 [2] CRAN (R 4.6.0)
    #>  sass                   0.4.10    2025-04-11 [2] CRAN (R 4.6.0)
    #>  ScaledMatrix           1.19.0    2026-04-08 [2] Bioconductor 3.23 (R 4.6.0)
    #>  scales                 1.4.0     2025-04-24 [2] CRAN (R 4.6.0)
    #>  scran                  1.39.2    2026-04-08 [2] Bioconductor 3.23 (R 4.6.0)
    #>  scRNAseq             * 2.25.0    2026-04-07 [2] Bioconductor 3.23 (R 4.6.0)
    #>  scuttle              * 1.21.5    2026-04-08 [2] Bioconductor 3.23 (R 4.6.0)
    #>  Seqinfo              * 1.1.0     2026-04-08 [2] Bioconductor 3.23 (R 4.6.0)
    #>  sessioninfo          * 1.2.3     2025-02-05 [2] CRAN (R 4.6.0)
    #>  shape                  1.4.6.1   2024-02-23 [2] CRAN (R 4.6.0)
    #>  SingleCellExperiment * 1.33.2    2026-04-08 [2] Bioconductor 3.23 (R 4.6.0)
    #>  SparseArray            1.11.13   2026-04-08 [2] Bioconductor 3.23 (R 4.6.0)
    #>  StatescopeR          * 0.99.36   2026-04-08 [1] Bioconductor 3.23 (R 4.6.0)
    #>  statmod                1.5.1     2025-10-09 [2] CRAN (R 4.6.0)
    #>  stringi                1.8.7     2025-03-27 [2] CRAN (R 4.6.0)
    #>  stringr                1.6.0     2025-11-04 [2] CRAN (R 4.6.0)
    #>  SummarizedExperiment * 1.41.1    2026-04-08 [2] Bioconductor 3.23 (R 4.6.0)
    #>  tibble                 3.3.1     2026-01-11 [2] CRAN (R 4.6.0)
    #>  tidyselect             1.2.1     2024-03-11 [2] CRAN (R 4.6.0)
    #>  timechange             0.4.0     2026-01-29 [2] CRAN (R 4.6.0)
    #>  UCSC.utils             1.7.1     2026-04-08 [2] Bioconductor 3.23 (R 4.6.0)
    #>  vctrs                  0.7.2     2026-03-21 [2] CRAN (R 4.6.0)
    #>  withr                  3.0.2     2024-10-28 [2] CRAN (R 4.6.0)
    #>  xfun                   0.57      2026-03-20 [2] CRAN (R 4.6.0)
    #>  XML                    3.99-0.23 2026-03-20 [2] CRAN (R 4.6.0)
    #>  xml2                   1.5.2     2026-01-17 [2] CRAN (R 4.6.0)
    #>  XVector                0.51.0    2026-04-08 [2] Bioconductor 3.23 (R 4.6.0)
    #>  yaml                   2.3.12    2025-12-10 [2] CRAN (R 4.6.0)
    #>
    #>  [1] /tmp/Rtmprrku0t/Rinst31cf4810ef1ee1
    #>  [2] /home/biocbuild/bbs-3.23-bioc/R/site-library
    #>  [3] /home/biocbuild/bbs-3.23-bioc/R/library
    #>  * ── Packages attached to the search path.
    #>
    #> ─ Python configuration ───────────────────────────────────────────────────────
    #>  python:         /var/cache/basilisk/1.23.0/StatescopeR/0.99.36/statescope/bin/python
    #>  libpython:      /home/biocbuild/.pyenv/versions/3.11.15/lib/libpython3.11.so
    #>  pythonhome:     /var/cache/basilisk/1.23.0/StatescopeR/0.99.36/statescope:/var/cache/basilisk/1.23.0/StatescopeR/0.99.36/statescope
    #>  version:        3.11.15 (main, Mar  3 2026, 17:38:22) [GCC 13.3.0]
    #>  numpy:          /var/cache/basilisk/1.23.0/StatescopeR/0.99.36/statescope/lib/python3.11/site-packages/numpy
    #>  numpy_version:  1.23.5
    #>
    #>  NOTE: Python version was forced by use_python() function
    #>
    #> ──────────────────────────────────────────────────────────────────────────────