.mock_sc/sp()
are designed to generate synthetic single-cell and
spatial mixture data. These data are not meant to represent biologically
meaningful use-cases, but are solely intended for use in examples, for
unit-testing, and to demonstrate SPOTlight
's general functionality.
Finally, .get_mgs()
implements a statistically naive way to select
markers from single-cell data; again, please don't use it in real life.
Arguments
- ng, nc, nt, ns
integer scalar specifying the number of genes, cells, types (groups) and spots to simulate.
- x
Single cell experiment object ç
- n_top
integer specifying the number of marker genes to extract for each cluster.
Value
.mock_sc
returns aSingleCellExperiment
with rows = genes, columns = single cells, and cell metadata (colData
) columntype
containing group identifiers..mock_sp
returns aSingleCellExperiment
with rows = genes, columns = single cells, and cell metadata (colData
) columntype
containing group identifiers..get_mgs
returns adata.frame
withnt*n_top
rows and 3 columns: gene and type (group) identifier, as well as the gene's weight = the proportion of counts accounted for by that type.