createMeshTree: Create Mesh tree

Description Usage Arguments Details Value Author(s) See Also Examples

Description

format mesh results into data.tree structure. Mesh results are from enrichment, overrepresentation and worldcloud analysis.

Usage

1
createMeshTree(meshtable,fntype)

Arguments

meshtable

data frame of mesh results or list of data frame of nodes, edges, mesh results. The mesh results contain with the following columns: id, Tree, MeshName, member, p_adj (for enrichment and overrepresentation)or freq (for wordcloud).

fntype

a string specifying a method calculating mesh results. It can be one of wordcloud, overrep, enrichment.

toprank

a numeric number specifying the top rank of mesh results. Default is 50.

Details

data.tree is used to convert mesh results to mesh tree structure. The tree can be plotted by d3js on GUI.

Value

list of mesh tree from data.tree

Author(s)

Kwanjeera W kwanich@ucdavis.edu

See Also

data.tree, https://d3js.org/

Examples

1
2
3
4
5
#txtinput <- c(1110,10413,196,51,311,43,764,790) #compute overrepresented terms for given pubchem compounds
#nodeoverr <- computeNodeOverrep(txtinput=txtinput, nodetype="compound", annotation="mesh", internalid=FALSE)
nodeoverr = merge(nodeoverr$overrepresentation,MESH,by.x='id',by.y='MeshId')
#result = createMeshTree(nodeoverr, fntype="overrep")
#jsonlite::toJSON(result)

kwanjeeraw/metabox documentation built on May 20, 2019, 7:07 p.m.