| mockSVG {spatialDE} | R Documentation |
Generate count matrix for spatially variable genes.
mockSVG(size = 10, tot_genes = 1000, de_genes = 100, return_SPE = FALSE)
size |
An |
tot_genes |
An |
de_genes |
An |
return_SPE |
A |
If return_SPE = TRUE, returns a SpatialExperiment object.
If not, a list containing:
coordinates: data.frame with x and y columns;
counts: matrix with generated gene counts.
spe <- mockSVG(10, tot_genes = 200, de_genes = 20, return_SPE = TRUE) spe