kersplatSimCounts: Simulate Kersplat final counts

View source: R/kersplat-simulate.R

kersplatSimCountsR Documentation

Simulate Kersplat final counts

Description

Simulate the final counts matrix for a Kersplat simulation

Usage

kersplatSimCounts(sim, params, verbose)

Arguments

sim

SingleCellExperiment containing simulation.

params

KersplatParams object with simulation parameters.

verbose

logical. Whether to print progress messages

Details

The cell counts matrix and ambient counts matrix are added together. The result is then downsampled to the cell library size (for cells and doublets) or the ambient library size (for empty cells) using the downsampleMatrix function.

Value

SingleCellExperiment with counts matrix

See Also

downsampleMatrix


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