Skip to contents

Simulate spatially-aware mixtures in an `scbench` object

Usage

mixtures_spatial(
  scbench,
  n_samples = 20,
  n_spots = 2048,
  n_zones = 4,
  majority_var = 0.15,
  min_majority_prop = 0.3,
  seed = 1,
  ncores = 8,
  ...
)

Arguments

scbench

an `scbench` object

n_samples

an integer representing the number of samples to simulate

n_spots

an integer representing the number of spots to simulate within each sample

n_zones

the number of different zones to generate per slide with different transcriptomic profiles

majority_var

variation parameter related to how much the "majority" population proportion varies within a zone (range: 0 - 0.3)

min_majority_prop

minimum proportion of the "majority" population in a zone

seed

an integer representing a "seed", for reproducibility of mixtures.

...

arguments passed to `fields::circulantEmbeddingSetup` related to the simulation of the Random Gaussian Field

Value

an object of class `scbench`