Description Usage Arguments Details Value
Simulates a mixture dataset with optional cell-type specific differential expression.
1 | simulateMixture(pureData, targetVals, cellpop = -1, frac.genes = 0.1, fold.sd = 2)
|
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. |
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.
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.