back_transform_abd: Transform batch adjusted feature abundances back to the...

View source: R/helpers_adjust_batch.R

back_transform_abdR Documentation

Transform batch adjusted feature abundances back to the original scale in feature_abd

Description

Transform batch adjusted feature abundances back to the original scale in feature_abd

Usage

back_transform_abd(adj_data, feature_abd, type_feature_abd)

Arguments

adj_data

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

feature_abd

original feature-by-sample matrix of abundances (proportions or counts).

type_feature_abd

type of feature abundance table (counts or proportions). If counts, the final output will be rounded into counts as well.

Value

feature-by-sample matrix of batch-adjusted feature abundances, with covariate effects retained and scales consistent with original abundance matrix.


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