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
If single peak has multiple metabolite IDs in M_ID, split by "," or ";".
binary label matrix of metabolite IDs in metabolite sets
1 2 3
## 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