simulate_count.Rd
It generates a random UMI count matrix based on DECAL model assumptions
given the cells total count (depth
) and gene prevalence ratio (ratio of
genes UMIs over the total; ratio
).
Alternatively, you can further specify the generative model, by giving a
log2 fold-change (lfc
) effect and each gene dispersion (theta
).
sim_count(depth, ratio, lfc = 0L, theta = 100L) sim_count_from_data(reference, lfc = 0, theta = 100L, ngenes = NULL)
depth | simulated cells total UMI count |
---|---|
ratio | ratio of genes UMI to be simulated |
lfc | log2 fold-change effect to be applied to the simulated cells |
theta | genes' dispersion parameter |
reference | a count matrix to base the simulation |
ngenes | number of genes to be simulated. When |
random UMI count matrix