do_metabowas {MiMIR}R Documentation

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
)

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

Value

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


[Package MiMIR version 1.5 Index]