simulateCounts: Simulate expression count table

Description Usage Arguments Value Examples

View source: R/simulation_counts.R

Description

Simulate expression count table given topic by gene, topic by cell matrices and library size.

Usage

1
simulateCounts(theta, beta, doc_length)

Arguments

theta

Theta matrix where rows represent cells and columns represent topics.

beta

Beta matrix where rows represent topics and columns represent genes.

doc_length

Library size of cell samples.

Value

A cell by gene matrix of expression counts.

Examples

1
2
3
4
## Not run: 
counts <- simulateCounts(theta.true, beta.true, rep(100000, nrow(theta.true)))

## End(Not run)

wuxiaotiankevin/pLDA documentation built on Nov. 11, 2019, 11:01 p.m.