simulate_exprs: Simulation of RNA-Seq expression data

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/simulation-methods.R

Description

Simple simulation of RNA-Seq expression data estimating counts based on the negative binomial distribution

Usage

1
simulate_exprs(n_features, n_samples, prefix_sample = "")

Arguments

n_features

Number of genes

n_samples

Number of samples

prefix_sample

Prefix of sample name

Details

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.

Value

A numeric matrix with genes in rows and samples in columns

Author(s)

Daniel C. Ellwanger

See Also

NegBinomial and GammaDist

Examples

1
2
# Matrix with 100 genes and 50 cells
dat <- simulate_exprs(n_features=100, n_samples=50)

dcellwanger/CellTrails documentation built on May 12, 2020, 2:01 a.m.