Description Usage Arguments Details Value Author(s) References Examples
View source: R/do.dual.decon.R
Performs the core functionality of LRCDE - cell type-specific differential expression detection. This function does the actual linear regression deconvolution per group.
1 2 | do.dual.decon(het.sub, cell.props, groups, medCntr = FALSE, stdz = FALSE,
nonNeg = TRUE)
|
het.sub |
the samples (rows) by genes (columns) heterogeneous gene expression matrix. Should contain non-median-centered, non-standardized, positive values. log2-transformation recommended. Required |
cell.props |
the cell proportion matrix, cell types (rows) by samples (columns). The proportion should be relative, e.g., sum up to ~1 per sample. Required |
groups |
a vector of 1's and 2's indicating group assignment. Should correspond to the sample order in het.sub and cell.props. Required |
medCntr |
boolean indicatinng whether to median center difference estimates. Default - FALSE |
stdz |
boolean indicating whether to standardize difference estimates. Default - FALSE |
nonNeg |
boolean indicating whether to force cell type-specific expression estimates to be non-negative. Default - TRUE |
Here is where the actual group-wise linear regressions are performed. This function is designed to handle a single genomic site at a time; e.g.: a single vector containing het.suberogeneous observations for controls and cases.
Returns a list containing group-wise difference estimates, regression residuals, lm objects per group, and standard errors of cell type-specific expression estimates. Also returns a two item list containing results of Breusch-Pagan test.
Edmund R Glass, Edmund.Glass@gmail.com
https://github.com/ERGlass/lrcde.dev
1 2 3 4 | ## Not run:
do.dual.decon(het.sub.obs, cell.props, groups, medCntr = FALSE, stdz = FALSE, nonNeg =TRUE)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.