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

Description Usage Arguments Value

View source: R/helpers_adjust_batch.R

Description

Add back covariate effects to batch-corrected feature abundance data

Usage

1
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.


MMUPHin documentation built on April 9, 2021, 6:01 p.m.