correct_pool: Correct Pool

correct_poolR Documentation

Correct Pool

Description

Subtracts the top principal components from a matrix of proteins x metabolites

Usage

correct_pool(pool_data, npcs = 3)

Arguments

pool_data

tibble containing protein, metabolite, and log2_abundance

npcs

number of principal components to subtract

Value

a list containing:

pool_log2_matrix

A matrix of uncorrected abundances

scree_data

Percent variance explained for each PC

top_pc_fit

Projection onto top principal components

log2_pc_projection

pool_log2_matrix - top_pc_fit

log2_pc_projection_tbl

tibble of log2_pc_projection


KevinGHicks/MIDAS documentation built on May 12, 2022, 8:14 a.m.