breakEdges-methods | R Documentation |
breakEdges
in Package categoryCompare Methods for function breakEdges
in package categoryCompare
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 = "numeric", 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.
Robert M Flight
breakEdges
ccCompareResult
ccOutCyt
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)
RCy3::deleteWindow(cwObj)
}
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.