add_back_covariates: Add back covariate effects to batch-corrected feature...

View source: R/helpers_adjust_batch.R

add_back_covariatesR Documentation

Add back covariate effects to batch-corrected feature abundance data

Description

Add back covariate effects to batch-corrected feature abundance data

Usage

add_back_covariates(adj_data, l_stand_feature, l_ind)

Arguments

adj_data

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

l_stand_feature

list of per-feature standardization fits, as returned by fit_stand_feature.

l_ind

list of indicator matrices, as returned by construct_ind.

Value

feature-by-sample matrix of batch-adjusted feature abundances with covariate effects retained.


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