View source: R/pathbank2list.R
pathbank2list | R Documentation |
This function generates metabolite set list of PathBank database by referencing the AHPathbankDbs Bioconductor package.
pathbank2list(tbl_pathbank, subject, id)
tbl_pathbank |
tibble from AHPathbankDbs |
subject |
Pathway subject (Metabolic, Disease, etc.) in tibble |
id |
database ID (HMDB ID, Uniprot ID, etc.) used for analysis |
AHPathbankDbs needs to be installed separately.
list of metabolite or protein set
Hiroyuki Yamamoto
## PathBank
#library(AnnotationHub)
#ah <- AnnotationHub()
#qr <- query(ah, c("pathbank", "Homo sapiens"))
##tbl_pathbank <- qr[[1]] # metabolomics
#tbl_pathbank <- qr[[2]] # proteomics
#ids <- names(tbl_pathbank)[-c(1:4)]
#id <- ids[1] # Uniprot ID
#subs <- unique(tbl_pathbank$`Pathway Subject`)
#subject <- subs[6] # Protein
# M <- pathbank2list(tbl_pathbank, subject, id)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.