Description Usage Arguments Details Value Author(s) See Also Examples
format mesh results into data.tree
structure. Mesh results are from enrichment, overrepresentation and worldcloud analysis.
1 | createMeshTree(meshtable,fntype)
|
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. |
data.tree
is used to convert mesh results to mesh tree structure. The tree can be plotted by d3js on GUI.
list of mesh tree from data.tree
Kwanjeera W kwanich@ucdavis.edu
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.