Learn R Programming

mseapca (version 2.0.3)

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 ";".

Examples

Run this code
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

Run the code above in your browser using DataLab