knitr::opts_chunk$set( collapse = TRUE, comment = "#>", out.width = "100%" )
library(metPath)
library(metPath) library(tidyverse)
data("kegg_hsa_pathway", package = "metPath") kegg_hsa_pathway
get_pathway_class(kegg_hsa_pathway)
We use the demo compound list from metPath
.
data("query_id_kegg", package = "metPath") query_id_kegg
Remove the disease pathways:
remain_idx = kegg_hsa_pathway@pathway_class %>% unlist() %>% stringr::str_detect("Disease") %>% `!`() %>% which() pathway_database = filter_pathway(object = kegg_hsa_pathway, remain_idx = remain_idx)
result = enrich_kegg(query_id = query_id_kegg, query_type = "compound", id_type = "KEGG", pathway_database = pathway_database, p_cutoff = 0.05, p_adjust_method = "BH", threads = 3)
Check the result:
result
enrich_bar_plot(object = result)
enrich_scatter_plot(object = result)
enrich_network(object = result)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.