Learn R Programming

categoryCompare (version 1.16.2)

breakEdges-methods: Methods for Function breakEdges in Package categoryCompare

Description

Methods for function breakEdges in package categoryCompare

Arguments

Methods

signature(cwObject = "ccCompareResult", cutoff = "numeric")
Allows one to remove edges in the ccCompareResult mainGraph slot prior to passing it into Cytoscape for visualization. Given that the number of edges can be rather large (especially for Gene Ontology) this can easily speed up the transfer, without actually losing any information.
signature(cwObject = "CytoscapeWindowClass", cutoff = "numeric")
Once an annotation graph is in Cytoscape, remove edges above or below the cutoff. Note that this does not affect the original graph in the ccCompareResult object.

See Also

CytoscapeWindowClass breakEdges ccCompareResult ccOutCyt

Examples

Run this code
data(ccData)

# breaking the edges in a ccCompareResult
ccResults$BP <- breakEdges(ccResults$BP, 0.8)
## Not run: 
# hasCy <- (if (.Platform$OS.type %in% "windows") { (length(grep("Cytoscape", system("tasklist", intern=TRUE))) > 0)})
# 
# if hasCy {
# 	
# 	cwObj <- ccOutCyt(ccResults$BP,ccOpts)
# 	# now breaking them in the CytoscapeWindow object
# 	breakEdges(cwObj, 0.85)
# 	Sys.sleep(10)
# 	RCytoscape::deleteWindow(cwObj)
# 	}
# ## End(Not run)

Run the code above in your browser using DataLab