Learn R Programming

mseapca (version 2.2.1)

ora_det: ORA using detected metabolites

Description

This function performs metabolite set enrichment analysis using over-representation analysis (ORA) under the assumption that only detected metabolites are used as the background. A one-sided Fisher's exact test is applied to each metabolite set.

Usage

ora_det(SIG, DET, M)

Value

A list containing:

  • Result of MSEA(ORA): A matrix with raw p-values and adjusted q-values (BH correction) for each metabolite set.

  • significant metabolites: A list of significant metabolites overlapping with each metabolite set.

  • Contingency tables: A list of 2×2 contingency tables used in Fisher's exact tests.

Arguments

SIG

Character vector of significant metabolites

DET

Character vector of detected metabolites (background set)

M

A named list, where each element is a metabolite set (e.g., pathway) containing character vectors of metabolites

Author

Hiroyuki Yamamoto

References

Yamamoto H, Fujimori T, Sato H, Ishikawa G, Kami K, Ohashi Y, Statistical hypothesis testing of factor loading in principal component analysis and its application to metabolite set enrichment analysis. BMC Bioinformatics, (2014) 15(1):51.

Yamamoto H. Probabilistic Over-Representation Analysis for Metabolite Set Enrichment Analysis Considering Undetected Metabolites", Jxiv, (2024).

Examples

Run this code
# Example: Metabolome data
data(fasting_mseapca)

SIG <- fasting_mseapca$SIG
DET <- fasting_mseapca$DET
M <- fasting_mseapca$pathway

# Perform ORA using detected metabolites only
B <- ora_det(SIG, DET, M)
B$`Result of MSEA(ORA)`

Run the code above in your browser using DataLab