setlabel | R Documentation |
This function generates binary label matrix of metabolite names and metabolite sets. This is mainly used to be called by other functions, and used to count the number of metabolites in a specific metabolite set.
setlabel(M_ID, M)
M_ID |
detected metabolites |
M |
list of metabolite set and metabolite names |
If single peak has multiple metabolite IDs in M_ID, split by "," or ";".
binary label matrix of metabolite names in metabolite sets
Hiroyuki Yamamoto
data(fasting)
data(pathway)
M_ID <- colnames(fasting$X) # detected metabolites
M <- pathway$fasting # metabolite set list
L <- setlabel(M_ID,M) # binary label matrix
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.