Description Usage Arguments Value Author(s) References Examples
View source: R/custom.resids.synthetic.R
Used in 'lrcde.permutations_for_auc_variability' and 'using_lrcde'
1 2 3 | custom.resids.synthetic(mse2model.vec = 0.05, groups,
diff.2.model.vec = c(0.1, 0.5, 1), base.expr.vec = 10, adjuster = 1,
n.cells)
|
mse2model.vec |
the vector of mean squared errors (MSEs) to model. Default - 0.05 |
groups |
A vector of 1's and 2's indicating group membership per sample. Should align with the order of samples in het.sub and cell.props matrices. Required. |
diff.2.model.vec |
vector of cell type-specific differential expressions to create. Devault - c(0.1, 0.5, 1) |
base.expr.vec |
vector of base (control group) cell type specific expressions to model. Default - 10 |
adjuster |
a scaling factor used on the resulting standard deviation of residuals. Default - 1 |
n.cells |
number of cell types. Required |
a matrix of synthetic normal residuals based on standard deviations of control and cases residuals from resids.gene.j. 'length(group)' rows X 'n.cells' columns
Edmund R Glass, Edmund.Glass@gmail.com
https://github.com/ERGlass/lrcde.dev
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.