simulate_exprs {CellTrails} | R Documentation

## Simulation of RNA-Seq expression data

### Description

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

### Usage

    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

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

[Package CellTrails version 1.0.1 Index]