printGraph-methods: Visualisation functions

Description Usage Arguments Details Author(s) See Also Examples

Description

Functions to plot the subgraphs induced by the most significant GO terms

Usage

1
2
3
4
5
6
7
showSigOfNodes(GOdata, termsP.value, firstSigNodes = 10, reverse = TRUE,
               sigForAll = TRUE, wantedNodes = NULL, putWN = TRUE,
               putCL = 0, type = NULL, showEdges = TRUE,  swPlot = TRUE,
               useFullNames = TRUE, oldSigNodes = NULL, useInfo = c("none", "pval", "counts", "def", "np", "all")[1],
               plotFunction = GOplot, .NO.CHAR = 20)

printGraph(object, result, firstSigNodes, refResult, ...)

Arguments

object

an object of class topONTdata.

result

an object of class topGOresult.

firstSigNodes

the number of top scoring GO terms which ....

refResult

an object of class topGOresult.

useInfo

aditional info to be ploted to each node.

GOdata

an object of class topONTdata.

termsP.value

named vector of p-values.

reverse

the direction of the edges.

sigForAll

if TRUE the score/p-value of all nodes in the DAG is shown, otherwise only the score for the sigNodes

wantedNodes

the nodes that we want to find, we will plot this nodes with a different color. The vector contains the names of the nodes

putWN

the graph is generated with using the firstSigNodes and the wantedNodes.

putCL

we generate the graph from the nodes given by all previous parameters, plus their children. if putCL = 1 than only the children are added, if putCL = n we get the nodes form the next n levels.

type

used for ploting pie charts

showEdges

if TRUE the edge are shown

swPlot

if true the graph is ploted, if not no ploting is done.

oldSigNodes

used to plot the (new) sigNodes in the same collor range as the old ones

useFullNames

argument for internal use ..

plotFunction

argument for internal use ..

.NO.CHAR

argument for internal use ..

...

Extra arguments for printGraph can be: fn.prefix character string giving the file name prefix. useInfo as in showSigOfNodes function. pdfSW logical attribute switch between PDF or PS formats.

Details

There are two functions available. The showSigOfNodes will plot the induced subgraph to the current graphic device. The printGraph is a warping function for showSigOfNodes and will save the resulting graph into a PDF or PS file.

In the plots, the significant nodes are represented as rectangles. The plotted graph is the upper induced graph generated by these significant nodes.

Author(s)

Adrian Alexa

See Also

groupStats-class, getSigGroups-methods

Examples

1
2
3
4
5
6
7
data(ONTdata)
require('topOnto.HDO.db')
showSigOfNodes(GOdata, score(resultFis), firstSigNodes = 5, useInfo = 'all')
## Not run: 
printGraph(GOdata, resultFis, firstSigNodes = 5, fn.prefix = "sampleFile", useInfo = "all", pdfSW = TRUE)

## End(Not run)

hxin/topOnto documentation built on May 17, 2019, 9:15 p.m.