Description Usage Arguments Value Author(s)
do_impute
get the posterior mean and variance for the imputed values and factors given the parameters, which can be returned from SIMPLE or SIMPLE_B.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
dat |
scRNASeq data matrix. Each row is a gene, each column is a cell. |
Y |
Initial imputed data, output from SIMPLE_B or SIMPLE. |
beta |
Factor loadings, output from SIMPLE_B or SIMPLE. |
lambda |
Variances of factors for each cluster, output from SIMPLE_B or SIMPLE. |
sigma |
Variances of idiosyncratic noises for each cluster, output from SIMPLE_B or SIMPLE. |
mu |
Mean expression for each cluster, output from SIMPLE_B or SIMPLE. |
pi |
Probabilites of cells belong to each cluster, output from SIMPLE_B or SIMPLE. |
pos_mean |
Gene mean. If centerized each gene before estimating the parameters, provide the overall mean of gene expression removed from the data matrix, output from SIMPLE_B or SIMPLE. Default is NULL. |
pos_sd |
Gene standard deviation. If scaled each gene before estimating the parameters, provide the overall standard deviation of gene expression removed from the data matrix, output from SIMPLE_B or SIMPLE. Default is NULL. Default is NULL. |
do_impute
returns a list of imputation results in the following order.
loglikThe log-likelihood of the imputed gene expression at each iteration.
imptA matrix contains the expectation of imputed expression.
impt_varA matrix contains the variance of each imputed entry.
EFPosterior means of factors
varFPosterior covariance matrix of factors
consensus_clusterScore for the clustering stability of each cell by multiple imputations.
Zhirui Hu, zhiruihu@g.harvard.edu
Songpeng Zu, songpengzu@g.harvard.edu
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.