setlabel: Generate binary label matrix of metabolite set
This function generates binary label matrix of metabolite IDs 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.
metabolite IDs of detected metabolites in data
list of metabolite set name and metabolite IDs
binary label matrix of metabolite IDs in metabolite sets
If single peak has multiple metabolite IDs in M_ID, split by "," or ";".
## M_ID : metabolite IDs, M : metabolite set list
# L <- setlabel(M_ID,M) # binary label matrix
# colSums(L) # the number of metabolites in each metabolite set