View source: R/deconv_em_func.r
mind | R Documentation |
It calculates the empirical Bayes estimates of subject- and cell-type-specific gene expression, via a computationally efficient EM algorithm.
mind(X, W, maxIter = 100, tol = 0.001, verbose = F, ncore = 4)
X |
bulk gene expression (gene x subject x measure). |
W |
subject-specific cell type fraction (subject x measure x cell type). |
maxIter |
maximum number of iterations for the EM algorithm. |
tol |
tolerance level of absolute relative change of the log-likelihood to stop the EM algorithm. |
verbose |
logical, to print the detailed information for each iteration: iter (the iteration number), logLike_change, sigma2_e, mean(diag(Sigma_c))). |
ncore |
number of cores to run in parallel |
A list containing the output of the EM deconvolution algorithm
A |
the deconvolved cell-type-specific gene expression (gene x cell type x subject). |
mu |
the estimated profile matrix (gene x cell type). |
iter |
the number of iterations used in the EM algorithm. |
Sigma_c |
the covariance matrix for the deconvolved cell-type-specific expression (cell type x cell type). |
sigma2_e |
the error variance. |
loglike |
the log-likelihood for each EM iteration. |
var_A |
the posterior covariance matrix for A (vectorized covariance matrix by subject). |
Wang, Jiebiao, Bernie Devlin, and Kathryn Roeder. "Using multiple measurements of tissue to estimate subject-and cell-type-specific gene expression." Bioinformatics 36.3 (2020): 782-788. https://doi.org/10.1093/bioinformatics/btz619
data(example)
deconv = mind(X = example$X, W = example$W, ncore = 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.