simulate_exprs {CellTrails} | R Documentation |
Simple simulation of RNA-Seq expression data estimating counts based on the negative binomial distribution
simulate_exprs(n_features, n_samples, prefix_sample = "")
n_features |
Number of genes |
n_samples |
Number of samples |
prefix_sample |
Prefix of sample name |
RNA-Seq counts are generated using the Negative Binomial Distribution. Distribution parameters for each feature are sampled from a Gamma distribution. The resulting expression matrix is log2-scaled.
A numeric matrix with genes in rows and samples in columns
Daniel C. Ellwanger
NegBinomial
and GammaDist
# Matrix with 100 genes and 50 cells dat <- simulate_exprs(n_features=100, n_samples=50)