simulateMixture: Simulate a mixture dataset

Description Usage Arguments Details Value

Description

Simulates a mixture dataset with optional cell-type specific differential expression.

Usage

1
simulateMixture(pureData, targetVals, cellpop = -1, frac.genes = 0.1, fold.sd = 2)

Arguments

pureData

A gene by cell type matrix of pure cell expression profiles in linear space.

targetVals

A cell-type by sample matrix of proportions.

cellpop

The index of the the cell type whose expression profile will be altered.

frac.genes

Fraction of genes to be differentially expressed.

fold.sd

The standard deviation for the fold change distribution. The mean is 0.

Details

The sample size of the dataset is determined by the number of columns (samples) in the targetVals matrix. If the cellpop variable is set this function will simulate 2 groups of equal size. The second group will be created with slightly altered pureData.

Value

A list with: data: the simulated expression data vals: a vector same size as nrow(data) of fold change values. Most of these will be 0.


mchikina/CellCODE documentation built on May 23, 2019, 1:13 p.m.