simData: simData

Description Usage Arguments Details Examples

View source: R/simData.R

Description

Simulation of complex scRNA-seq data

Usage

1
simData(x, n_genes, n_cells, p_dd)

Arguments

x

a SingleCellExperiment.

n_genes

# of genes to simulate.

n_cells

# of cells to simulate. Either a single numeric or a range to sample from.

p_dd

numeric vector of length 6. Specifies the probability of a gene being EE, EP, DE, DP, DM, or DB, respectively.

ns

nb. of genes common to 1, 2, ..., all clusters.

seed

random seed.

Details

simData simulates multiple clusters and samples across 2 experimental conditions from a real scRNA-seq data set.

Examples

1
2
3
4
data(kang_se, kang_fit)
simDD(kang_se, kang_fit,
    n_genes = 10, n_cells = 10,
    p_dd = c(1,0,0,0,0,0), seed = 1)

HelenaLC/ddSingleCell documentation built on Dec. 7, 2018, 7:54 a.m.