relocate_scale: Relocate and scale feature abundances to correct for batch...

View source: R/helpers_adjust_batch.R

relocate_scaleR Documentation

Relocate and scale feature abundances to correct for batch effects, given shrinked per-batch location and scale parameters

Description

Relocate and scale feature abundances to correct for batch effects, given shrinked per-batch location and scale parameters

Usage

relocate_scale(s_data, l_params_shrink, batchmod, n_batch, l_ind)

Arguments

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.

Value

feature-by-sample matrix of batch-adjusted feature abundances (but without covariate effects).


biobakery/MMUPHin documentation built on March 30, 2024, 4:50 a.m.