kersplatSimAmbientCounts: Simulate Kersplat ambient counts

View source: R/kersplat-simulate.R

kersplatSimAmbientCountsR Documentation

Simulate Kersplat ambient counts

Description

Simulate Kersplat ambient counts

Usage

kersplatSimAmbientCounts(sim, params, verbose)

Arguments

sim

SingleCellExperiment containing simulation.

params

KersplatParams object with simulation parameters.

verbose

logical. Whether to print progress messages

Details

The overall expression profile to calculated by averaging the cell counts of the (non-empty) cells. This is then multiplied by the ambient library sizes to get a mean for each cell. Counts are then sampled from a Poisson distribution using these means.

Value

SingleCellExperiment with ambient counts


Oshlack/splatter documentation built on Dec. 10, 2024, 3:48 p.m.