View source: R/helpers_adjust_batch.R
standardize_feature | R Documentation |
Centralize (by design matrix) and standardize (by pooled variance across all batches) feature abundances for empirical Bayes fit
standardize_feature(y, i_design, n_batch)
y |
vector of non-zero abundance of a single feature (if zero-inflated is true). |
i_design |
design matrix for the feature; samples with zeros are taken out (if zero-inflated is true). |
n_batch |
number of batches in the data. |
a list with component: y_stand for vector of centralized and standardized feature abundance, and stand_mean/varpooled for the location and scale factor (these are used later to back transform the batch-shrinked feature abundance).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.