syntheticMultipletsFromCounts: syntheticMultipletsFromCounts

Description Arguments Value Author(s) Examples

View source: R/syntheticMultipletsFromCounts.R

Description

Generates one multiplet per combo using the singlet counts data input to the function.

Arguments

counts

matrix; A matrix of singlet counts per million with cells as columns and genes as rows.

classes

character; A character vector indicating the cell types of the cells in the counts matrix.

combos

matrix; A matrix the combinations of cell types to be included in the multiplets. Typically generated with the combn function.

adjustment;

numeric A named numeric vector with length = the number of unique cell types indicating the fraction of contribution for each cell type. Names should indicate the corresponding cell type.

seed

numeric; Seed for random number initiation. When generating many multiplets by running the function multiple times in a loop, the seed should be set dynamically in the function calling the makeSyntheticData function to avoid all multiplets being identical.

...

Additional arguments to pass on.

Value

A tibble with one gene per row and one synthesized multiplet per combo as columns.

Author(s)

Jason T. Serviss

Examples

1
#use demo data

EngeLab/CIMseq.publication documentation built on Jan. 29, 2020, 10:03 a.m.