mockSVG {spatialDE}R Documentation

Generate count matrix for spatially variable genes.

Description

Generate count matrix for spatially variable genes.

Usage

mockSVG(size = 10, tot_genes = 1000, de_genes = 100, return_SPE = FALSE)

Arguments

size

An integer scalar. Cells will be spatially arranged on a size x size grid. Default: 10, corresponding to 100 cells.

tot_genes

An integer scalar. Total number of genes. Default: 1000.

de_genes

An integer scaler. The number of spatially variable genes. Default: 100.

return_SPE

A logical, whether to return result as a SpatialExperiment. Default: FALSE.

Value

If return_SPE = TRUE, returns a SpatialExperiment object.

If not, a list containing:

Examples

spe <- mockSVG(10, tot_genes = 200, de_genes = 20, return_SPE = TRUE)
spe


[Package spatialDE version 0.99.10 Index]