setlabel: Generate binary label matrix of metabolite set
Description
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.
Usage
setlabel(M_ID, M)
Value
binary label matrix of metabolite names in metabolite sets
Arguments
M_ID
detected metabolites
M
list of metabolite set and metabolite names
Author
Hiroyuki Yamamoto
Details
If single peak has multiple metabolite IDs in M_ID, split by "," or ";".