relocate_scale {MMUPHin} | R Documentation |
Relocate and scale feature abundances to correct for batch effects, given shrinked per-batch location and scale parameters
relocate_scale(s_data, l_params_shrink, batchmod, n_batch, l_ind)
s_data |
feature-by-sample matrix of standardized abundances. |
l_params_shrink |
list of shrinked parameters, as returned by fit_shrink. |
batchmod |
design matrix for batch variables. |
n_batch |
number of batches in the data. |
l_ind |
list of indicator matrices, as returned by construct_ind. |
feature-by-sample matrix of batch-adjusted feature abundances (but without covariate effects).