Learn R Programming

MiMIR (version 1.5)

do_metabowas: Helper function to compute MetaboWASs

Description

This helper function is called when doing Metabolites wide association analysis. It reports the results of linear regression models to study the association of a test variable to each metabolites individually and corrected for the covariates indicated.

Usage

do_metabowas(
  phen,
  dat,
  test_variable = "age",
  covariates = c("sex"),
  adj_method = "BH",
  quiet = TRUE
)

Value

results= the results of the MetaboWAS (estimate, tstatistics, pvalue, BH corrected pvalue)

Arguments

phen

phenotypes data.frame

dat

metabolites data.frame

test_variable

the variable to be investigated

covariates

the covariates that you want to add

adj_method

correction method.

quiet

if FALSE it will plot the amount of people avaialble