Gatekeeper discovery

getgk(meta, expo, cutoff = 0.9, multiple = FALSE, ...)

Arguments

meta

metabolites dataframe with row as metabolites/peaks and column as samples

expo

exposures dataframe with row as exposures/peaks and column as samples

cutoff

correlation coefficient cutoff for metabolites-metabolites network

multiple

logical, only output gatekeeper with multiple exposures

...

other parameters for `cor`

Value

list with table of metabolites-exposures, metabolites-exposures network clusters data and edge table

Examples

data(expo)
data(meta)
gk <- getgk(exp(meta),expo)
#> 9 metabolites correlation network clusters found
#> 155 out of 177 metabolites have no correlation with other metabolites
#> 18 peaks were involved.
#> 14 peaks could be gatekeepers.