toy_sce: Toy SingleCellExperiment object for examples and tests

View source: R/toy_data.R

toy_sceR Documentation

Toy SingleCellExperiment object for examples and tests

Description

Builds a small deterministic SingleCellExperiment (20 genes x 300 cells, two cell types in the cell_type colData column) with the installed SingleCellExperiment version, so no serialized object needs to ship with the package. The same simulated counts as toy_seurat() are stored in the counts assay, with log-normalized values in logcounts. The generator restores the caller's random-number state.

Usage

toy_sce()

Details

Requires the suggested package SingleCellExperiment (Bioconductor).

Value

A SingleCellExperiment with counts and logcounts assays and a cell_type colData column with values "jurkat" and "t293".

See Also

toy_seurat(), wilcoxauc()

Examples

if (requireNamespace("SingleCellExperiment", quietly = TRUE)) {
    object_sce <- toy_sce()
    head(wilcoxauc(object_sce, "cell_type"))
}


presto documentation built on Sept. 30, 2026, 5:13 p.m.