Learn R Programming

MetChem (version 0.5)

features: Cluster features extraction

Description

This function finds features associated with each cluster.

Usage

features(doc,cla,cl,HMDB_ID)

Value

A list of p-value calculated using Fisher test for cluster associted features.

Arguments

doc

The output of the readMet function.

cla

The output of diseasesMet, enzymesMet, pathwaysMet, propertiesMet, substituentsMet, or taxonomyMet functions.

cl

The output of the allbranches function containing the module memberships.

HMDB_ID

A vector of HMDB IDs associated with their chemical name.

See Also

KODAMA.chem.sim, tree.cutting, substituentsMet

Examples

Run this code
# \donttest{
data(Metabolites)
SMILES=Metabolites$SMILES
names(SMILES)=Metabolites$name
HMDB=Metabolites$HMDB
names(HMDB)=Metabolites$name
res=KODAMA.chem.sim(SMILES)
cl=allbranches(res$hclust)
cla=substituentsMet(Metabolites$readMet)
f=features(Metabolites$readMet,cla,cl,HMDB)
# }

Run the code above in your browser using DataLab