setlabel: Generate binary label matrix of metabolite set

setlabelR Documentation

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)

Arguments

M_ID

detected metabolites

M

list of metabolite set and metabolite names

Details

If single peak has multiple metabolite IDs in M_ID, split by "," or ";".

Value

binary label matrix of metabolite names in metabolite sets

Author(s)

Hiroyuki Yamamoto

Examples

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

mseapca documentation built on Nov. 4, 2023, 5:06 p.m.