do_metabowas function

Helper function to compute MetaboWASs

Helper function to compute MetaboWASs

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.

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

Returns

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

  • Maintainer: Daniele Bizzarri
  • License: GPL-3
  • Last published: 2024-02-01

Useful links