eigenMetabolites: Calculate eigenmetabolites as representatives

Description Usage Arguments Value References Examples

View source: R/eigenMetabolites.R

Description

Calculate eigenmetabolites as representatives

Usage

1
eigenMetabolites(data, group = NULL, method = "PCA")

Arguments

data

a data.table containing the data, where columns correspond to variables and rows to observations.

group

A list containing the grouping (e.g. pathways) of the variables. If this is NULL all variables will be treated as they were in the same group and only one representation will be calculated

method

the method for calculating eigenmetabolites. Currently PCA and SVD are supported.

Value

list of two, M: data.table of eigenscores, expvar: full lists of explained variances

References

\insertRef

Langfelder2007MoDentify

Examples

1
2
3
4
5
6
7
data(qmdiab.data)
data(qmdiab.annos)

eigen.data <- eigenMetabolites(
  data = qmdiab.data,
  group = qmdiab.annos$Sub.pathway, method = "PCA"
)

krumsieklab/MoDentify documentation built on March 24, 2021, 9:01 p.m.