Pathway enrichment for metabolomics.
The vector of query IDs.
"compound" or "gene"
HMDB
KEGG or other metabolomics pathway database.
only_primary_pathway
p_cutoff
p_adjust_method
Hypergeometric or fisher test.
threads
The MSE analysis result.
if (FALSE) {
data("hmdb_pathway")
data("query_id_hmdb")
pathway_database =
filter_pathway(object = hmdb_pathway, class = "Metabolic;primary_pathway")
hmdb_enrichment =
enrich_hmdb(
query_id = query_id_hmdb,
query_type = "compound",
id_type = "HMDB",
pathway_database = pathway_database,
only_primary_pathway = TRUE,
p_cutoff = 0.05,
p_adjust_method = "BH",
method = "hypergeometric",
threads = 5
)
hmdb_enrichment
}