compute_posterior.eSVD | R Documentation |
The posterior is computed based on whatever input_obj$latest_Fit
is set to.
## S3 method for class 'eSVD'
compute_posterior(
input_obj,
alpha_max = 1000,
bool_adjust_covariates = F,
bool_covariates_as_library = T,
bool_return_components = F,
bool_stabilize_underdispersion = T,
library_min = 0.1,
nuisance_lower_quantile = 0.01,
pseudocount = 0,
...
)
input_obj |
|
alpha_max |
Maximum value of numerator when computing posterior, default is |
bool_adjust_covariates |
Boolean to adjust the numerator in the posterior by the donor covariates, default is |
bool_covariates_as_library |
Boolean to include the donor covariates effects in the adjusted library size, default is |
bool_return_components |
Boolean to return the numerator and denominator of the posterior terms as well (which will themselves by matrices that are cell-by-gene matrices), default is |
bool_stabilize_underdispersion |
Boolean to stabilize the over-dispersion parameter, specifically to rescale all the over-dispersions the global mean over-disperion is less than 1, default is |
library_min |
All covariate-adjusted library size smaller than this value are set to this value, default is 0.1. |
nuisance_lower_quantile |
All the nuisance values that are smaller than this quantile are set to this quantile, default is 0.01 |
pseudocount |
The additional count that is added to the count matrix, default is 0. |
... |
Additional parameters. |
eSVD
object with posterior_mean_mat
and posterior_var_mat
appended to the list in
input_obj[[input_obj[["latest_Fit"]]]]
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.