.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_screturns aSingleCellExperimentwith rows = genes, columns = single cells, and cell metadata (colData) columntypecontaining group identifiers..mock_spreturns aSingleCellExperimentwith rows = genes, columns = single cells, and cell metadata (colData) columntypecontaining group identifiers..get_mgsreturns adata.framewithnt*n_toprows and 3 columns: gene and type (group) identifier, as well as the gene's weight = the proportion of counts accounted for by that type.