Title: | Functions to Access and Control Cytoscape |
---|---|
Description: | Vizualize, analyze and explore networks using Cytoscape via R. Anything you can do using the graphical user interface of Cytoscape, you can now do with a single RCy3 function. |
Authors: | Alex Pico [aut, cre] , Tanja Muetze [aut], Paul Shannon [aut], Ruth Isserlin [ctb], Shraddha Pai [ctb], Julia Gustavsen [ctb], Georgi Kolishovski [ctb], Yihang Xin [ctb] |
Maintainer: | Alex Pico <[email protected]> |
License: | MIT + file LICENSE |
Version: | 2.27.0 |
Built: | 2024-11-19 04:10:53 UTC |
Source: | https://github.com/bioc/RCy3 |
Show network view in notebook output.
.exportShowImage( exportFirst, filename = "image", type = "PNG", resolution = NULL, units = NULL, height = NULL, width = NULL, zoom = NULL, sandboxName = NULL, network = NULL, base.url = .defaultBaseUrl, overwriteFile = TRUE )
.exportShowImage( exportFirst, filename = "image", type = "PNG", resolution = NULL, units = NULL, height = NULL, width = NULL, zoom = NULL, sandboxName = NULL, network = NULL, base.url = .defaultBaseUrl, overwriteFile = TRUE )
exportFirst |
FALSE for notebookShowImage, TRUE for notebookExportShowImage. |
filename |
( |
type |
( |
resolution |
( |
units |
( |
height |
( |
width |
( |
zoom |
( |
sandboxName |
Name of sandbox containing file. None means "the current sandbox". |
network |
(optional) Name or SUID of a network or view. Default is the "current" network active in Cytoscape. The first (presummably only) view associated a network is used if a specific view SUID is not provided. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
overwriteFile |
(optional) FALSE allows Cytoscape show a message box before overwriting the file if the file already exists; TRUE allows Cytoscape to overwrite it without asking. Default value is TRUE. |
Show network view in notebook output.
display image
.exportShowImage()
.exportShowImage()
.getDefaultSandbox
.getDefaultSandbox(base.url = .defaultBaseUrl)
.getDefaultSandbox(base.url = .defaultBaseUrl)
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
None
.getDefaultSandbox()
.getDefaultSandbox()
.getRequester
.getRequester(base.url = .defaultBaseUrl)
.getRequester(base.url = .defaultBaseUrl)
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
None
.getRequester()
.getRequester()
Adds a bounded text annotation to a Cytoscape network view. The object will also be added to the Annotation Panel in the GUI.
addAnnotationBoundedText( text = NULL, x.pos = NULL, y.pos = NULL, fontSize = NULL, fontFamily = NULL, fontStyle = NULL, color = NULL, angle = NULL, type = NULL, customShape = NULL, fillColor = NULL, opacity = NULL, borderThickness = NULL, borderColor = NULL, borderOpacity = NULL, height = NULL, width = NULL, name = NULL, canvas = NULL, z.order = NULL, network = NULL, base.url = .defaultBaseUrl )
addAnnotationBoundedText( text = NULL, x.pos = NULL, y.pos = NULL, fontSize = NULL, fontFamily = NULL, fontStyle = NULL, color = NULL, angle = NULL, type = NULL, customShape = NULL, fillColor = NULL, opacity = NULL, borderThickness = NULL, borderColor = NULL, borderOpacity = NULL, height = NULL, width = NULL, name = NULL, canvas = NULL, z.order = NULL, network = NULL, base.url = .defaultBaseUrl )
text |
The text to be displayed |
x.pos |
(optional) X position in pixels from left; default is center of current view |
y.pos |
(optional) Y position in pixels from top; default is center of current view |
fontSize |
(optional) Numeric value; default is 12 |
fontFamily |
(optional) Font family; default is Arial |
fontStyle |
(optional) Font style; default is |
color |
(optional) Hexidecimal color; default is #000000 (black) |
angle |
(optional) Angle of text orientation; default is 0.0 (horizontal) |
type |
(optional) The type of the shape, default is RECTANGLE. See getNodeShapes() for valid options. |
customShape |
(optional) If a custom shape, this is the text of the shape |
fillColor |
(optional) Hexidecimal color; default is #000000 (black) |
opacity |
(optional) Opacity of fill color. Must be an integer between 0 and 100; default is 100. |
borderThickness |
(optional) Integer |
borderColor |
(optional) Hexidecimal color; default is #000000 (black) |
borderOpacity |
(optional) Integer between 0 and 100; default is 100. |
height |
(optional) Height of bounding shape; default is based on text height. |
width |
(optional) Width of bounding shape; default is based on text length. |
name |
(optional) Name of annotation object; default is "Text" |
canvas |
(optional) Canvas to display annotation, i.e., foreground (default) or background |
z.order |
(optional) Arrangement order specified by number (larger values are in front of smaller values); default is 0 |
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
A named list of annotation properties, including UUID
addAnnotationBoundedText("test1") addAnnotationBoundedText("test2", 1000, 1000, name="B2") addAnnotationBoundedText("test3", 1200, 1000, 30, "Helvetica", "bold", "#990000", 40,name="B3", canvas="foreground",z=4)
addAnnotationBoundedText("test1") addAnnotationBoundedText("test2", 1000, 1000, name="B2") addAnnotationBoundedText("test3", 1200, 1000, 30, "Helvetica", "bold", "#990000", 40,name="B3", canvas="foreground",z=4)
Adds a Image annotation to a Cytoscape network view. The object will also be added to the Annotation Panel in the GUI.
addAnnotationImage( url = NULL, x.pos = NULL, y.pos = NULL, angle = NULL, opacity = NULL, brightness = NULL, contrast = NULL, borderThickness = NULL, borderColor = NULL, borderOpacity = NULL, height = NULL, width = NULL, name = NULL, canvas = NULL, z.order = NULL, network = NULL, base.url = .defaultBaseUrl )
addAnnotationImage( url = NULL, x.pos = NULL, y.pos = NULL, angle = NULL, opacity = NULL, brightness = NULL, contrast = NULL, borderThickness = NULL, borderColor = NULL, borderOpacity = NULL, height = NULL, width = NULL, name = NULL, canvas = NULL, z.order = NULL, network = NULL, base.url = .defaultBaseUrl )
url |
URL or path to image file. File paths can be absolute or relative to current working directory. URLs must start with http:// or https://. |
x.pos |
(optional) X position in pixels from left; default is center of current view |
y.pos |
(optional) Y position in pixels from top; default is center of current view |
angle |
(optional) Angle of text orientation; default is 0.0 (horizontal) |
opacity |
(optional) Opacity of fill color. Must be an integer between 0 and 100; default is 100. |
brightness |
(optional) Image brightness. Must be an integer between -100 and 100; default is 0 |
contrast |
(optional) Image contrast. Must be an integer between -100 and 100; default is 0 |
borderThickness |
(optional) Integer |
borderColor |
(optional) Hexidecimal color; default is #000000 (black) |
borderOpacity |
(optional) Integer between 0 and 100; default is 100. |
height |
(optional) Height of image; default is based on text height. |
width |
(optional) Width of image; default is based on text length. |
name |
(optional) Name of annotation object; default is "Image" |
canvas |
(optional) Canvas to display annotation, i.e., foreground (default) or background |
z.order |
(optional) Arrangement order specified by number (larger values are in front of smaller values); default is 0 |
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
A named list of annotation properties, including UUID
addAnnotationImage("image.png") addAnnotationImage("/Users/janedoe/Desktop/image.png", 1000, 1000, name="I2") addAnnotationImage("https://www.example.com/image.png", 1200, 1000, 30, 40, name="I3", canvas="background",z=4)
addAnnotationImage("image.png") addAnnotationImage("/Users/janedoe/Desktop/image.png", 1000, 1000, name="I2") addAnnotationImage("https://www.example.com/image.png", 1200, 1000, 30, 40, name="I3", canvas="background",z=4)
Adds a shape annotation to a Cytoscape network view. The object will also be added to the Annotation Panel in the GUI.
addAnnotationShape( type = NULL, customShape = NULL, x.pos = NULL, y.pos = NULL, angle = NULL, fillColor = NULL, opacity = NULL, borderThickness = NULL, borderColor = NULL, borderOpacity = NULL, height = NULL, width = NULL, name = NULL, canvas = NULL, z.order = NULL, network = NULL, base.url = .defaultBaseUrl )
addAnnotationShape( type = NULL, customShape = NULL, x.pos = NULL, y.pos = NULL, angle = NULL, fillColor = NULL, opacity = NULL, borderThickness = NULL, borderColor = NULL, borderOpacity = NULL, height = NULL, width = NULL, name = NULL, canvas = NULL, z.order = NULL, network = NULL, base.url = .defaultBaseUrl )
type |
(optional) The type of the shape, default is RECTANGLE. See getNodeShapes() for valid options. |
customShape |
(optional) If a custom shape, this is the text of the shape |
x.pos |
(optional) X position in pixels from left; default is center of current view |
y.pos |
(optional) Y position in pixels from top; default is center of current view |
angle |
(optional) Angle of text orientation; default is 0.0 (horizontal) |
fillColor |
(optional) Hexidecimal color; default is #000000 (black) |
opacity |
(optional) Opacity of fill color. Must be an integer between 0 and 100; default is 100. |
borderThickness |
(optional) Integer |
borderColor |
(optional) Hexidecimal color; default is #000000 (black) |
borderOpacity |
(optional) Integer between 0 and 100; default is 100. |
height |
(optional) Height of shape; default is based on text height. |
width |
(optional) Width of shape; default is based on text length. |
name |
(optional) Name of annotation object; default is "Shape" |
canvas |
(optional) Canvas to display annotation, i.e., foreground (default) or background |
z.order |
(optional) Arrangement order specified by number (larger values are in front of smaller values); default is 0 |
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
A named list of annotation properties, including UUID
addAnnotationShape("rectangle") addAnnotationShape("rectangle", 1000, 1000, name="S2") addAnnotationShape("rectangle", 1200, 1000, 30, "#990000", 40,name="S3", canvas="background",z=4)
addAnnotationShape("rectangle") addAnnotationShape("rectangle", 1000, 1000, name="S2") addAnnotationShape("rectangle", 1200, 1000, 30, "#990000", 40,name="S3", canvas="background",z=4)
Adds a text annotation to a Cytoscape network view. The object will also be added to the Annotation Panel in the GUI.
addAnnotationText( text = NULL, x.pos = NULL, y.pos = NULL, fontSize = NULL, fontFamily = NULL, fontStyle = NULL, color = NULL, angle = NULL, name = NULL, canvas = NULL, z.order = NULL, network = NULL, base.url = .defaultBaseUrl )
addAnnotationText( text = NULL, x.pos = NULL, y.pos = NULL, fontSize = NULL, fontFamily = NULL, fontStyle = NULL, color = NULL, angle = NULL, name = NULL, canvas = NULL, z.order = NULL, network = NULL, base.url = .defaultBaseUrl )
text |
The text to be displayed |
x.pos |
(optional) X position in pixels from left; default is center of current view |
y.pos |
(optional) Y position in pixels from top; default is center of current view |
fontSize |
(optional) Numeric value; default is 12 |
fontFamily |
(optional) Font family; default is Arial |
fontStyle |
(optional) Font style; default is |
color |
(optional) Hexidecimal color; default is #000000 (black) |
angle |
(optional) Angle of text orientation; default is 0.0 (horizontal) |
name |
(optional) Name of annotation object; default is "Text" |
canvas |
(optional) Canvas to display annotation, i.e., foreground (default) or background |
z.order |
(optional) Arrangement order specified by number (larger values are in front of smaller values); default is 0 |
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
A named list of annotation properties, including UUID
addAnnotationText("test1") addAnnotationText("test2", 1000, 1000, name="T2") addAnnotationText("test3", 1200, 1000, 30, "Helvetica", "bold", "#990000", 40,name="T3", canvas="foreground",z=4)
addAnnotationText("test1") addAnnotationText("test2", 1000, 1000, name="T2") addAnnotationText("test3", 1200, 1000, 30, "Helvetica", "bold", "#990000", 40,name="T3", canvas="foreground",z=4)
Add one or more edges to a Cytoscape network by listing source and target node pairs.
addCyEdges( source.target.list, edgeType = "interacts with", directed = FALSE, network = NULL, base.url = .defaultBaseUrl )
addCyEdges( source.target.list, edgeType = "interacts with", directed = FALSE, network = NULL, base.url = .defaultBaseUrl )
source.target.list |
A |
edgeType |
The type of interaction. Default is 'interacts with'. |
directed |
|
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
A list
of named lists
of SUID, source and target for each edge added.
addCyEdges(c('sourceNode','targetNode')) addCyEdges(list(c('s1','t1'),c('s2','t2')))
addCyEdges(c('sourceNode','targetNode')) addCyEdges(list(c('s1','t1'),c('s2','t2')))
Add one or more nodes to a Cytoscape network.
addCyNodes( node.names, skip.duplicate.names = TRUE, network = NULL, base.url = .defaultBaseUrl )
addCyNodes( node.names, skip.duplicate.names = TRUE, network = NULL, base.url = .defaultBaseUrl )
node.names |
A |
skip.duplicate.names |
Skip adding a node if a node with the same name is already in
the network. If |
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
A list
of named lists
of name and SUID for each node added.
addCyNodes(c('Node A','Node B','Node C'))
addCyNodes(c('Node A','Node B','Node C'))
Adds the specified nodes and edges to the specified group.
AddToGroup( group.name, nodes = NULL, nodes.by.col = "SUID", edges = NULL, edges.by.col = "SUID", network = NULL, base.url = .defaultBaseUrl )
AddToGroup( group.name, nodes = NULL, nodes.by.col = "SUID", edges = NULL, edges.by.col = "SUID", network = NULL, base.url = .defaultBaseUrl )
group.name |
Specifies the name used to identify the group |
nodes |
List of node SUIDs, names, other column values, or keyword: selected, unselected or all. Default is currently selected nodes. |
nodes.by.col |
name of node table column corresponding to provided nodes list. Default is 'SUID'. |
edges |
List of edge SUIDs, names, other column values, or keyword: selected, unselected or all. Default is currently selected edges. |
edges.by.col |
name of edge table column corresponding to provided edges list. Default is 'SUID'. |
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
None
AddToGroup('myGroup')
AddToGroup('myGroup')
Calculate various network statistics.
analyzeNetwork(directed = FALSE, base.url = .defaultBaseUrl)
analyzeNetwork(directed = FALSE, base.url = .defaultBaseUrl)
directed |
(optional) If TRUE, the network is considered a directed graph. Default is FALSE. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
The results are added to the Node and Edge tables and the Results Panel. The summary statistics in the Results Panel are also returned by the function as a list of named values.
Named list of summary statistics
analyzeNetwork() analyzeNetwork(TRUE)
analyzeNetwork() analyzeNetwork(TRUE)
Run an existing filter by supplying the filter name.
applyFilter( filter.name = "Default filter", hide = FALSE, network = NULL, base.url = .defaultBaseUrl )
applyFilter( filter.name = "Default filter", hide = FALSE, network = NULL, base.url = .defaultBaseUrl )
filter.name |
Name of filter to apply. Default is "Default filter". |
hide |
Whether to hide filtered out nodes and edges. Default is FALSE. Ignored if all nodes or edges are filtered out. This is an alternative to filtering for node and edge selection. |
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
Known bug: selection (or hiding) of edges using edge-based column filters does not work. As a workaround, simply repeat the createColumnFilter operation to perform selection (or hiding) of edges.
List of selected nodes and edges.
unhideAll
applyFilter('myFilter') applyFilter('myFilter', hide = TRUE)
applyFilter('myFilter') applyFilter('myFilter', hide = TRUE)
Apply edge bundling to the network specified. Edge bundling is executed with default parameters; optional parameters are not supported.
bundleEdges(network = NULL, base.url = .defaultBaseUrl)
bundleEdges(network = NULL, base.url = .defaultBaseUrl)
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
None
bundleEdges()
bundleEdges()
checkNotebookIsRunning
checkNotebookIsRunning()
checkNotebookIsRunning()
None
checkNotebookIsRunning()
checkNotebookIsRunning()
Determine whether we're running locally or on a remote server. If locally (either via raw R or via a locally installed Notebook), we prefer to connect to Cytoscape over a local socket. If remote, we have to connect over Jupyter-Bridge. Either way, we can determine which by whether Cytoscape answers to a version check. If Cytoscape doesn't answer, we have no information ... and we have to wait until Cytoscape is started and becomes reachable before we can determine local vs remote.
checkRunningRemote(base.url = .defaultBaseUrl)
checkRunningRemote(base.url = .defaultBaseUrl)
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
None
checkRunningRemote()
checkRunningRemote()
Clear all edge bends, e.g., those created from edge bundling.
clearEdgeBends(network = NULL, base.url = .defaultBaseUrl)
clearEdgeBends(network = NULL, base.url = .defaultBaseUrl)
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
None
clearEdgeBends()
clearEdgeBends()
Clear bypass values for any edge property of the specified edges, effectively restoring any previously defined style defaults or mappings.
clearEdgePropertyBypass( edge.names, visual.property, network = NULL, base.url = .defaultBaseUrl )
clearEdgePropertyBypass( edge.names, visual.property, network = NULL, base.url = .defaultBaseUrl )
edge.names |
List of edge names or SUIDs. Pending CyREST updates, if set to 'all', then the property is cleared for all edges. |
visual.property |
Name of a visual property. See getVisualPropertyNames. |
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
None
clearEdgePropertyBypass()
clearEdgePropertyBypass()
Clear the bypass value for center x and y for the network, effectively restoring prior default values.
clearNetworkCenterBypass(network = NULL, base.url = .defaultBaseUrl)
clearNetworkCenterBypass(network = NULL, base.url = .defaultBaseUrl)
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
None
clearNetworkCenterBypass()
clearNetworkCenterBypass()
Clear bypass values for any network property, effectively restoring any previously defined style defaults or mappings.
clearNetworkPropertyBypass( visual.property, network = NULL, base.url = .defaultBaseUrl )
clearNetworkPropertyBypass( visual.property, network = NULL, base.url = .defaultBaseUrl )
visual.property |
Name of a visual property. See getVisualPropertyNames. |
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
None
clearNetworkPropertyBypass()
clearNetworkPropertyBypass()
Clear the bypass value for the scale factor for the network, effectively restoring prior default values.
clearNetworkZoomBypass(network = NULL, base.url = .defaultBaseUrl)
clearNetworkZoomBypass(network = NULL, base.url = .defaultBaseUrl)
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
None
clearNetworkZoomBypass()
clearNetworkZoomBypass()
Clear the bypass value for node fill, label and border opacity for the specified node or nodes, effectively restoring any previously defined style defaults or mappings.
clearNodeOpacityBypass(node.names, network = NULL, base.url = .defaultBaseUrl)
clearNodeOpacityBypass(node.names, network = NULL, base.url = .defaultBaseUrl)
node.names |
List of node names or SUIDs |
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
None
clearNodeOpacityBypass(c('Node 1','Node 2'))
clearNodeOpacityBypass(c('Node 1','Node 2'))
Clear bypass values for any node property of the specified nodes, effectively restoring any previously defined style defaults or mappings.
clearNodePropertyBypass( node.names, visual.property, network = NULL, base.url = .defaultBaseUrl )
clearNodePropertyBypass( node.names, visual.property, network = NULL, base.url = .defaultBaseUrl )
node.names |
List of node names or SUIDs. Pending CyREST updates, if set to 'all', then the property is cleared for all nodes. |
visual.property |
Name of a visual property. See getVisualPropertyNames. |
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
None
clearNodePropertyBypass()
clearNodePropertyBypass()
If any nodes are selected in the network, they will be unselected.
clearSelection(type = "both", network = NULL, base.url = .defaultBaseUrl)
clearSelection(type = "both", network = NULL, base.url = .defaultBaseUrl)
type |
'nodes', 'edges' or 'both' (default) |
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
None
AlexanderPico, Tanja Muetze, Georgi Kolishovski, Paul Shannon
clearSelection()
clearSelection()
Makes a copy of a Cytoscape Network with all of its edges and nodes.
cloneNetwork(network = NULL, base.url = .defaultBaseUrl)
cloneNetwork(network = NULL, base.url = .defaultBaseUrl)
network |
(optional) Name or SUID of the network you want to clone; default is "current" network |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
The suid
of the new network
Alexander Pico, Julia Gustavsen
cloneNetwork("cloned network")
cloneNetwork("cloned network")
Closes the current session in Cytoscape, destroying all unsaved work.
closeSession(save.before.closing, filename = NULL, base.url = .defaultBaseUrl)
closeSession(save.before.closing, filename = NULL, base.url = .defaultBaseUrl)
save.before.closing |
|
filename |
(optional) If |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
A boolean for whether to save before closing is required since you could lose data by closing without saving.
None
closeSession(FALSE) closeSession(TRUE, '/fullpath/mySession') closeSession(TRUE)
closeSession(FALSE) closeSession(TRUE, '/fullpath/mySession') closeSession(TRUE)
Replaces the representation of all of the nodes and edges in a group with a single node.
collapseGroup(groups = NULL, network = NULL, base.url = .defaultBaseUrl)
collapseGroup(groups = NULL, network = NULL, base.url = .defaultBaseUrl)
groups |
(optional) List of group names or keywords: all, selected, unselected. Default is the currently selected group. |
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
None
collapseGroup()
collapseGroup()
The echo command will display the value of the variable specified by the variableName argument, or all variables if variableName is not provided.
commandEcho(variable.name = "*", base.url = .defaultBaseUrl)
commandEcho(variable.name = "*", base.url = .defaultBaseUrl)
variable.name |
(optional) The name of the variable to display. Default is to display all variable values using "*". |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
Value of variable
commandEcho()
commandEcho()
The command line dialog provides a field to enter commands and view results. It also provides the help command to display namespaces, commands, and arguments
commandOpenDialog(base.url = .defaultBaseUrl)
commandOpenDialog(base.url = .defaultBaseUrl)
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
None
commandOpenDialog()
commandOpenDialog()
The pause command displays a dialog with the text provided in the message argument and waits for the user to click OK.
commandPause(message = "", base.url = .defaultBaseUrl)
commandPause(message = "", base.url = .defaultBaseUrl)
message |
(optional) Text to display in pause dialog |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
None
commandPause('Please click OK to continue.')
commandPause('Please click OK to continue.')
This command causes Cytoscape to exit. It is typically used at the end of a script file
commandQuit(base.url = .defaultBaseUrl)
commandQuit(base.url = .defaultBaseUrl)
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
None
commandQuit()
commandQuit()
The run command will execute a command script from the file pointed to by the file argument, which should contain Cytoscape commands, one per line. Arguments to the script are provided by the args argument
commandRunFile(file, args = NULL, base.url = .defaultBaseUrl)
commandRunFile(file, args = NULL, base.url = .defaultBaseUrl)
file |
Path to command script file |
args |
The script arguments as key:value pairs separated by commas |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
None
commandRunFile('/path/to/my/file.txt')
commandRunFile('/path/to/my/file.txt')
Opens swagger docs in default browser for a live instance of Commands available via CyREST.
commandsAPI(base.url = .defaultBaseUrl)
commandsAPI(base.url = .defaultBaseUrl)
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
Web page in browser
commandsAPI()
commandsAPI()
Using the same syntax as Cytoscape's Command Line Dialog, this function converts a command string into a CyREST query URL, executes a GET request, and parses the result content into an R list object. The function check whether actual call is local or remote first. If remote, requests will go through Jupyter-Bridge. Extremely long commands may result in an immediate "URI Too Long" failure because 'commandsRun()' uses HTTP GET to call the CyREST API, and HTTP GET has known limitations. You can use 'commandsPost()' instead, though the return value will be different. 'commandsPost()' uses HTTP POST, which has no limitations.
commandsGET(cmd.string, base.url = .defaultBaseUrl)
commandsGET(cmd.string, base.url = .defaultBaseUrl)
cmd.string |
(char) command |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
A list
, status
or None.
commandsGET('layout get preferred network=current') commandsGET('network list properties network=current') commandsGET('layout force-directed defaultNodeMass=1')
commandsGET('layout get preferred network=current') commandsGET('network list properties network=current') commandsGET('layout force-directed defaultNodeMass=1')
Using the same syntax as Cytoscape's Command Line Dialog, this function returns a list of available commands or args. The function check whether actual call is local or remote first. If remote, requests will go through Jupyter-Bridge.
commandsHelp(cmd.string = "help", base.url = .defaultBaseUrl)
commandsHelp(cmd.string = "help", base.url = .defaultBaseUrl)
cmd.string |
(char) command |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
Works with or without 'help' command prefix. Note that if you ask about a command that doesn't have any arguments, this function will run the command!
List of available commands or args
commandsHelp() commandsHelp('node') commandsHelp('node get attribute')
commandsHelp() commandsHelp('node') commandsHelp('node get attribute')
The sleep command will pause processing for a period of time as specified by duration seconds. It is typically used as part of a command script.
commandSleep(duration = NULL, base.url = .defaultBaseUrl)
commandSleep(duration = NULL, base.url = .defaultBaseUrl)
duration |
(optional) The time in seconds to sleep |
base.url |
(optional) Ignore unless you need to specify a custom domain, #' port or version to connect to the CyREST API. Default is http://localhost:1234 #' and the latest version of the CyREST API supported by this version of RCy3. |
None
commandSleep(5)
commandSleep(5)
Using the same syntax as Cytoscape's Command Line Dialog, this function converts a command string into a CyREST query URL, executes a POST request, and parses the result content into an R list object. The function check whether actual call is local or remote first. If remote, requests will go through Jupyter-Bridge.
commandsPOST(cmd.string, base.url = .defaultBaseUrl)
commandsPOST(cmd.string, base.url = .defaultBaseUrl)
cmd.string |
(char) command |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
A list
, named list
, status
or None.
commandsPOST('layout get preferred') commandsPOST('network list properties') commandsPOST('layout force-directed defaultNodeMass=1')
commandsPOST('layout get preferred') commandsPOST('network list properties') commandsPOST('layout force-directed defaultNodeMass=1')
Using the same syntax as Cytoscape's Command Line Dialog, this function converts a command string into a CyREST query URL, executes a GET request, and parses the result content into an R list object. Same as commandsGET. Extremely long commands may result in an immediate "URI Too Long" failure because 'commandsRun()' uses HTTP GET to call the CyREST API, and HTTP GET has known limitations. You can use 'commandsPost()' instead, though the return value will be different. 'commandsPost()' uses HTTP POST, which has no limitations.
commandsRun(cmd.string, base.url = .defaultBaseUrl)
commandsRun(cmd.string, base.url = .defaultBaseUrl)
cmd.string |
(char) command |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
A list
, status
or None.
commandsRun('layout get preferred') commandsRun('network list properties') commandsRun('layout force-directed defaultNodeMass=1')
commandsRun('layout get preferred') commandsRun('network list properties') commandsRun('layout force-directed defaultNodeMass=1')
Create a new visual style by copying a specified style.
copyVisualStyle(from.style, to.style, base.url = .defaultBaseUrl)
copyVisualStyle(from.style, to.style, base.url = .defaultBaseUrl)
from.style |
Name of visual style to copy |
to.style |
Name of new visual style |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
None
copyVisualStyle()
copyVisualStyle()
Creates a filter to control node or edge selection. Works on columns of boolean, string, numeric and lists. Note the unique restrictions for criterion and predicate depending on the type of column being filtered.
createColumnFilter( filter.name, column, criterion, predicate, caseSensitive = FALSE, anyMatch = TRUE, type = "nodes", hide = FALSE, network = NULL, base.url = .defaultBaseUrl, apply = TRUE )
createColumnFilter( filter.name, column, criterion, predicate, caseSensitive = FALSE, anyMatch = TRUE, type = "nodes", hide = FALSE, network = NULL, base.url = .defaultBaseUrl, apply = TRUE )
filter.name |
Name for filter. |
column |
Table column to base filter upon. |
criterion |
For boolean columns: TRUE or FALSE. For string columns: a string value, e.g., "hello". If the predicate is REGEX then this can be a regular expression as accepted by the Java Pattern class (https://docs.oracle.com/javase/7/docs/api/java/util/regex/Pattern.html). For numeric columns: If the predicate is BETWEEN or IS_NOT_BETWEEN then this is a two-element vector of numbers, example: c(1,5), otherwise a single number. |
predicate |
For boolean columns: IS, IS_NOT. For string columns: IS, IS_NOT, CONTAINS, DOES_NOT_CONTAIN, REGEX. For numeric columns: IS, IS_NOT, GREATER_THAN, GREATER_THAN_OR_EQUAL, LESS_THAN, LESS_THAN_OR_EQUAL, BETWEEN, IS_NOT_BETWEEN |
caseSensitive |
(optional) If string matching should be case sensitive. Default is FALSE. |
anyMatch |
(optional) Only applies to List columns. If true then at least one element in the list must pass the filter, if false then all the elements in the list must pass the filter. Default is TRUE. |
type |
(optional) Apply filter to "nodes" (default) or "edges". |
hide |
Whether to hide filtered out nodes and edges. Default is FALSE. Ignored if all nodes or edges are filtered out. This is an alternative to filtering for node and edge selection. |
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
apply |
(bool) True to execute filter immediately (default); False to define filter but not execute it (available in Cytoscape 3.9+). |
List of selected nodes and edges.
createColumnFilter('myFilter', 'log2FC', c(-1,1), "IS_NOT_BETWEEN") createColumnFilter('myFilter', 'pValue', 0.05, "LESS_THAN") createColumnFilter('myFilter', 'function', "kinase", "CONTAINS", FALSE) createColumnFilter('myFilter', 'name', "^Y.*C$", "REGEX") createColumnFilter('myFilter', 'isTarget', TRUE , "IS", apply=FALSE) createColumnFilter('myFilter', 'isTarget', TRUE , "IS", hide=TRUE)
createColumnFilter('myFilter', 'log2FC', c(-1,1), "IS_NOT_BETWEEN") createColumnFilter('myFilter', 'pValue', 0.05, "LESS_THAN") createColumnFilter('myFilter', 'function', "kinase", "CONTAINS", FALSE) createColumnFilter('myFilter', 'name', "^Y.*C$", "REGEX") createColumnFilter('myFilter', 'isTarget', TRUE , "IS", apply=FALSE) createColumnFilter('myFilter', 'isTarget', TRUE , "IS", hide=TRUE)
Combines filters to control node and edge selection based on previously created filters.
createCompositeFilter( filter.name, filter.list, type = "ALL", hide = FALSE, network = NULL, base.url = .defaultBaseUrl, apply = TRUE )
createCompositeFilter( filter.name, filter.list, type = "ALL", hide = FALSE, network = NULL, base.url = .defaultBaseUrl, apply = TRUE )
filter.name |
Name for filter. |
filter.list |
List of filters to combine. |
type |
(optional) Type of composition, requiring ALL (default) or ANY filters to pass for final node and edge selection. |
hide |
Whether to hide filtered out nodes and edges. Default is FALSE. Ignored if all nodes or edges are filtered out. This is an alternative to filtering for node and edge selection. |
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
apply |
(bool) True to execute filter immediately (default); False to define filter but not execute it (available in Cytoscape 3.9+). |
List of selected nodes and edges.
createCompositeFilter("comp1", c("filter1", "filter2")) createCompositeFilter("comp2", c("filter1", "filter2"), "ANY") createCompositeFilter("comp3", c("comp1", "filter3"), apply=FALSE)
createCompositeFilter("comp1", c("filter1", "filter2")) createCompositeFilter("comp2", c("filter1", "filter2"), "ANY") createCompositeFilter("comp3", c("comp1", "filter3"), apply=FALSE)
Create a Cytoscape JS representation of a Cytoscape network
createCytoscapejsFromNetwork(network = NULL, base.url = .defaultBaseUrl)
createCytoscapejsFromNetwork(network = NULL, base.url = .defaultBaseUrl)
network |
(SUID or str or NULL): Name or SUID of a network or view. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
(list) The Cytoscape JS object
createCytoscapejsFromNetwork()
createCytoscapejsFromNetwork()
Creates a filter to control node selection base on in/out degree.
createDegreeFilter( filter.name, criterion, predicate = "BETWEEN", edgeType = "ANY", hide = FALSE, network = NULL, base.url = .defaultBaseUrl, apply = TRUE )
createDegreeFilter( filter.name, criterion, predicate = "BETWEEN", edgeType = "ANY", hide = FALSE, network = NULL, base.url = .defaultBaseUrl, apply = TRUE )
filter.name |
Name for filter. |
criterion |
A two-element vector of numbers, example: c(1,5). |
predicate |
BETWEEN (default) or IS_NOT_BETWEEN |
edgeType |
(optional) Type of edges to consider in degree count: ANY (default), UNDIRECTED, INCOMING, OUTGOING, DIRECTED |
hide |
Whether to hide filtered out nodes and edges. Default is FALSE. Ignored if all nodes or edges are filtered out. This is an alternative to filtering for node and edge selection. |
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
apply |
(bool) True to execute filter immediately (default); False to define filter but not execute it (available in Cytoscape 3.9+). |
List of selected nodes and edges.
createDegreeFilter('myFilter', c(4,5)) createDegreeFilter('myFilter', c(2,5), apply=FALSE)
createDegreeFilter('myFilter', c(4,5)) createDegreeFilter('myFilter', c(2,5), apply=FALSE)
Returns the Cytoscape network as a Bioconductor graph.
createGraphFromNetwork(network = NULL, base.url = .defaultBaseUrl)
createGraphFromNetwork(network = NULL, base.url = .defaultBaseUrl)
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
A Bioconductor graph object.
Alexander Pico, Tanja Muetze, Georgi Kolishovski, Paul Shannon
cw <- CytoscapeWindow('network', graph=make_graphnel()) g <- createGraphFromNetwork() g <- createGraphFromNetwork('myNetwork')
cw <- CytoscapeWindow('network', graph=make_graphnel()) g <- createGraphFromNetwork() g <- createGraphFromNetwork('myNetwork')
Create a group from the specified nodes.
createGroup( group.name, nodes = NULL, nodes.by.col = "SUID", network = NULL, base.url = .defaultBaseUrl )
createGroup( group.name, nodes = NULL, nodes.by.col = "SUID", network = NULL, base.url = .defaultBaseUrl )
group.name |
The name used to identify and optionaly label the group |
nodes |
List of node SUIDs, names, other column values, or keyword: selected, unselected or all. Default is currently selected nodes. |
nodes.by.col |
name of node table column corresponding to provided nodes list. Default is 'SUID'. |
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
Group SUID
createGroup('myGroup')
createGroup('myGroup')
Create a group of nodes defined by a column value.
createGroupByColumn( group.name, column = NULL, value = NULL, network = NULL, base.url = .defaultBaseUrl )
createGroupByColumn( group.name, column = NULL, value = NULL, network = NULL, base.url = .defaultBaseUrl )
group.name |
The name used to identify and optionaly label the group |
column |
The name or header of the Node Table column to use for selecting nodes to group |
value |
The value in the column to use for selecting nodes to group |
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
Group SUID
createGroupByColumn('myGroup','Cluster', 'A')
createGroupByColumn('myGroup','Cluster', 'A')
Takes a Cytoscape network and generates data frames for vertices and edges to send to the graph_from_data_frame function. Returns the network.suid and applies the perferred layout set in Cytoscape preferences.
createIgraphFromNetwork(network = NULL, base.url = .defaultBaseUrl)
createIgraphFromNetwork(network = NULL, base.url = .defaultBaseUrl)
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
Nodes and edges from the Cytoscape network will be translated into vertices and edges
in igraph. Associated table columns will also be passed to igraph as vertiex and
edge attributes. Note: all networks are implicitly modeled as directed
in Cytoscape. Round-trip conversion of an undirected network in igraph via
createNetworkFromIgraph
to Cytoscape and back to igraph will result in
a directed network.
(igraph) an igraph network
createNetworkFromDataFrames, createNetworkFromIgraph
ig <- createIgraphFromNetwork() ig <- createIgraphFromNetwork('myNetwork')
ig <- createIgraphFromNetwork() ig <- createIgraphFromNetwork('myNetwork')
Create a network from CytoscapeJS JSON
createNetworkFromCytoscapejs( cytoscapejs, title = NULL, collection = "My CytoscapeJS Network Collection", base.url = .defaultBaseUrl )
createNetworkFromCytoscapejs( cytoscapejs, title = NULL, collection = "My CytoscapeJS Network Collection", base.url = .defaultBaseUrl )
cytoscapejs |
network (nodes, edges, attributes, node positions and metadata) in CytoscapeJS format |
title |
network name (NULL means use the name in cytoscapejs) |
collection |
collection name (NULL means create an unnamed collection) |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
The SUID of the new network
createNetworkFromCytoscapejs()
createNetworkFromCytoscapejs()
Takes data frames for nodes and edges, as well as naming parameters to generate the JSON data format required by the "networks" POST operation via CyREST. Returns the network.suid and applies the perferred layout set in Cytoscape preferences.
createNetworkFromDataFrames( nodes = NULL, edges = NULL, title = "From dataframe", collection = "My Dataframe Network Collection", base.url = .defaultBaseUrl, ... )
createNetworkFromDataFrames( nodes = NULL, edges = NULL, title = "From dataframe", collection = "My Dataframe Network Collection", base.url = .defaultBaseUrl, ... )
nodes |
(data.frame) see details and examples below; default NULL to derive nodes from edge sources and targets |
edges |
(data.frame) see details and examples below; default NULL for disconnected set of nodes |
title |
(char) network name |
collection |
(char) network collection name |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
... |
params for nodeSet2JSON() and edgeSet2JSON() |
NODES should contain a column of character strings named: id. This name can be overridden by the arg: node.id.list. Additional columns are loaded as node attributes. EDGES should contain columns of character strings named: source, target and interaction. These names can be overridden by args: source.id.list, target.id.list, interaction.type.list. Additional columns are loaded as edge attributes. The 'interaction' list can contain a single value to apply to all rows; and if excluded altogether, the interaction type wiil be set to "interacts with". NOTE: attribute values of types (num) will be imported as (Double); (int) as (Integer); (chr) as (String); and (logical) as (Boolean). (Lists) will be imported as (Lists) in CyREST v3.9+.
(int) network SUID
nodes <- data.frame(id=c("node 0","node 1","node 2","node 3"), group=c("A","A","B","B"), # categorical strings score=as.integer(c(20,10,15,5))) # integers edges <- data.frame(source=c("node 0","node 0","node 0","node 2"), target=c("node 1","node 2","node 3","node 3"), interaction=c("inhibits","interacts", "activates","interacts"), # optional weight=c(5.1,3.0,5.2,9.9)) # numeric createNetworkFromDataFrames(nodes,edges)
nodes <- data.frame(id=c("node 0","node 1","node 2","node 3"), group=c("A","A","B","B"), # categorical strings score=as.integer(c(20,10,15,5))) # integers edges <- data.frame(source=c("node 0","node 0","node 0","node 2"), target=c("node 1","node 2","node 3","node 3"), interaction=c("inhibits","interacts", "activates","interacts"), # optional weight=c(5.1,3.0,5.2,9.9)) # numeric createNetworkFromDataFrames(nodes,edges)
Creates a Cytoscape network from a Bioconductor graph.
createNetworkFromGraph( graph, title = "From graph", collection = "My GraphNEL Network Collection", base.url = .defaultBaseUrl )
createNetworkFromGraph( graph, title = "From graph", collection = "My GraphNEL Network Collection", base.url = .defaultBaseUrl )
graph |
A GraphNEL object |
title |
(char) network name |
collection |
(char) network collection name |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
Network SUID
Alexander Pico, Tanja Muetze, Georgi Kolishovski, Paul Shannon
library(graph) g <- makeSimpleGraph() createNetworkFromGraph(g)
library(graph) g <- makeSimpleGraph() createNetworkFromGraph(g)
Takes an igraph network and generates data frames for nodes and edges to send to the createNetwork function. Returns the network.suid and applies the perferred layout set in Cytoscape preferences.
createNetworkFromIgraph( igraph, title = "From igraph", collection = "My Igraph Network Collection", base.url = .defaultBaseUrl, ... )
createNetworkFromIgraph( igraph, title = "From igraph", collection = "My Igraph Network Collection", base.url = .defaultBaseUrl, ... )
igraph |
(igraph) igraph network object |
title |
(char) network name |
collection |
(char) network collection name |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
... |
params for nodeSet2JSON() and edgeSet2JSON(); see createNetwork |
Vertices and edges from the igraph network will be translated into nodes and edges
in Cytoscape. Associated attributes will also be passed to Cytoscape as node and edge
table columns. Note: undirected networks will be implicitly modeled as directed
in Cytoscape. Conversion back via createIgraphFromNetwork
will result in
a directed network. Also note: igraph attributes of type "other" denoted by "x"
are converted to "String" in Cytoscape.
(int) network SUID
createNetworkFromDataFrames, createIgraphFromNetwork
library(igraph) ig <- makeSimpleIgraph() createNetworkFromIgraph(ig)
library(igraph) ig <- makeSimpleIgraph() createNetworkFromIgraph(ig)
Copies a subset of nodes and edges into a newly created subnetwork.
createSubnetwork( nodes = NULL, nodes.by.col = "SUID", edges = NULL, edges.by.col = "SUID", exclude.edges = FALSE, subnetwork.name = NULL, network = NULL, base.url = .defaultBaseUrl )
createSubnetwork( nodes = NULL, nodes.by.col = "SUID", edges = NULL, edges.by.col = "SUID", exclude.edges = FALSE, subnetwork.name = NULL, network = NULL, base.url = .defaultBaseUrl )
nodes |
list of nodes by SUID, by specified nodes.by.col value (e.g., name) or by keyword: selected, unselected or all. Default is currently selected nodes. |
nodes.by.col |
name of node table column corresponding to provided nodes list; default is 'SUID' |
edges |
list of edges by SUID, by specified nodes.by.col value (e.g., name) or by keyword: selected, unselected or all. Default is currently selected edges. |
edges.by.col |
name of edge table column corresponding to provided edges list; default is 'SUID' |
exclude.edges |
(boolean) whether to exclude connecting edges; default is FALSE |
subnetwork.name |
name of new subnetwork to be created; default is to add a numbered suffix to source network name |
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
If you specify both nodes and edges, the resulting subset will be the union of those sets. Typical usage only requires specifying either nodes or edges. Note that selected nodes will bring along their connecting edges by default (see exclude.edges arg) and selected edges will always bring along their source and target nodes.
SUID of new subnetwork
createSubnetwork() createSubnetwork("all") createSubnetwork(subnetwork.name="mySubnetwork") createSubnetwork(c("node 1","node 2","node 3"),"name") createSubnetwork(c("AKT1","TP53","PIK3CA"),"display name") createSubnetwork(edges="all") #subnetwork of all connected nodes
createSubnetwork() createSubnetwork("all") createSubnetwork(subnetwork.name="mySubnetwork") createSubnetwork(c("node 1","node 2","node 3"),"name") createSubnetwork(c("AKT1","TP53","PIK3CA"),"display name") createSubnetwork(edges="all") #subnetwork of all connected nodes
Create a network view if one does not already exist
createView(layout = TRUE, network = NULL, base.url = .defaultBaseUrl)
createView(layout = TRUE, network = NULL, base.url = .defaultBaseUrl)
layout |
(optional) If TRUE (default), the preferred layout will be applied to the new view. If FALSE, no layout will be applied. |
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
For networks larger than the view creation threshold, a network view is not created by default. This function creates a network view if one does not already exist.
Network view SUID
getNetworkViews()
getNetworkViews()
Create a style from defaults and predefined mappings.
createVisualStyle(style.name, defaults, mappings, base.url = .defaultBaseUrl)
createVisualStyle(style.name, defaults, mappings, base.url = .defaultBaseUrl)
style.name |
(char) name for style |
defaults |
(list) key-value pairs for default mappings. |
mappings |
(list) visual property mappings, see mapVisualProperty |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
Requires attribute mappings to be previously created, see mapVisualProperty.
None
applyStyle, mapVisualProperty
#first there has to be a network to apply style to example(createNetworkFromDataFrames) #then prepare style variables style.name = "myStyle" defaults <- list(NODE_SHAPE="diamond", NODE_SIZE=30, EDGE_TRANSPARENCY=120, NODE_LABEL_POSITION="W,E,c,0.00,0.00") nodeLabels <- mapVisualProperty('node label','id','p') nodeFills <- mapVisualProperty('node fill color','group','d',c("A","B"), c("#FF9900","#66AAAA")) arrowShapes <- mapVisualProperty('Edge Target Arrow Shape','interaction','d', c("activates","inhibits","interacts"),c("Arrow","T","None")) edgeWidth <- mapVisualProperty('edge width','weight','p') #and then create the style createVisualStyle(style.name, defaults, list(nodeLabels,nodeFills,arrowShapes,edgeWidth)) #finsh by applying the style setVisualStyle(style.name)
#first there has to be a network to apply style to example(createNetworkFromDataFrames) #then prepare style variables style.name = "myStyle" defaults <- list(NODE_SHAPE="diamond", NODE_SIZE=30, EDGE_TRANSPARENCY=120, NODE_LABEL_POSITION="W,E,c,0.00,0.00") nodeLabels <- mapVisualProperty('node label','id','p') nodeFills <- mapVisualProperty('node fill color','group','d',c("A","B"), c("#FF9900","#66AAAA")) arrowShapes <- mapVisualProperty('Edge Target Arrow Shape','interaction','d', c("activates","inhibits","interacts"),c("Arrow","T","None")) edgeWidth <- mapVisualProperty('edge width','weight','p') #and then create the style createVisualStyle(style.name, defaults, list(nodeLabels,nodeFills,arrowShapes,edgeWidth)) #finsh by applying the style setVisualStyle(style.name)
Close an internal web browser and remove all content. Provide an id for the browser you want to close.
cybrowserClose(id = NULL, base.url = .defaultBaseUrl)
cybrowserClose(id = NULL, base.url = .defaultBaseUrl)
id |
(optional) The identifier for the browser window to close |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
None
cybrowserClose('554')
cybrowserClose('554')
Launch Cytoscape's internal web browser in a separate window. Provide an id for the window if you want subsequent control of the window e.g., via cybrowser hide.
cybrowserDialog( id = NULL, text = NULL, title = NULL, url = NULL, base.url = .defaultBaseUrl )
cybrowserDialog( id = NULL, text = NULL, title = NULL, url = NULL, base.url = .defaultBaseUrl )
id |
(optional) The identifier for the browser window |
text |
(optional) HTML text to initially load into the browser |
title |
(optional) Text to be shown in the title bar of the browser window |
url |
(optional) The URL the browser should load |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
None
cybrowserDialog(url='http://cytoscape.org')
cybrowserDialog(url='http://cytoscape.org')
Hide an existing browser, whether it's in the Results panel or a separate window.
cybrowserHide(id = NULL, base.url = .defaultBaseUrl)
cybrowserHide(id = NULL, base.url = .defaultBaseUrl)
id |
(optional) The identifier for the browser window to hide |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
None
cybrowserHide()
cybrowserHide()
List all browsers that are currently open, whether as a dialog or in the results panel.
cybrowserList(base.url = .defaultBaseUrl)
cybrowserList(base.url = .defaultBaseUrl)
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
List of open cybrowser windows
cybrowserList()
cybrowserList()
Send the text to the browser indicated by the id and return the response, if any. Note that the JSON result field could either be a bare string or JSON formatted text.
cybrowserSend(id = NULL, script, base.url = .defaultBaseUrl)
cybrowserSend(id = NULL, script, base.url = .defaultBaseUrl)
id |
(optional) The identifier for the browser window |
script |
(optional) A string that represents a JavaScript variable, script, or call to be executed in the browser. Note that only string results are returned. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
String result
cybrowserSend(id="Window 1", script="navigator.userAgent;")
cybrowserSend(id="Window 1", script="navigator.userAgent;")
Launch Cytoscape's internal web browser in a pane in the Result Panel. Provide an id for the window if you want subsequent control of the window via cybrowser hide.
cybrowserShow( id = NULL, text = NULL, title = NULL, url = NULL, base.url = .defaultBaseUrl )
cybrowserShow( id = NULL, text = NULL, title = NULL, url = NULL, base.url = .defaultBaseUrl )
id |
(optional) The identifier for the browser window |
text |
(optional) HTML text to initially load into the browser |
title |
(optional) Text to be shown in the title bar of the browser window |
url |
(optional) The URL the browser should load |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
None
cybrowserShow(url='http://cytoscape.org')
cybrowserShow(url='http://cytoscape.org')
Display the version of the CyBrowser app.
cybrowserVersion(base.url = .defaultBaseUrl)
cybrowserVersion(base.url = .defaultBaseUrl)
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
Version number
cybrowserVersion()
cybrowserVersion()
Opens swagger docs in default browser for a live instance of CyREST operations.
cyrestAPI(base.url = .defaultBaseUrl)
cyrestAPI(base.url = .defaultBaseUrl)
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
Web page in browser
cyrestAPI()
cyrestAPI()
Constructs the query, makes DELETE call and processes the result. The function check whether actual call is local or remote first. If remote, requests will go through Jupyter-Bridge.
cyrestDELETE(operation = NULL, parameters = NULL, base.url = .defaultBaseUrl)
cyrestDELETE(operation = NULL, parameters = NULL, base.url = .defaultBaseUrl)
operation |
A string to be converted to the REST query namespace |
parameters |
A named list of values to be converted to REST query parameters |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
CyREST result content
cyrestDELETE('session')
cyrestDELETE('session')
Constructs the query, makes GET call and processes the result. The function check whether actual call is local or remote first. If remote, requests will go through Jupyter-Bridge.
cyrestGET(operation = NULL, parameters = NULL, base.url = .defaultBaseUrl)
cyrestGET(operation = NULL, parameters = NULL, base.url = .defaultBaseUrl)
operation |
A string to be converted to the REST query namespace |
parameters |
A named list of values to be converted to REST query parameters |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
CyREST result content
cyrestGET('version')
cyrestGET('version')
Constructs the query and body, makes POST call and processes the result. The function check whether actual call is local or remote first. If remote, requests will go through Jupyter-Bridge.
cyrestPOST( operation, parameters = NULL, body = NULL, base.url = .defaultBaseUrl )
cyrestPOST( operation, parameters = NULL, body = NULL, base.url = .defaultBaseUrl )
operation |
A string to be converted to the REST query namespace |
parameters |
A named list of values to be converted to REST query parameters |
body |
A named list of values to be converted to JSON |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
CyREST result content
cyrestPOST('networks/51/views')
cyrestPOST('networks/51/views')
Constructs the query and body, makes PUT call and processes the result. The function check whether actual call is local or remote first. If remote, requests will go through Jupyter-Bridge.
cyrestPUT( operation, parameters = NULL, body = NULL, base.url = .defaultBaseUrl )
cyrestPUT( operation, parameters = NULL, body = NULL, base.url = .defaultBaseUrl )
operation |
A string to be converted to the REST query namespace |
parameters |
A named list of values to be converted to REST query parameters |
body |
A named list of values to be converted to JSON |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
CyREST result content
cyrestPUT()
cyrestPUT()
Get the list of available CyREST API versions
cytoscapeApiVersions(base.url = .defaultBaseUrl)
cytoscapeApiVersions(base.url = .defaultBaseUrl)
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
A list
of API versions as character
strings, e.g., "v1"
Alexander Pico, Tanja Muetze, Georgi Kolishovski, Paul Shannon
cytoscapeApiVersions() # [1] "v1"
cytoscapeApiVersions() # [1] "v1"
Manually call Java's garbage collection System.gc()
to free up unused memory.
This process happens automatically, but may be useful to call explicitly for testing or evaluation purposes.
cytoscapeFreeMemory(base.url = .defaultBaseUrl)
cytoscapeFreeMemory(base.url = .defaultBaseUrl)
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
status message
Alexander Pico
cytoscapeFreeMemory() # [1] "Unused memory freed up."
cytoscapeFreeMemory() # [1] "Unused memory freed up."
Returns the memory resources of the server running Cytoscape
cytoscapeMemoryStatus(base.url = .defaultBaseUrl)
cytoscapeMemoryStatus(base.url = .defaultBaseUrl)
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
A list
of numeric
values
Alexander Pico
cytoscapeMemoryStatus() # usedMemory freeMemory totalMemory maxMemory # 181 2624 2805 13653
cytoscapeMemoryStatus() # usedMemory freeMemory totalMemory maxMemory # 181 2624 2805 13653
Returns the processor resources of the server running Cytoscape
cytoscapeNumberOfCores(base.url = .defaultBaseUrl)
cytoscapeNumberOfCores(base.url = .defaultBaseUrl)
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
A numeric
value
Alexander Pico
cytoscapeNumberOfCores() # [1] 8
cytoscapeNumberOfCores() # [1] 8
Tests the connection to Cytoscape via CyREST and verifies that supported versions of Cytoscape and CyREST API are loaded.
cytoscapePing(base.url = .defaultBaseUrl)
cytoscapePing(base.url = .defaultBaseUrl)
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
status message
Alexander Pico, Tanja Muetze, Georgi Kolishovski, Paul Shannon
cytoscapePing() # [1] "You are connected to Cytoscape!"
cytoscapePing() # [1] "You are connected to Cytoscape!"
Returns the versions of the current Cytoscape and CyREST API
cytoscapeVersionInfo(base.url = .defaultBaseUrl)
cytoscapeVersionInfo(base.url = .defaultBaseUrl)
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
list
of versions
Alexander Pico
cytoscapeVersionInfo() # apiVersion cytoscapeVersion # "v1" "3.7.0-SNAPSHOT"
cytoscapeVersionInfo() # apiVersion cytoscapeVersion # "v1" "3.7.0-SNAPSHOT"
Delete all networks from the current Cytoscape session.
deleteAllNetworks(base.url = .defaultBaseUrl)
deleteAllNetworks(base.url = .defaultBaseUrl)
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
None
deleteAllNetworks()
deleteAllNetworks()
Delete all visual styles from current Cytoscape session
deleteAllVisualStyle(base.url = .defaultBaseUrl)
deleteAllVisualStyle(base.url = .defaultBaseUrl)
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
None
deleteAllVisualStyle()
deleteAllVisualStyle()
Remove an annotation from the current network view in Cytoscape
deleteAnnotation(names = NULL, base.url = .defaultBaseUrl)
deleteAnnotation(names = NULL, base.url = .defaultBaseUrl)
names |
List of annotations by UUID or Name |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
None
deleteAnnotation("016a4af1-69bc-4b99-8183-d6f118847f96") deleteAnnotation(c("T2","T3")) deleteAnnotation(sapply(getAnnotationList(), '[[', 'uuid'))
deleteAnnotation("016a4af1-69bc-4b99-8183-d6f118847f96") deleteAnnotation(c("T2","T3")) deleteAnnotation(sapply(getAnnotationList(), '[[', 'uuid'))
Removes edges with duplicate names. Only considers cases with identical source, target, interaction and directionality.
deleteDuplicateEdges(network = NULL, base.url = .defaultBaseUrl)
deleteDuplicateEdges(network = NULL, base.url = .defaultBaseUrl)
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
Duplicate edges are first selected and then deleted. Prior edge selections will be lost; node selections will not be affected.
Lists of SUIDs for selected nodes and edges
deleteDuplicateEdges()
deleteDuplicateEdges()
Deletes one or more groups, while leaving member nodes intact.
deleteGroup( groups = NULL, groups.by.col = "SUID", network = NULL, base.url = .defaultBaseUrl )
deleteGroup( groups = NULL, groups.by.col = "SUID", network = NULL, base.url = .defaultBaseUrl )
groups |
(optional) List of group SUIDs, names, other column values or keywords: all, selected, unselected. Default is the currently selected group. |
groups.by.col |
name of node table column corresponding to provided groups list. Default is 'SUID'. |
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
Note: group nodes are ungrouped but not deleted in Cytoscape version 3.6.1
None
deleteGroup()
deleteGroup()
Delete a network from the current Cytoscape session.
deleteNetwork(network = NULL, base.url = .defaultBaseUrl)
deleteNetwork(network = NULL, base.url = .defaultBaseUrl)
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
None
deleteNetwork()
deleteNetwork()
Delete the currently selected edges in the network.
deleteSelectedEdges(network = NULL, base.url = .defaultBaseUrl)
deleteSelectedEdges(network = NULL, base.url = .defaultBaseUrl)
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
list
of deleted edge SUIDs
AlexanderPico, Tanja Muetze, Georgi Kolishovski, Paul Shannon
deleteSelectedEdges()
deleteSelectedEdges()
Delete currently selected nodes from the network.
deleteSelectedNodes(network = NULL, base.url = .defaultBaseUrl)
deleteSelectedNodes(network = NULL, base.url = .defaultBaseUrl)
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
A named list
of deleted node suids ($nodes) as well as edge suids
($edges) deleted as a result of the node deletion
deleteSelectedNodes()
deleteSelectedNodes()
Removes edges that connect to a single node as both source and target.
deleteSelfLoops(network = NULL, base.url = .defaultBaseUrl)
deleteSelfLoops(network = NULL, base.url = .defaultBaseUrl)
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
Self loop edges are first selected and then deleted. Prior edge and node selections will be lost.
Lists of SUIDs for selected nodes and edges
deleteSelfLoops()
deleteSelfLoops()
Deletes a specified visual style mapping from specified style.
deleteStyleMapping(style.name, visual.prop, base.url = .defaultBaseUrl)
deleteStyleMapping(style.name, visual.prop, base.url = .defaultBaseUrl)
style.name |
(char) name for style |
visual.prop |
(char) name of visual property to map. See getVisualPropertyNames(). |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
None
deleteStyleMapping()
deleteStyleMapping()
Delete a column from node, edge or network tables.
deleteTableColumn( column, table = "node", namespace = "default", network = NULL, base.url = .defaultBaseUrl )
deleteTableColumn( column, table = "node", namespace = "default", network = NULL, base.url = .defaultBaseUrl )
column |
Name of the column to delete |
table |
Name of table, e.g., node (default), edge, network |
namespace |
Namespace of table. Default is "default". |
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
A data.frame
of column values
deleteTableColumn('node','group')
deleteTableColumn('node','group')
Deletes the specified visual style from current session.
deleteVisualStyle(style.name, base.url = .defaultBaseUrl)
deleteVisualStyle(style.name, base.url = .defaultBaseUrl)
style.name |
(char) name of style to delete |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
None
deleteVisualStyle("myStyle")
deleteVisualStyle("myStyle")
Diffusion will send the selected network view and its selected nodes to a web-based REST service to calculate network propagation. Results are returned and represented by columns in the node table. Advanced operation supports parameters.
diffusionAdvanced( heat.column.name = NULL, time = NULL, base.url = .defaultBaseUrl )
diffusionAdvanced( heat.column.name = NULL, time = NULL, base.url = .defaultBaseUrl )
heat.column.name |
(optional) A node column name intended to override the default table column 'diffusion_input'. This represents the query vector and corresponds to h in the diffusion equation. |
time |
(optional) The extent of spread over the network. This corresponds to t in the diffusion equation. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
Columns are created for each execution of Diffusion and their names are returned in the response. The nodes you would like to use as input should be selected. This will be used to generate the contents of the diffusion_input column, which represents the query vector and corresponds to h in the diffusion equation.
Version number
diffusionAdvanced()
diffusionAdvanced()
Diffusion will send the selected network view and its selected nodes to a web-based REST service to calculate network propagation. Results are returned and represented by columns in the node table.
diffusionBasic(base.url = .defaultBaseUrl)
diffusionBasic(base.url = .defaultBaseUrl)
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
Columns are created for each execution of Diffusion and their names are returned in the response. The nodes you would like to use as input should be selected. This will be used to generate the contents of the diffusion_input column, which represents the query vector and corresponds to h in the diffusion equation.
Version number
diffusionBasic()
diffusionBasic()
Disable an app to effectively remove it from your Cytoscape session without having to uninstall it.
disableApp(app, base.url = .defaultBaseUrl)
disableApp(app, base.url = .defaultBaseUrl)
app |
Name of app |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
None
disableApp()
disableApp()
Dock a panel back into the UI of Cytoscape.
dockPanel(panel.name, base.url = .defaultBaseUrl)
dockPanel(panel.name, base.url = .defaultBaseUrl)
panel.name |
Name of the panel. Multiple ways of referencing panels is supported: |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
None
dockPanel('table')
dockPanel('table')
doInitializeSandbox
doInitializeSandbox(requester = NULL, base.url = .defaultBaseUrl)
doInitializeSandbox(requester = NULL, base.url = .defaultBaseUrl)
requester |
requester |
base.url |
Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://127.0.0.1:1234 and the latest version of the CyREST API supported by this version of RCy3. |
None
doInitializeSandbox()
doInitializeSandbox()
Do requests remotely by connecting over Jupyter-Bridge.
doRequestRemote(method, qurl, qbody = NULL, headers = NULL)
doRequestRemote(method, qurl, qbody = NULL, headers = NULL)
method |
A string to be converted to the REST query namespace |
qurl |
A named list of values to be converted to REST query parameters |
qbody |
A named list of values to be converted to JSON |
headers |
httr headers |
httr response
doRequestRemote()
doRequestRemote()
doSetSandbox
doSetSandbox(sandboxToSet, requester = NULL, base.url = .defaultBaseUrl)
doSetSandbox(sandboxToSet, requester = NULL, base.url = .defaultBaseUrl)
sandboxToSet |
sandbox to set |
requester |
requester |
base.url |
Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://127.0.0.1:1234 and the latest version of the CyREST API supported by this version of RCy3. |
None
doSetSandbox()
doSetSandbox()
Enable a previously installed and disabled app in Cytoscape.
enableApp(app, base.url = .defaultBaseUrl)
enableApp(app, base.url = .defaultBaseUrl)
app |
Name of app |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
None
enableApp()
enableApp()
Replaces the group node with member nodes for a set of groups.
expandGroup(groups = NULL, network = NULL, base.url = .defaultBaseUrl)
expandGroup(groups = NULL, network = NULL, base.url = .defaultBaseUrl)
groups |
(optional) List of group names or keywords: all, selected, unselected. Default is the currently selected group. |
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
None
expandGroup()
expandGroup()
Saves filters to file in JSON format.
exportFilters( filename = "filters.json", base.url = .defaultBaseUrl, overwriteFile = TRUE )
exportFilters( filename = "filters.json", base.url = .defaultBaseUrl, overwriteFile = TRUE )
filename |
(char) Full path or path relative to current working directory, in addition to the name of the file. Default is "filters.json" |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
overwriteFile |
(optional) FALSE allows an error to be generated if the file already exists; TRUE allows Cytoscape to overwrite it without asking. Default value is TRUE. |
Unlike other export functions, Cytoscape will automatically overwrite files with the same name. You will not be prompted to confirm or reject overwrite. Use carefully!
None
exportFilters()
exportFilters()
Saves the current network view as an image file.
exportImage( filename = NULL, type = "PNG", resolution = NULL, units = NULL, height = NULL, width = NULL, zoom = NULL, network = NULL, base.url = .defaultBaseUrl, overwriteFile = TRUE )
exportImage( filename = NULL, type = "PNG", resolution = NULL, units = NULL, height = NULL, width = NULL, zoom = NULL, network = NULL, base.url = .defaultBaseUrl, overwriteFile = TRUE )
filename |
( |
type |
( |
resolution |
( |
units |
( |
height |
( |
width |
( |
zoom |
( |
network |
(optional) Name or SUID of a network or view. Default is the "current" network active in Cytoscape. The first (presummably only) view associated a network is used if a specific view SUID is not provided. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
overwriteFile |
(optional) FALSE allows Cytoscape show a message box before overwriting the file if the file already exists; TRUE allows Cytoscape to overwrite it without asking. Default value is TRUE. |
The image is cropped per the current view in Cytoscape. Consider
applying fitContent
prior to export.
server response
exportImage('/fullpath/myNetwork','PDF')
exportImage('/fullpath/myNetwork','PDF')
Saves the current network view as an jpg file.
exportJPG( filename = NULL, allGraphicsDetails = TRUE, hideLabels = FALSE, zoom = NULL, network = NULL, base.url = .defaultBaseUrl, overwriteFile = TRUE )
exportJPG( filename = NULL, allGraphicsDetails = TRUE, hideLabels = FALSE, zoom = NULL, network = NULL, base.url = .defaultBaseUrl, overwriteFile = TRUE )
filename |
( |
allGraphicsDetails |
(optional): TRUE results in image with highest detail; False allows faster image generation. The default is TRUE. |
hideLabels |
(optional): TRUE makes node and edge labels invisible in image. False allows them to be drawn. The default is False. |
zoom |
( |
network |
(optional) Name or SUID of a network or view. Default is the "current" network active in Cytoscape. The first (presummably only) view associated a network is used if a specific view SUID is not provided. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
overwriteFile |
(optional) FALSE allows Cytoscape show a message box before overwriting the file if the file already exists; TRUE allows Cytoscape to overwrite it without asking. Default value is TRUE. |
Exports the current view to a graphics file and returns the path to the saved file. To speed up image export for large networks use the option 'allGraphicsDetails=FALSE'. Available for Cytoscape v3.10 or later.
server response
exportJPG('/fullpath/myNetwork')
exportJPG('/fullpath/myNetwork')
Export a network to one of mulitple file formats
exportNetwork( filename = NULL, type = "SIF", network = NULL, base.url = .defaultBaseUrl, overwriteFile = TRUE )
exportNetwork( filename = NULL, type = "SIF", network = NULL, base.url = .defaultBaseUrl, overwriteFile = TRUE )
filename |
Full path or path relative to current working directory,
in addition to the name of the file. Extension is automatically added based
on the |
type |
File type. SIF (default), CX, cyjs, graphML, NNF, xGMML. |
network |
(optional) Name or SUID of a network or view. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
overwriteFile |
(optional) FALSE allows Cytoscape show a message box before overwriting the file if the file already exists; TRUE. allows Cytoscape to overwrite it without asking. Default value is TRUE. |
None.
exportNetwork('/path/filename','SIF')
exportNetwork('/path/filename','SIF')
Send a copy of a Cytoscape network to NDEx as a new submission.
exportNetworkToNDEx( username, password, isPublic, network = NULL, metadata = NULL, ndex.url = "http://ndexbio.org", ndex.version = "v2", base.url = .defaultBaseUrl )
exportNetworkToNDEx( username, password, isPublic, network = NULL, metadata = NULL, ndex.url = "http://ndexbio.org", ndex.version = "v2", base.url = .defaultBaseUrl )
username |
NDEx account username |
password |
NDEx account password |
isPublic |
(Boolean) Whether to make the network publicly accessible at NDEx. |
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
metadata |
(optional) A list of structured information describing the network |
ndex.url |
(optional) For alternative instances or deployments of NDEx; default is "http://ndexbio.org" |
ndex.version |
(optional) For alternative versions of the NDEx API; default is "v2" |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
NDEx identifier (externalId
) for new submission
exportNetworkToNDEx("user", "pass", TRUE)
exportNetworkToNDEx("user", "pass", TRUE)
Saves the current network view as an pdf file.
exportPDF( filename = NULL, exportTextAsFont = TRUE, hideLabels = FALSE, pageSize = "Letter", orientation = "Portrait", network = NULL, base.url = .defaultBaseUrl, overwriteFile = TRUE )
exportPDF( filename = NULL, exportTextAsFont = TRUE, hideLabels = FALSE, pageSize = "Letter", orientation = "Portrait", network = NULL, base.url = .defaultBaseUrl, overwriteFile = TRUE )
filename |
( |
exportTextAsFont |
(optional): If TRUE (the default value), texts will be exported as fonts. |
hideLabels |
(optional): TRUE makes node and edge labels invisible in image. False allows them to be drawn. The default is False. |
pageSize |
(optional): (Auto|Letter|Legal|Tabloid|A0|A1|A2|A3|A4|A5) Predefined standard page size, or choose custom. Default is 'Letter'. |
orientation |
(optional): Page orientation, portrait or landscape. |
network |
(optional) Name or SUID of a network or view. Default is the "current" network active in Cytoscape. The first (presummably only) view associated a network is used if a specific view SUID is not provided. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
overwriteFile |
(optional) FALSE allows Cytoscape show a message box before overwriting the file if the file already exists; TRUE allows Cytoscape to overwrite it without asking. Default value is TRUE. |
Exports the current view to a graphics file and returns the path to the saved file. To speed up image export for large networks use the option 'allGraphicsDetails=FALSE'. Available for Cytoscape v3.10 or later.
server response
exportPDF('/fullpath/myNetwork')
exportPDF('/fullpath/myNetwork')
Saves the current network view as an png file.
exportPNG( filename = NULL, allGraphicsDetails = TRUE, hideLabels = FALSE, transparentBackground = FALSE, zoom = NULL, network = NULL, base.url = .defaultBaseUrl, overwriteFile = TRUE )
exportPNG( filename = NULL, allGraphicsDetails = TRUE, hideLabels = FALSE, transparentBackground = FALSE, zoom = NULL, network = NULL, base.url = .defaultBaseUrl, overwriteFile = TRUE )
filename |
( |
allGraphicsDetails |
(optional): TRUE results in image with highest detail; False allows faster image generation. The default is TRUE. |
hideLabels |
(optional): TRUE makes node and edge labels invisible in image. False allows them to be drawn. The default is False. |
transparentBackground |
(optional): TRUE causes background to be transparent. The default is FALSE. |
zoom |
( |
network |
(optional) Name or SUID of a network or view. Default is the "current" network active in Cytoscape. The first (presummably only) view associated a network is used if a specific view SUID is not provided. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
overwriteFile |
(optional) FALSE allows Cytoscape show a message box before overwriting the file if the file already exists; TRUE allows Cytoscape to overwrite it without asking. Default value is TRUE. |
Exports the current view to a graphics file and returns the path to the saved file. To speed up image export for large networks use the option 'allGraphicsDetails=FALSE'. Available for Cytoscape v3.10 or later.
server response
exportPNG('/fullpath/myNetwork')
exportPNG('/fullpath/myNetwork')
Saves the current network view as an ps file.
exportPS( filename = NULL, exportTextAsFont = TRUE, hideLabels = FALSE, network = NULL, base.url = .defaultBaseUrl, overwriteFile = TRUE )
exportPS( filename = NULL, exportTextAsFont = TRUE, hideLabels = FALSE, network = NULL, base.url = .defaultBaseUrl, overwriteFile = TRUE )
filename |
( |
exportTextAsFont |
(optional): If TRUE (the default value), texts will be exported as fonts. |
hideLabels |
(optional): TRUE makes node and edge labels invisible in image. False allows them to be drawn. The default is False. |
network |
(optional) Name or SUID of a network or view. Default is the "current" network active in Cytoscape. The first (presummably only) view associated a network is used if a specific view SUID is not provided. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
overwriteFile |
(optional) FALSE allows Cytoscape show a message box before overwriting the file if the file already exists; TRUE allows Cytoscape to overwrite it without asking. Default value is TRUE. |
Exports the current view to a graphics file and returns the path to the saved file. To speed up image export for large networks use the option 'allGraphicsDetails=FALSE'. Available for Cytoscape v3.10 or later.
server response
exportPS('/fullpath/myNetwork')
exportPS('/fullpath/myNetwork')
Saves the current network view as an svg file.
exportSVG( filename = NULL, exportTextAsFont = TRUE, hideLabels = FALSE, network = NULL, base.url = .defaultBaseUrl, overwriteFile = TRUE )
exportSVG( filename = NULL, exportTextAsFont = TRUE, hideLabels = FALSE, network = NULL, base.url = .defaultBaseUrl, overwriteFile = TRUE )
filename |
( |
exportTextAsFont |
(optional): If TRUE (the default value), texts will be exported as fonts. |
hideLabels |
(optional): TRUE makes node and edge labels invisible in image. False allows them to be drawn. The default is False. |
network |
(optional) Name or SUID of a network or view. Default is the "current" network active in Cytoscape. The first (presummably only) view associated a network is used if a specific view SUID is not provided. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
overwriteFile |
(optional) FALSE allows Cytoscape show a message box before overwriting the file if the file already exists; TRUE allows Cytoscape to overwrite it without asking. Default value is TRUE. |
Exports the current view to a graphics file and returns the path to the saved file. To speed up image export for large networks use the option 'allGraphicsDetails=FALSE'. Available for Cytoscape v3.10 or later.
server response
exportSVG('/fullpath/myNetwork')
exportSVG('/fullpath/myNetwork')
Save one or more visual styles to file.
exportVisualStyles( filename = NULL, type = "XML", styles = NULL, base.url = .defaultBaseUrl, overwriteFile = TRUE )
exportVisualStyles( filename = NULL, type = "XML", styles = NULL, base.url = .defaultBaseUrl, overwriteFile = TRUE )
filename |
(char) Full path or path relative to current
working directory, in addition to the name of the file. Extension is
automatically added based on the |
type |
(optional) Type of data file to export, e.g., XML, JSON (case sensitive). Default is XML. Note: Only XML can be read by importVisualStyles(). |
styles |
(optional) The styles to be exported, listed as a comma-separated string. If no styles are specified, only the current one is exported. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
overwriteFile |
(optional) FALSE allows Cytoscape show a message box before overwriting the file if the file already exists; TRUE. allows Cytoscape to overwrite it without asking. Default value is TRUE. |
Path to saved file
importVisualStyles
exportVisualStyles('/fullpath/myStyle') exportVisualStyles('/fullpath/myStyle', type = 'JSON') exportVisualStyles('/fullpath/myStyle', style = 'Minimal,default,Directed')
exportVisualStyles('/fullpath/myStyle') exportVisualStyles('/fullpath/myStyle', type = 'JSON') exportVisualStyles('/fullpath/myStyle', style = 'Minimal,default,Directed')
Figure out whether CyREST is local or remote. If remote, we'll want to go through Jupyter-Bridge.
findRemoteCytoscape(base.url = .defaultBaseUrl)
findRemoteCytoscape(base.url = .defaultBaseUrl)
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
None
findRemoteCytoscape()
findRemoteCytoscape()
Zoom and pan network view to maximize either height or width of current network window.
fitContent(selected.only = FALSE, network = NULL, base.url = .defaultBaseUrl)
fitContent(selected.only = FALSE, network = NULL, base.url = .defaultBaseUrl)
selected.only |
(Boolean) Whether to fit only current selection. Default is false, i.e., to fit the entire network. |
network |
(optional) Name or SUID of a network or view. Default is the "current" network active in Cytoscape. The first (presummably only) view associated a network is used if a specific view SUID is not provided. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
Takes first (presumably only) view associated with provided network
None
fitContent()
fitContent()
Pop out a panel from the UI of Cytoscape. Other panels will expand into the space.
floatPanel(panel.name, base.url = .defaultBaseUrl)
floatPanel(panel.name, base.url = .defaultBaseUrl)
panel.name |
Name of the panel. Multiple ways of referencing panels is supported: |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
None
floatPanel('table')
floatPanel('table')
Get absolute sandbox path.
getAbsSandboxPath(fileLocation)
getAbsSandboxPath(fileLocation)
fileLocation |
fileLocation |
file location
getAbsSandboxPath()
getAbsSandboxPath()
Retrieve the names of all the edges in the network.
getAllEdges(network = NULL, base.url = .defaultBaseUrl)
getAllEdges(network = NULL, base.url = .defaultBaseUrl)
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
list
of node edges
getAllEdges()
getAllEdges()
Retrieve the names of all the nodes in the network.
getAllNodes(network = NULL, base.url = .defaultBaseUrl)
getAllNodes(network = NULL, base.url = .defaultBaseUrl)
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
list
of node names
getAllNodes()
getAllNodes()
Retrieve the values the define all the mappings per visual property in a given style.
getAllStyleMappings(style.name = NULL, base.url = .defaultBaseUrl)
getAllStyleMappings(style.name = NULL, base.url = .defaultBaseUrl)
style.name |
Name for style; default is the 'default' style |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
List of lists with named values defining the visual property mappings
getStyleMapping()
getStyleMapping()
A list of named lists with annotation information
getAnnotationList(network = NULL, base.url = .defaultBaseUrl)
getAnnotationList(network = NULL, base.url = .defaultBaseUrl)
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
You can obtain a list of UUIDs by applying a subset function like so: sapply(getAnnotationList(), '[[', 'uuid')
RETURN_DESCRIPTION
getAnnotationList()
getAnnotationList()
Retrieve the name, brief description and version of a Cytoscape app.
getAppInformation(app, base.url = .defaultBaseUrl)
getAppInformation(app, base.url = .defaultBaseUrl)
app |
Name of app |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
App name, brief description and version.
getAppInformation()
getAppInformation()
Retrieve the current status of a Cytoscape app: Installed, Uninstalled or Disabled.
getAppStatus(app, base.url = .defaultBaseUrl)
getAppStatus(app, base.url = .defaultBaseUrl)
app |
Name of app |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
App name and status
getAppStatus()
getAppStatus()
Retrieve list of currently installed Cytoscape apps with updates available.
getAppUpdates(base.url = .defaultBaseUrl)
getAppUpdates(base.url = .defaultBaseUrl)
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
A list of updatable app names, versions and statuses
getAppUpdates()
getAppUpdates()
Retrieve the names of the currently supported 'arrows' – the decorations can (optionally) appear at the ends of edges, adjacent to the nodes they connect, and conveying information about the nature of the nodes' relationship.
getArrowShapes(base.url = .defaultBaseUrl)
getArrowShapes(base.url = .defaultBaseUrl)
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
A list of character
strings, e.g., 'DIAMOND', 'T', 'ARROW'
getArrowShapes()
getArrowShapes()
Retrieve a list of apps available for installation in Cytoscape.
getAvailableApps(base.url = .defaultBaseUrl)
getAvailableApps(base.url = .defaultBaseUrl)
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
A list of app names and latest versions
getAvailableApps()
getAvailableApps()
Retrieve the default background color.
getBackgroundColorDefault(style.name = NULL, base.url = .defaultBaseUrl)
getBackgroundColorDefault(style.name = NULL, base.url = .defaultBaseUrl)
style.name |
Name of style; default is "default" style |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
None
getBackgroundColorDefault()
getBackgroundColorDefault()
Get the unique channel
getBrowserClientChannel()
getBrowserClientChannel()
client channel
getBrowserClientChannel()
getBrowserClientChannel()
Prepend channel number of client Javascript so it can communicate with this process via Jupyter-bridge
getBrowserClientJs()
getBrowserClientJs()
Javascript inject code
getBrowserClientJs()
getBrowserClientJs()
FUNCTION_DESCRIPTION
getCollectionList(base.url = .defaultBaseUrl)
getCollectionList(base.url = .defaultBaseUrl)
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
RETURN_DESCRIPTION
getCollectionList()
getCollectionList()
FUNCTION_DESCRIPTION
getCollectionName(collection.suid = NULL, base.url = .defaultBaseUrl)
getCollectionName(collection.suid = NULL, base.url = .defaultBaseUrl)
collection.suid |
DESCRIPTION |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
RETURN_DESCRIPTION
getCollectionName()
getCollectionName()
FUNCTION_DESCRIPTION
getCollectionNetworks(collection.suid = NULL, base.url = .defaultBaseUrl)
getCollectionNetworks(collection.suid = NULL, base.url = .defaultBaseUrl)
collection.suid |
DESCRIPTION |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
RETURN_DESCRIPTION
getCollectionNetworks()
getCollectionNetworks()
FUNCTION_DESCRIPTION
getCollectionSuid(network = NULL, base.url = .defaultBaseUrl)
getCollectionSuid(network = NULL, base.url = .defaultBaseUrl)
network |
DESCRIPTION |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
RETURN_DESCRIPTION
getCollectionSuid()
getCollectionSuid()
Return both the current sandbox name and path.
getCurrentSandbox()
getCurrentSandbox()
current sandbox
getCurrentSandbox()
getCurrentSandbox()
Return the current sandbox name.
getCurrentSandboxName()
getCurrentSandboxName()
current sandbox name
getCurrentSandboxName()
getCurrentSandboxName()
Return the current sandbox path.
getCurrentSandboxPath()
getCurrentSandboxPath()
current sandbox path
getCurrentSandboxPath()
getCurrentSandboxPath()
Get the current visual style applied to a network.
getCurrentStyle(network = NULL, base.url = .defaultBaseUrl)
getCurrentStyle(network = NULL, base.url = .defaultBaseUrl)
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
Name of style
getCurrentStyle() getCurrentStyle('myNetwork')
getCurrentStyle() getCurrentStyle('myNetwork')
Return whatever is the current default sandbox properties.
getDefaultSandbox()
getDefaultSandbox()
default sandbox
getDefaultSandbox()
getDefaultSandbox()
Return the default path, which isn't one of the properties tracked in the default_sandbox.
getDefaultSandboxPath()
getDefaultSandboxPath()
default sandbox path
getDefaultSandboxPath()
getDefaultSandboxPath()
Retrieve list of currently disabled apps in Cytoscape.
getDisabledApps(base.url = .defaultBaseUrl)
getDisabledApps(base.url = .defaultBaseUrl)
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
A list of disabled app names, versions and statuses
getDisabledApps()
getDisabledApps()
Retrieve the actual line color of specified edges.
getEdgeColor(edge.names = NULL, network = NULL, base.url = .defaultBaseUrl)
getEdgeColor(edge.names = NULL, network = NULL, base.url = .defaultBaseUrl)
edge.names |
List of edge names or SUIDs. Default is NULL for all edges. |
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
Named list of property values
getEdgeColor()
getEdgeColor()
Reports the number of the edges in the network.
getEdgeCount(network = NULL, base.url = .defaultBaseUrl)
getEdgeCount(network = NULL, base.url = .defaultBaseUrl)
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
numeric
Alexander Pico, Tanja Muetze, Georgi Kolishovski, Paul Shannon
getEdgeCount()
getEdgeCount()
Returns source, target and edge table row values.
getEdgeInfo(edges, network = NULL, base.url = .defaultBaseUrl)
getEdgeInfo(edges, network = NULL, base.url = .defaultBaseUrl)
edges |
List of SUIDs or names of edges, i.e., values in the "name" column. Can also input a single edge. |
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
This function is kinda slow. It takes approximately 70ms per edge to return a result, e.g., 850 edges will take a one minute.
named list of lists
Alexander Pico
getEdgeInfo()
getEdgeInfo()
Retrieve the actual line style of specified edges.
getEdgeLineStyle(edge.names = NULL, network = NULL, base.url = .defaultBaseUrl)
getEdgeLineStyle(edge.names = NULL, network = NULL, base.url = .defaultBaseUrl)
edge.names |
List of edge names or SUIDs. Default is NULL for all edges. |
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
Named list of property values
getEdgeLineStyle()
getEdgeLineStyle()
Retrieve the actual line width of specified edges.
getEdgeLineWidth(edge.names = NULL, network = NULL, base.url = .defaultBaseUrl)
getEdgeLineWidth(edge.names = NULL, network = NULL, base.url = .defaultBaseUrl)
edge.names |
List of edge names or SUIDs. Default is NULL for all edges. |
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
Named list of property values
getEdgeLineWidth()
getEdgeLineWidth()
Get values for any edge property of the specified edges.
getEdgeProperty( edge.names = NULL, visual.property, network = NULL, base.url = .defaultBaseUrl )
getEdgeProperty( edge.names = NULL, visual.property, network = NULL, base.url = .defaultBaseUrl )
edge.names |
List of edge names or SUIDs. Default is NULL for all edges. |
visual.property |
Name of a visual property. See getVisualPropertyNames. |
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
This method retrieves the actual property of the node, given the current visual style, factoring together any default, mapping and bypass setting.
Named list of property values
getEdgeProperty(c('node 0 (pp) node 1','node 0 (pp) node 2'),'EDGE_WIDTH')
getEdgeProperty(c('node 0 (pp) node 1','node 0 (pp) node 2'),'EDGE_WIDTH')
Retrieve the default selected edge color.
getEdgeSelectionColorDefault(style.name = NULL, base.url = .defaultBaseUrl)
getEdgeSelectionColorDefault(style.name = NULL, base.url = .defaultBaseUrl)
style.name |
Name of style; default is "default" style |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
None
getEdgeSelectionColorDefault()
getEdgeSelectionColorDefault()
Retrieve the actual target arrow shape of specified edges.
getEdgeTargetArrowShape( edge.names = NULL, network = NULL, base.url = .defaultBaseUrl )
getEdgeTargetArrowShape( edge.names = NULL, network = NULL, base.url = .defaultBaseUrl )
edge.names |
List of edge names or SUIDs. Default is NULL for all edges. |
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
Named list of property values
getEdgeTargetArrowShape()
getEdgeTargetArrowShape()
Retrieve list of named filters in current session.
getFilterList(base.url = .defaultBaseUrl)
getFilterList(base.url = .defaultBaseUrl)
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
List of filter names
getFilterList()
getFilterList()
Returns a non-redundant list of first neighbors of the supplied list of nodes or current node selection.
getFirstNeighbors( node.names = NULL, as.nested.list = FALSE, network = NULL, base.url = .defaultBaseUrl )
getFirstNeighbors( node.names = NULL, as.nested.list = FALSE, network = NULL, base.url = .defaultBaseUrl )
node.names |
A |
as.nested.list |
|
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
A list of unique node names, optionally nested per query node name.
Alexander Pico, Tanja Muetze, Georgi Kolishovski, Paul Shannon
selectNodes selectFirstNeighbors
getFirstNeighbors()
getFirstNeighbors()
Retrieve information about a group by name or identifier.
getGroupInfo(group, network = NULL, base.url = .defaultBaseUrl)
getGroupInfo(group, network = NULL, base.url = .defaultBaseUrl)
group |
Group name or SUID. |
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
Group information
getGroupInfo('myGroup')
getGroupInfo('myGroup')
Retrieve list of currently installed apps in Cytoscape.
getInstalledApps(base.url = .defaultBaseUrl)
getInstalledApps(base.url = .defaultBaseUrl)
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
A list of installed app names, versions and statuses
getInstalledApps()
getInstalledApps()
Get the jupyter bridge server url
getJupyterBridgeURL()
getJupyterBridgeURL()
jupyter bridge server url
getJupyterBridgeURL()
getJupyterBridgeURL()
The Cytoscape 'Layout' menu lists many layout algorithms, but the names presented there are different from the names by which these algorithms are known to layout method. This method returns a named list in which the names are from the GUI, and the values identify the names you must use to choose an algorithms in the programmatic interface.
getLayoutNameMapping(base.url = .defaultBaseUrl)
getLayoutNameMapping(base.url = .defaultBaseUrl)
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
A named list
of character
strings
Alexander Pico, Tanja Muetze, Georgi Kolishovski, Paul Shannon
getLayoutNameMapping() # Degree Sorted Circle Layout Group Attributes Layout Edge-weighted Spring Embedded Layout # "degree-circle" "attributes-layout" "kamada-kawai"
getLayoutNameMapping() # Degree Sorted Circle Layout Group Attributes Layout Edge-weighted Spring Embedded Layout # "degree-circle" "attributes-layout" "kamada-kawai"
Retrieve the names of the currently supported layout algorithms. These may be used in subsequent calls to the 'layoutNetwork' function.
getLayoutNames(base.url = .defaultBaseUrl)
getLayoutNames(base.url = .defaultBaseUrl)
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
A list
of character
strings, e.g., "force-directed" "circular" "grid"
Alexander Pico, Tanja Muetze, Georgi Kolishovski, Paul Shannon
getLayoutNames() # [1] "degree-circle" "attributes-layout" "kamada-kawai" # [4] "force-directed" "cose" "hierarchical" # [7] "attribute-circle" "stacked-node-layout" "circular"
getLayoutNames() # [1] "degree-circle" "attributes-layout" "kamada-kawai" # [4] "force-directed" "cose" "hierarchical" # [7] "attribute-circle" "stacked-node-layout" "circular"
Returns a list of the tunable properties for the specified layout.
getLayoutPropertyNames(layout.name, base.url = .defaultBaseUrl)
getLayoutPropertyNames(layout.name, base.url = .defaultBaseUrl)
layout.name |
( |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
Run getLayoutNames to list available layouts.
A list
of character
strings
Alexander Pico, Tanja Muetze, Georgi Kolishovski, Paul Shannon
getLayoutPropertyNames('force-directed') # [1] "numIterations" "defaultSpringCoefficient" "defaultSpringLength" # [4] "defaultNodeMass" "isDeterministic" "singlePartition"
getLayoutPropertyNames('force-directed') # [1] "numIterations" "defaultSpringCoefficient" "defaultSpringLength" # [4] "defaultNodeMass" "isDeterministic" "singlePartition"
Returns the type of one of the tunable properties (property.name) for the specified layout.
getLayoutPropertyType(layout.name, property.name, base.url = .defaultBaseUrl)
getLayoutPropertyType(layout.name, property.name, base.url = .defaultBaseUrl)
layout.name |
( |
property.name |
( |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
Run getLayoutNames to list available layouts. Run getLayoutPropertyNames to list properties per layout.
A character
string specifying the type
Alexander Pico, Tanja Muetze, Georgi Kolishovski, Paul Shannon
getLayoutPropertyType('force-directed','defaultSpringLength') # "double"
getLayoutPropertyType('force-directed','defaultSpringLength') # "double"
Returns the appropriately typed value of the specified tunable property for the specified layout.
getLayoutPropertyValue(layout.name, property.name, base.url = .defaultBaseUrl)
getLayoutPropertyValue(layout.name, property.name, base.url = .defaultBaseUrl)
layout.name |
( |
property.name |
( |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
Run getLayoutNames to list available layouts. Run getLayoutPropertyNames to list properties per layout.
The current value set for this layout property. Typically an integer
, numeric
or character
string value.
Alexander Pico, Tanja Muetze, Georgi Kolishovski, Paul Shannon
getLayoutPropertyValue('force-directed','defaultSpringLength') # 80
getLayoutPropertyValue('force-directed','defaultSpringLength') # 80
Retrieve the names of the currently supported line types – values which can be used to render edges, and thus can be used in calls to 'setEdgeLineStyleRule'.
getLineStyles(base.url = .defaultBaseUrl)
getLineStyles(base.url = .defaultBaseUrl)
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
A list of character
strings, e.g., 'SOLID', 'DOT'
getLineStyles()
getLineStyles()
Retrieve the center of specified network.
getNetworkCenter(network = NULL, base.url = .defaultBaseUrl)
getNetworkCenter(network = NULL, base.url = .defaultBaseUrl)
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
Named list of property values
getNetworkCenter()
getNetworkCenter()
Returns the number of Cytoscape networks in the current Cytoscape session
getNetworkCount(base.url = .defaultBaseUrl)
getNetworkCount(base.url = .defaultBaseUrl)
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
numeric
Alexander Pico, Tanja Muetze, Georgi Kolishovski, Paul Shannon
getNetworkCount() # 3
getNetworkCount() # 3
Returns the list of Cytoscape network names in the current Cytoscape session
getNetworkList(getSUIDs = FALSE, base.url = .defaultBaseUrl)
getNetworkList(getSUIDs = FALSE, base.url = .defaultBaseUrl)
getSUIDs |
(optional) Whether to return SUIDs instead of titles; default is FALSE. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
list
Alexander Pico, Tanja Muetze, Georgi Kolishovski, Paul Shannon
getNetworkList() # 3
getNetworkList() # 3
Retrieve the title of a network
getNetworkName(suid = NULL, base.url = .defaultBaseUrl)
getNetworkName(suid = NULL, base.url = .defaultBaseUrl)
suid |
(optional) SUID of the network; default is current network. If a name is provided, then it is validated and returned. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
network name
getNetworkName() getNetworkName(1111)
getNetworkName() getNetworkName(1111)
Retrieve the NDEx externalId for a Cytoscape network, presuming it has already been exported to NDEx.
getNetworkNDExId(network = NULL, base.url = .defaultBaseUrl)
getNetworkNDExId(network = NULL, base.url = .defaultBaseUrl)
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
If the Cytoscape network is not associated with an NDEx network, the return value will be NULL.
NDEx identifier (externalId
) or NULL
getNetworkNDExId()
getNetworkNDExId()
Get values for any network property.
getNetworkProperty(visual.property, network = NULL, base.url = .defaultBaseUrl)
getNetworkProperty(visual.property, network = NULL, base.url = .defaultBaseUrl)
visual.property |
Name of a visual property. See getVisualPropertyNames. |
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
This method retrieves the actual property of the node, given the current visual style, factoring together any default, mapping and bypass setting.
Named list of property values
getNetworkProperty('NETWORK_SCALE_FACTOR')
getNetworkProperty('NETWORK_SCALE_FACTOR')
Retrieve the SUID of a network
getNetworkSuid(title = NULL, base.url = .defaultBaseUrl)
getNetworkSuid(title = NULL, base.url = .defaultBaseUrl)
title |
(optional) Name of the network; default is "current" network. If an SUID is provided, then it is validated and returned. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
(numeric
) Network suid
Alexander Pico
getNetworkSuid() getNetworkSuid("myNetwork") # 80
getNetworkSuid() getNetworkSuid("myNetwork") # 80
Retrieve list of network view SUIDs
getNetworkViews(network = NULL, base.url = .defaultBaseUrl)
getNetworkViews(network = NULL, base.url = .defaultBaseUrl)
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
List of network view SUIDs
getNetworkViews()
getNetworkViews()
Retrieve the SUID of a network view
getNetworkViewSuid(network = NULL, base.url = .defaultBaseUrl)
getNetworkViewSuid(network = NULL, base.url = .defaultBaseUrl)
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. If a network view SUID is provided, then it is validated and returned. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
(numeric
) Network view suid. The first (presumably only) view
associated a network is returned.
Alexander Pico
getNetworkViewSuid() getNetworkViewSuid("myNetwork") # 90
getNetworkViewSuid() getNetworkViewSuid("myNetwork") # 90
Retrieve the scale factor of specified network.
getNetworkZoom(network = NULL, base.url = .defaultBaseUrl)
getNetworkZoom(network = NULL, base.url = .defaultBaseUrl)
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
Named list of property values
getNetworkZoom()
getNetworkZoom()
Retrieve the actual fill color of specified nodes.
getNodeColor(node.names = NULL, network = NULL, base.url = .defaultBaseUrl)
getNodeColor(node.names = NULL, network = NULL, base.url = .defaultBaseUrl)
node.names |
List of node names or SUIDs. Default is NULL for all nodes. |
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
Named list of property values
getNodeColor()
getNodeColor()
Reports the number of nodes in the network.
getNodeCount(network = NULL, base.url = .defaultBaseUrl)
getNodeCount(network = NULL, base.url = .defaultBaseUrl)
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
numeric
Alexander Pico, Tanja Muetze, Georgi Kolishovski, Paul Shannon
getNodeCount()
getNodeCount()
Retrieve the actual height of specified nodes.
getNodeHeight(node.names = NULL, network = NULL, base.url = .defaultBaseUrl)
getNodeHeight(node.names = NULL, network = NULL, base.url = .defaultBaseUrl)
node.names |
List of node names or SUIDs. Default is NULL for all nodes. |
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
Named list of property values
getNodeHeight()
getNodeHeight()
Retrieve the actual label position of specified nodes.
getNodeLabelPosition( node.names = NULL, network = NULL, base.url = .defaultBaseUrl )
getNodeLabelPosition( node.names = NULL, network = NULL, base.url = .defaultBaseUrl )
node.names |
List of node names or SUIDs. Default is NULL for all nodes. |
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
Named list of property values
getNodeLabelPosition('Node 1')
getNodeLabelPosition('Node 1')
Retrieve the default selection node color.
getNodeLabelPositionDefault(style.name = NULL, base.url = .defaultBaseUrl)
getNodeLabelPositionDefault(style.name = NULL, base.url = .defaultBaseUrl)
style.name |
Name of style; default is "default" style |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
None
getNodeLabelPositionDefault()
getNodeLabelPositionDefault()
Retrieve the actual x,y position of specified nodes.
getNodePosition(node.names = NULL, network = NULL, base.url = .defaultBaseUrl)
getNodePosition(node.names = NULL, network = NULL, base.url = .defaultBaseUrl)
node.names |
List of node names or SUIDs. Default is NULL for all nodes. |
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
Dataframe of x, y values
getNodePosition()
getNodePosition()
Get values for any node property of the specified nodes.
getNodeProperty( node.names = NULL, visual.property, network = NULL, base.url = .defaultBaseUrl )
getNodeProperty( node.names = NULL, visual.property, network = NULL, base.url = .defaultBaseUrl )
node.names |
List of node names or SUIDs. Default is NULL for all nodes. |
visual.property |
Name of a visual property. See getVisualPropertyNames. |
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
This method retrieves the actual property of the node, given the current visual style, factoring together any default, mapping and bypass setting.
Named list of property values
getNodeProperty(c('node 0','node 1'),'NODE_SHAPE')
getNodeProperty(c('node 0','node 1'),'NODE_SHAPE')
Retrieve the default selection node color.
getNodeSelectionColorDefault(style.name = NULL, base.url = .defaultBaseUrl)
getNodeSelectionColorDefault(style.name = NULL, base.url = .defaultBaseUrl)
style.name |
Name of style; default is "default" style |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
None
getNodeSelectionColorDefault()
getNodeSelectionColorDefault()
Retrieve the names of the currently supported node shapes, which can then be used in calls to setNodeShapeRule and setDefaultVizMapValue.
getNodeShapes(base.url = .defaultBaseUrl)
getNodeShapes(base.url = .defaultBaseUrl)
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
A list of character
strings, e.g. 'ELLIPSE', 'RECTANGLE'
getNodeShapes()
getNodeShapes()
Retrieve the actual size of specified nodes.
getNodeSize(node.names = NULL, network = NULL, base.url = .defaultBaseUrl)
getNodeSize(node.names = NULL, network = NULL, base.url = .defaultBaseUrl)
node.names |
List of node names or SUIDs. Default is NULL for all nodes. |
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
Named list of property values
getNodeSize()
getNodeSize()
Retrieve the actual width of specified nodes.
getNodeWidth(node.names = NULL, network = NULL, base.url = .defaultBaseUrl)
getNodeWidth(node.names = NULL, network = NULL, base.url = .defaultBaseUrl)
node.names |
List of node names or SUIDs. Default is NULL for all nodes. |
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
Named list of property values
getNodeWidth()
getNodeWidth()
getNotebookIsRunning
getNotebookIsRunning()
getNotebookIsRunning()
None
getNotebookIsRunning()
getNotebookIsRunning()
Return flag indicating that next command should reinitialize the sandbox according to the default_sandbox.
getSandboxReinitialize()
getSandboxReinitialize()
sandbox reinitialize
getSandboxReinitialize()
getSandboxReinitialize()
Returns the number of edges currently selected in the network.
getSelectedEdgeCount(network = NULL, base.url = .defaultBaseUrl)
getSelectedEdgeCount(network = NULL, base.url = .defaultBaseUrl)
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
numeric
AlexanderPico, Tanja Muetze, Georgi Kolishovski, Paul Shannon
getSelectedEdgeCount()
getSelectedEdgeCount()
Retrieve the names of all the edges selected in the network.
getSelectedEdges( edge.suids = FALSE, network = NULL, base.url = .defaultBaseUrl )
getSelectedEdges( edge.suids = FALSE, network = NULL, base.url = .defaultBaseUrl )
edge.suids |
Whether to return edge SUIDs. Default is FALSE to return edge names. |
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
list
of selected edge names
getSelectedEdges()
getSelectedEdges()
Returns the number of nodes currently selected in the network.
getSelectedNodeCount(network = NULL, base.url = .defaultBaseUrl)
getSelectedNodeCount(network = NULL, base.url = .defaultBaseUrl)
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
numeric
AlexanderPico, Tanja Muetze, Georgi Kolishovski, Paul Shannon
getSelectedNodeCount()
getSelectedNodeCount()
Retrieve the names of all the nodes selected in the network.
getSelectedNodes( node.suids = FALSE, network = NULL, base.url = .defaultBaseUrl )
getSelectedNodes( node.suids = FALSE, network = NULL, base.url = .defaultBaseUrl )
node.suids |
Whether to return node SUIDs. Default is FALSE to return node names. |
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
list
of selected node names
AlexanderPico, Tanja Muetze, Georgi Kolishovski, Paul Shannon
getSelectedNodes()
getSelectedNodes()
Retrieves style dependency settings.
getStyleDependencies(style.name = NULL, base.url = .defaultBaseUrl)
getStyleDependencies(style.name = NULL, base.url = .defaultBaseUrl)
style.name |
Name of style; default is "default" style |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
server response
arrowColorMatchesEdge nodeCustomGraphicsSizeSync nodeSizeLocked
getStyleDependencies("myStyle")
getStyleDependencies("myStyle")
Retrieve the values the define the mappings for a given visual property in a style.
getStyleMapping(visual.prop, style.name = NULL, base.url = .defaultBaseUrl)
getStyleMapping(visual.prop, style.name = NULL, base.url = .defaultBaseUrl)
visual.prop |
Name of the visual property, e.g., NODE_FILL_COLOR |
style.name |
Name for style; default is the 'default' style |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
List of named values defining the visual property mappings
getVisualPropertyNames
getStyleMapping()
getStyleMapping()
Retrieve the names of all columns in a table
getTableColumnNames( table = "node", namespace = "default", network = NULL, base.url = .defaultBaseUrl )
getTableColumnNames( table = "node", namespace = "default", network = NULL, base.url = .defaultBaseUrl )
table |
name of table, e.g., node, edge, network; default is "node" |
namespace |
namespace of table, e.g., default |
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
list of column names
getTableColumnNames() getTableColumnNames('edge') getTableColumnNames('network')
getTableColumnNames() getTableColumnNames('edge') getTableColumnNames('network')
Retrieve one or more columns of data from node, edge or network tables.
getTableColumns( table = "node", columns = NULL, namespace = "default", network = NULL, base.url = .defaultBaseUrl )
getTableColumns( table = "node", columns = NULL, namespace = "default", network = NULL, base.url = .defaultBaseUrl )
table |
name of table, e.g., node (default), edge, network |
columns |
names of columns to retrieve values from as list object or comma-separated list; default is all columns |
namespace |
namespace of table; default is "default" |
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
The 'SUID' column is always retrieved along with specified columns.
The 'SUID' values are used as row.names
in the returned
data.frame
.
A data.frame
of column values
getTableColumns() getTableColumns('node','group')
getTableColumns() getTableColumns('node','group')
Retrieve the types of all columns in a table
getTableColumnTypes( table = "node", namespace = "default", network = NULL, base.url = .defaultBaseUrl )
getTableColumnTypes( table = "node", namespace = "default", network = NULL, base.url = .defaultBaseUrl )
table |
name of table, e.g., node, edge, network; default is "node" |
namespace |
namespace of table, e.g., default |
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
a named list of column types
getTableColumnTypes() getTableColumnTypes('edge') getTableColumnTypes('network')
getTableColumnTypes() getTableColumnTypes('edge') getTableColumnTypes('network')
Retrieve the value from a specific row and column from node, edge or network tables.
getTableValue( table, row.name, column, namespace = "default", network = NULL, base.url = .defaultBaseUrl )
getTableValue( table, row.name, column, namespace = "default", network = NULL, base.url = .defaultBaseUrl )
table |
name of table, e.g., node, edge, network |
row.name |
Node, edge or network name, i.e., the value in the "name" column |
column |
name of column to retrieve values from |
namespace |
namespace of table; default is "default" |
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
A data.frame
of column values
getTableValue('node','node 1', 'score')
getTableValue('node','node 1', 'score')
Retrieve list of apps not currently installed in Cytoscape.
getUninstalledApps(base.url = .defaultBaseUrl)
getUninstalledApps(base.url = .defaultBaseUrl)
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
A list of uninstalled app names, versions and statuses
getUninstalledApps()
getUninstalledApps()
Retrieve the default value for a visual property.
getVisualPropertyDefault( property, style.name = NULL, base.url = .defaultBaseUrl )
getVisualPropertyDefault( property, style.name = NULL, base.url = .defaultBaseUrl )
property |
Name of property, e.g., NODE_FILL_COLOR (see getVisualPropertyNames) |
style.name |
Name of style; default is "default" style |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
None
getVisualPropertyDefault('NODE_SIZE')
getVisualPropertyDefault('NODE_SIZE')
Retrieve the names of all possible visual properties.
getVisualPropertyNames(base.url = .defaultBaseUrl)
getVisualPropertyNames(base.url = .defaultBaseUrl)
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
List of names
getVisualPropertyNames()
getVisualPropertyNames()
Get all defaults and mappings for a visual style
getVisualStyleJSON(styleName, css = FALSE, base.url = .defaultBaseUrl)
getVisualStyleJSON(styleName, css = FALSE, base.url = .defaultBaseUrl)
styleName |
name of style |
css |
TRUE to create a CytoscapeJS CSS style, FALSE to create a generic JSON version. Default is FALSE. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
List of visual style properties
getVisualStyleJSON()
getVisualStyleJSON()
Retrieve a list of all visual style names.
getVisualStyleNames(base.url = .defaultBaseUrl)
getVisualStyleNames(base.url = .defaultBaseUrl)
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
A list of names
getVisualStyleNames()
getVisualStyleNames()
Group annotation from the network view in Cytoscape
groupAnnotation(names = NULL, network = NULL, base.url = .defaultBaseUrl)
groupAnnotation(names = NULL, network = NULL, base.url = .defaultBaseUrl)
names |
Name of annotation by UUID or Name |
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
You can obtain a list of UUIDs by applying a subset function like so: sapply(getAnnotationList(), '[[', 'uuid')
UUID of group annotation
groupAnnotation(c("29ac8349-7be4-404e-8363-9537cc39d1ad","3846e949-3130-4362-83de-d02f5368e3ad")) groupAnnotation(c("annotation1","annotation2", "annotation3")) groupAnnotation("annotation1") groupAnnotation(sapply(getAnnotationList(), '[[', 'uuid'))
groupAnnotation(c("29ac8349-7be4-404e-8363-9537cc39d1ad","3846e949-3130-4362-83de-d02f5368e3ad")) groupAnnotation(c("annotation1","annotation2", "annotation3")) groupAnnotation("annotation1") groupAnnotation(sapply(getAnnotationList(), '[[', 'uuid'))
Hide control, table, tool and results panels.
hideAllPanels(base.url = .defaultBaseUrl)
hideAllPanels(base.url = .defaultBaseUrl)
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
None
hideAllPanels()
hideAllPanels()
Hide (but do not delete) the specified edge or edges, by setting the Visible property bypass value to false.
hideEdges(edge.names, network = NULL, base.url = .defaultBaseUrl)
hideEdges(edge.names, network = NULL, base.url = .defaultBaseUrl)
edge.names |
List of edge names or SUIDs |
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
This method permanently overrides any default values or mappings defined for this visual property of the edge or edges specified. This method ultimately calls the generic function, setEdgePropertyBypass, which can be used to set any visual property. To restore defaults and mappings, use unhideEdges or unhideAll.
None
setEdgePropertyBypass, hideSelectedEdges, unhideEdges, unhideAll
hideEdges()
hideEdges()
Hide (but do not delete) the specified node or nodes, by setting the Visible property bypass value to false.
hideNodes(node.names, network = NULL, base.url = .defaultBaseUrl)
hideNodes(node.names, network = NULL, base.url = .defaultBaseUrl)
node.names |
List of node names or SUIDs |
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
This method permanently overrides any default values or mappings defined for this visual property of the node or nodes specified. This method ultimately calls the generic function, setNodePropertyBypass, which can be used to set any visual property. To restore defaults and mappings, use unhideNodes or unhideAll.
None
setNodePropertyBypass, hideSelectedNodes, unhideNodes, unhideAll
hideNodes()
hideNodes()
Hide a panel in the UI of Cytoscape. Other panels will expand into the space.
hidePanel(panel.name, base.url = .defaultBaseUrl)
hidePanel(panel.name, base.url = .defaultBaseUrl)
panel.name |
Name of the panel. Multiple ways of referencing panels is supported: |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
None
hidePanel('table')
hidePanel('table')
Hide (but do not delete) the currently selected edges, by setting the Visible property bypass value to false.
hideSelectedEdges(network = NULL, base.url = .defaultBaseUrl)
hideSelectedEdges(network = NULL, base.url = .defaultBaseUrl)
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
This method permanently overrides any default values or mappings defined for this visual property of the edge or edges specified. This method ultimately calls the generic function, setEdgePropertyBypass, which can be used to set any visual property. To restore defaults and mappings, use unhideEdges or unhideAll.
None
setEdgePropertyBypass, hideEdges, unhideEdges, unhideAll
hideSelectedEdges()
hideSelectedEdges()
Hide (but do not delete) the currently selected nodes, by setting the Visible property bypass value to false.
hideSelectedNodes(network = NULL, base.url = .defaultBaseUrl)
hideSelectedNodes(network = NULL, base.url = .defaultBaseUrl)
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
This method permanently overrides any default values or mappings defined for this visual property of the node or nodes specified. This method ultimately calls the generic function, setNodePropertyBypass, which can be used to set any visual property. To restore defaults and mappings, use unhideNodes or unhideAll.
None
setNodePropertyBypass, hideNodes, unhideNodes, unhideAll
hideSelectedNodes()
hideSelectedNodes()
The source URL identifies a file to be transferred from a cloud resource to either the to the current Cytoscape directory (if executing on the Cytoscape workstation) or sandbox (if executing on a remote server or a sandbox was explicitly created). If the destination file already exists, it is overwritten. The 'destFile' can be an absolute path if the workflow is executing on the local Cytoscape workstation. Supported URLs include: Raw URL: URL directly references the file to download (e.g., http://tpsoft.com/museum_images/IBM Dropbox: Use the standard Dropbox 'Get Link' feature to create the 'sourceUrl' link in the clipboard (e.g., https://www.dropbox.com/s/r15azh0xb53smu1/GDS112_full.soft?dl=0) GDrive: Use the standard Google Drive 'Get Link' feature to create the 'sourceUrl' link in the clipboard (e.g., https://drive.google.com/file/d/12sJaKQQbesF10xsrbgiNtUcqCQYY1YI3/view?usp=sharing) OneDrive: Use the OneDrive web site to right click on the file, choose the 'Embed' menu option, then copy the URL in the iframe's “src“ parameter into the clipboard (e.g., https://onedrive.live.com/embed?cid=C357475E90DD89C4&resid=C357475E90DD89C4 GitHub: Use the GitHub web site to show the file or a link to it, and capture the URL in the clipboard (e.g., https://github.com/cytoscape/file-transfer-app/blob/master/test_data/GDS112_full.soft) Note that GitHub enforces a limit on the size of a file that can be stored there. We advise that you take this into account when choosing a cloud service for your files. When you capture a URL in the clipboard, you should copy it into your program for use with this function. This function is most useful for Notebooks running on the local Cytoscape workstation. For Notebooks that could run on a remote server, consider using sandboxUrlTo() and related sandbox functions.
importFileFromUrl( sourceURL, destFile, overwrite = TRUE, base.url = .defaultBaseUrl )
importFileFromUrl( sourceURL, destFile, overwrite = TRUE, base.url = .defaultBaseUrl )
sourceURL |
URL addressing cloud file to download |
destFile |
Name of file in the R workflow's file system ... if None, use file name in source_file |
overwrite |
Name of sandbox containing file. None means "the current sandbox". |
base.url |
Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://127.0.0.1:1234 and the latest version of the CyREST API supported by this version of RCy3. |
dict: 'filePath': <new file's absolute path in Cytoscape workstation>, 'fileByteCount': number of bytes read
importFileFromUrl()
importFileFromUrl()
Loads filters from a file in JSON format.
importFilters(filename, base.url = .defaultBaseUrl)
importFilters(filename, base.url = .defaultBaseUrl)
filename |
(char) Path and name of the filters file to load. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
None
importFilters()
importFilters()
Loads a network from specified file
importNetworkFromFile(file = NULL, base.url = .defaultBaseUrl)
importNetworkFromFile(file = NULL, base.url = .defaultBaseUrl)
file |
Name of file in any of the supported formats (e.g., SIF, GML, xGMML, etc). If NULL, a demo network file in SIF format is loaded. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
(int) network SUID
importNetworkFromFile()
importNetworkFromFile()
Import a network from the NDEx database into Cytoscape.
importNetworkFromNDEx( ndex.id, username = NULL, password = NULL, accessKey = NULL, ndex.url = "http://ndexbio.org", ndex.version = "v2", base.url = .defaultBaseUrl )
importNetworkFromNDEx( ndex.id, username = NULL, password = NULL, accessKey = NULL, ndex.url = "http://ndexbio.org", ndex.version = "v2", base.url = .defaultBaseUrl )
ndex.id |
Network |
username |
(optional) NDEx account username; required for private content |
password |
(optional) NDEx account password; required for private content |
accessKey |
(optional) NDEx accessKey; alternate access to private content |
ndex.url |
(optional) For alternative instances or deployments of NDEx; default is "http://ndexbio.org" |
ndex.version |
(optional) For alternative versions of the NDEx API; default is "v2" |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
(integer) SUID of imported network
importNetworkFromNDEx(ndex.id)
importNetworkFromNDEx(ndex.id)
Loads styles from an XML file and returns the names of the loaded styles.
importVisualStyles(filename = "styles.xml", base.url = .defaultBaseUrl)
importVisualStyles(filename = "styles.xml", base.url = .defaultBaseUrl)
filename |
(char) Name of the style file to load. Only reads XML files. Default is "styles.xml". |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
(list) Names of styles loaded
exportVisualStyles
importVisualStyles()
importVisualStyles()
Installs an app in Cytoscape.
installApp(app, base.url = .defaultBaseUrl)
installApp(app, base.url = .defaultBaseUrl)
app |
Name of app |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
None
installApp()
installApp()
Select all edges that were not selected and deselect all edges that were selected.
invertEdgeSelection(network = NULL, base.url = .defaultBaseUrl)
invertEdgeSelection(network = NULL, base.url = .defaultBaseUrl)
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
list
of newly selected edge SUIDs
AlexanderPico, Tanja Muetze, Georgi Kolishovski, Paul Shannon
invertEdgeSelection()
invertEdgeSelection()
Select all nodes that were not selected and deselect all nodes that were selected.
invertNodeSelection(network = NULL, base.url = .defaultBaseUrl)
invertNodeSelection(network = NULL, base.url = .defaultBaseUrl)
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
list
of newly selected node SUIDs
AlexanderPico, Tanja Muetze, Georgi Kolishovski, Paul Shannon
invertNodeSelection()
invertNodeSelection()
Sets the coordinates for each node in the target network to the coordinates of a matching node in the source network.
layoutCopycat( sourceNetwork, targetNetwork, sourceColumn = "name", targetColumn = "name", gridUnmapped = TRUE, selectUnmapped = TRUE, base.url = .defaultBaseUrl )
layoutCopycat( sourceNetwork, targetNetwork, sourceColumn = "name", targetColumn = "name", gridUnmapped = TRUE, selectUnmapped = TRUE, base.url = .defaultBaseUrl )
sourceNetwork |
( |
targetNetwork |
( |
sourceColumn |
(optional |
targetColumn |
(optional |
gridUnmapped |
(optional |
selectUnmapped |
optional |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
Optional parameters such as gridUnmapped
and selectUnmapped
determine the behavior of target network nodes that could not be matched.
None
layoutCopycat('network1','network2')
layoutCopycat('network1','network2')
Apply a layout to a network
layoutNetwork(layout.name = NULL, network = NULL, base.url = .defaultBaseUrl)
layoutNetwork(layout.name = NULL, network = NULL, base.url = .defaultBaseUrl)
layout.name |
( |
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
Run getLayoutNames to list available layouts.
None
layoutNetwork() layoutNetwork('force-directed') layoutNetwork('force-directed defaultSpringCoefficient=.00006 defaultSpringLength=80')
layoutNetwork() layoutNetwork('force-directed') layoutNetwork('force-directed defaultSpringCoefficient=.00006 defaultSpringLength=80')
Retrieve a list of all group SUIDs in a network.
listGroups(network = NULL, base.url = .defaultBaseUrl)
listGroups(network = NULL, base.url = .defaultBaseUrl)
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
List of group SUIDs
listGroups()
listGroups()
This function loads data into Cytoscape node/edge/network tables provided a common key, e.g., name. Data.frame column names will be used to set Cytoscape table column names.
loadTableData( data, data.key.column = "row.names", table = "node", table.key.column = "name", namespace = "default", network = NULL, base.url = .defaultBaseUrl )
loadTableData( data, data.key.column = "row.names", table = "node", table.key.column = "name", namespace = "default", network = NULL, base.url = .defaultBaseUrl )
data |
(data.frame) each row is a node and columns contain node attributes |
data.key.column |
(char) name of data.frame column to use as key; default is "row.names" |
table |
(char) name of Cytoscape table to load data into, e.g., node, edge or network; default is "node" |
table.key.column |
(char) name of Cytoscape table column to use as key; default is "name" |
namespace |
namespace of table, e.g., default |
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
Numeric values will be stored as Doubles in Cytoscape tables. Integer values will be stored as Integers. Character or mixed values will be stored as Strings. Logical values will be stored as Boolean. Lists are stored as Lists by CyREST v3.9+. Existing columns with the same names will keep original type but values will be overwritten.
server response
Set a boolean value to have node width and height fixed to a single size value.
lockNodeDimensions(new.state, style.name = NULL, base.url = .defaultBaseUrl)
lockNodeDimensions(new.state, style.name = NULL, base.url = .defaultBaseUrl)
new.state |
(Boolean) Whether to lock node width and height |
style.name |
Name of style; default is "default" style |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
None
lockNodeDimensions(TRUE)
lockNodeDimensions(TRUE)
This function creates a simple graphNEL object with various node and edge attribute types to help demonstrate round trip conversion with Cytoscape networks via RCy3.
makeSimpleGraph()
makeSimpleGraph()
A graphNEL
object with a few nodes, edges and attributes
createNetworkFromGraph, createGraphFromNetwork, makeSimpleIgraph
{ makeSimpleGraph() }
{ makeSimpleGraph() }
This function creates a simple iGraph object with various node and edge attribute types to help demonstrate round trip conversion with Cytoscape networks via RCy3.
makeSimpleIgraph()
makeSimpleIgraph()
A igraph
object with a few nodes, edges and attributes
createNetworkFromIgraph, createIgraphFromNetwork, makeSimpleGraph
{ makeSimpleIgraph() }
{ makeSimpleIgraph() }
Perform identifier mapping using an existing column of supported identifiers to populate a new column with identifiers mapped to the originals.
mapTableColumn( column, species, map.from, map.to, force.single = TRUE, table = "node", namespace = "default", network = NULL, base.url = .defaultBaseUrl )
mapTableColumn( column, species, map.from, map.to, force.single = TRUE, table = "node", namespace = "default", network = NULL, base.url = .defaultBaseUrl )
column |
Name of column containing identifiers of type specified by
|
species |
Common name for species associated with identifiers, e.g., Human. See details. |
map.from |
Type of identifier found in specified |
map.to |
Type of identifier to populate in new column. See details. |
force.single |
(optional) Whether to return only first result in cases of one-to-many mappings; otherwise the new column will hold lists of identifiers. Default is TRUE. |
table |
(optional) Name of table, e.g., node (default), edge or network |
namespace |
(optional) Namespace of table, e.g., default (default), shared or hidden |
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
Supported species: Human, Mouse, Rat, Frog, Zebrafish, Fruit fly, Mosquito, Worm, Arabidopsis thaliana, Yeast, E. coli, Tuberculosis.
Supported identifier types (depending on species): Ensembl, Entrez Gene, Uniprot-TrEMBL, miRBase, UniGene, HGNC (symbols), MGI, RGD, SGD, ZFIN, FlyBase, WormBase, TAIR.
dataframe with map.from and map.to columns. Beware: if map.to is not unique, it will be suffixed with an incrementing number in parentheses, e.g., if mapIdentifiers is repeated on the same network. However, the original map.to column will be returned regardless.
mapped.cols <- mapTableColumn('name','Yeast','Ensembl','SGD') # name SGD #17920 YER145C S000000947 #17921 YMR058W S000004662 #17922 YJL190C S000003726 #...
mapped.cols <- mapTableColumn('name','Yeast','Ensembl','SGD') # name SGD #17920 YER145C S000000947 #17921 YMR058W S000004662 #17922 YJL190C S000003726 #...
Generates the appropriate data structure for the "mapping" parameter in updateStyleMapping.
mapVisualProperty( visual.prop, table.column, mapping.type, table.column.values, visual.prop.values, network = NULL, base.url = .defaultBaseUrl )
mapVisualProperty( visual.prop, table.column, mapping.type, table.column.values, visual.prop.values, network = NULL, base.url = .defaultBaseUrl )
visual.prop |
(char) name of visual property to map |
table.column |
(char) name of table column to map |
mapping.type |
(char) continuous, discrete or passthrough (c,d,p) |
table.column.values |
(list) list of values paired with visual.prop.values; skip for passthrough mapping |
visual.prop.values |
(list) list of values paired with table.column.values; skip for passthrough mapping |
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
The paired list of values must be of the same length or mapping will fail. For gradient mapping, you may include two additional visual.prop.values in the first and last positions to map respectively to values less than and greater than those specified in table.column.values. Mapping will also fail if the data type of table.column.values does not match that of the existing table.column. Note that all imported numeric data are stored as Integers or Doubles in Cytosacpe tables; and character or mixed data are stored as Strings.
(network=network, base.url=base.url) ready to convert into JSON by style mapping operations
Node Border Stroke | Edge Bend | Network Background Paint |
Node Border Paint | Edge Curved | Network Center X Location |
Node Border Transparency | Edge Label | Network Center Y Location |
Node Border Width | Edge Label Color | Network Center Z Location |
Node CustomGraphics 1-9 | Edge Label Font Face | Network Depth |
Node CustomGraphics Position 1-9 | Edge Label Font Size | Network Edge Selection |
Node CustomGraphics Size 1-9 | Edge Label Transparency | Network Height |
Node CustomPaint 1-9 | Edge Label Width | Network Node Selection |
Node Depth | Edge Line Type | Network Scale Factor |
Node Fill Color | Edge Paint | Network Size |
Node Height | Edge Selected | Network Title |
Node Label | Edge Selected Paint | Network Width |
Node Label Color | Edge Source Arrow Selected Paint | |
Node Label Font Face | Edge Source Arrow Shape | |
Node Label Font Size | Edge Source Arrow Size | |
Node Label Position | Edge Source Arrow Unselected Paint | |
Node Label Transparency | Edge Stroke Selected Paint | |
Node Label Width | Edge Stroke Unselected Paint | |
Node Network Image Visible | Edge Target Arrow Selected Paint | |
Node Paint | Edge Target Arrow Shape | |
Node Selected | Edge Target Arrow Size | |
Node Selected Paint | Edge Target Arrow Unselected Paint | |
Node Shape | Edge Tooltip | |
Node Size | Edge Transparency | |
Node Tooltip | Edge Unselected Paint | |
Node Transparency | Edge Visible | |
Node Visible | Edge Visual Property | |
Node Width | Edge Width | |
Node X Location | ||
Node Y Location | ||
Node Z Location | ||
updateStyleMapping getVisualPropertyNames
mapVisualProperty('node fill color','score','c',c(-4.0,0.0,9.0),c('#99CCFF','#FFFFFF','#FF7777')) mapVisualProperty('node shape','type','d',c('protein','metabolite'),c('ellipse','rectangle')) mapVisualProperty('node label','alias','p')
mapVisualProperty('node fill color','score','c',c(-4.0,0.0,9.0),c('#99CCFF','#FFFFFF','#FF7777')) mapVisualProperty('node shape','type','d',c('protein','metabolite'),c('ellipse','rectangle')) mapVisualProperty('node label','alias','p')
Set a boolean value to have arrow shapes share the same color as the edge.
matchArrowColorToEdge(new.state, style.name = NULL, base.url = .defaultBaseUrl)
matchArrowColorToEdge(new.state, style.name = NULL, base.url = .defaultBaseUrl)
new.state |
(Boolean) Whether to match arrow color to edge. |
style.name |
Name of style; default is "default" style |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
None
matchArrowColorToEdge(TRUE)
matchArrowColorToEdge(TRUE)
Combine networks via union, intersection, or difference operations. Lots of optional parameters choose from!
mergeNetworks( sources = NULL, title = NULL, operation = "union", nodeKeys = NULL, nodeMergeMap = NULL, nodesOnly = FALSE, edgeKeys = NULL, edgeMergeMap = NULL, networkMergeMap = NULL, inNetworkMerge = TRUE, base.url = .defaultBaseUrl )
mergeNetworks( sources = NULL, title = NULL, operation = "union", nodeKeys = NULL, nodeMergeMap = NULL, nodesOnly = FALSE, edgeKeys = NULL, edgeMergeMap = NULL, networkMergeMap = NULL, inNetworkMerge = TRUE, base.url = .defaultBaseUrl )
sources |
List of network names (max:2) to be merged. |
title |
(optional) Title of the resulting merged network. Default is a concatentation of operation and source network titles. |
operation |
(optional) Type of merge: union (default), intersection or difference. |
nodeKeys |
(optional) An order-dependent list of columns to match nodes across source networks. Default is "name" column for all sources. |
nodeMergeMap |
(optional) A list of column merge records specifying how to merge node table data. Each record should be of the form: c("network1 column", "network2 column", "merged column", "type"), where column names are provided and type is String, Integer, Double or List. |
nodesOnly |
(optional) If TRUE, this will merge the node tables and ignore edge and network table data. Default is FALSE. |
edgeKeys |
(optional) An order-dependent list of columns to match edges across source networks. Default is "name" column for all sources. |
edgeMergeMap |
(optional) A list of column merge records specifying how to merge edge table data. Each record should be of the form: c("network1 column", "network2 column", "merged column", "type"), where column names are provided and type is String, Integer, Double or List. |
networkMergeMap |
(optional) A list of column merge records specifying how to merge network table data. Each record should be of the form: c("network1 column", "network2 column", "merged column", "type"), where column names are provided and type is String, Integer, Double or List. |
inNetworkMerge |
(optional) If TRUE (default), nodes and edges with matching attributes in the same network will be merged. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
SUID of resulting merged network
mergeNetworks(c("Network 1", "Network 2"), "Merged Network") mergeNetworks(c("my network","string network"), "Merged Network", nodeKeys=c("HGNC","query term"))
mergeNetworks(c("Network 1", "Network 2"), "Merged Network") mergeNetworks(c("my network","string network"), "Merged Network", nodeKeys=c("HGNC","query term"))
Show network view in notebook output.
notebookExportShowImage( filename = "image", type = "PNG", resolution = NULL, units = NULL, height = NULL, width = NULL, zoom = NULL, sandboxName = NULL, network = NULL, base.url = .defaultBaseUrl, overwriteFile = TRUE )
notebookExportShowImage( filename = "image", type = "PNG", resolution = NULL, units = NULL, height = NULL, width = NULL, zoom = NULL, sandboxName = NULL, network = NULL, base.url = .defaultBaseUrl, overwriteFile = TRUE )
filename |
( |
type |
( |
resolution |
( |
units |
( |
height |
( |
width |
( |
zoom |
( |
sandboxName |
Name of sandbox containing file. None means "the current sandbox". |
network |
(optional) Name or SUID of a network or view. Default is the "current" network active in Cytoscape. The first (presummably only) view associated a network is used if a specific view SUID is not provided. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
overwriteFile |
(optional) FALSE allows Cytoscape show a message box before overwriting the file if the file already exists; TRUE allows Cytoscape to overwrite it without asking. Default value is TRUE. |
Show network view in notebook output.
display image
notebookExportShowImage()
notebookExportShowImage()
Show network view in notebook output.
notebookShowImage( filename = "image", type = "PNG", resolution = NULL, units = NULL, height = NULL, width = NULL, zoom = NULL, sandboxName = NULL, network = NULL, base.url = .defaultBaseUrl, overwriteFile = TRUE )
notebookShowImage( filename = "image", type = "PNG", resolution = NULL, units = NULL, height = NULL, width = NULL, zoom = NULL, sandboxName = NULL, network = NULL, base.url = .defaultBaseUrl, overwriteFile = TRUE )
filename |
( |
type |
( |
resolution |
( |
units |
( |
height |
( |
width |
( |
zoom |
( |
sandboxName |
Name of sandbox containing file. None means "the current sandbox". |
network |
(optional) Name or SUID of a network or view. Default is the "current" network active in Cytoscape. The first (presummably only) view associated a network is used if a specific view SUID is not provided. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
overwriteFile |
(optional) FALSE allows Cytoscape show a message box before overwriting the file if the file already exists; TRUE allows Cytoscape to overwrite it without asking. Default value is TRUE. |
Show network view in notebook output.
display image
notebookShowImage()
notebookShowImage()
Opens the Cytoscape App Store in a new tab in your default browser.
openAppStore(app, base.url = .defaultBaseUrl)
openAppStore(app, base.url = .defaultBaseUrl)
app |
Name of app |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
None
openAppStore()
openAppStore()
Open a session file or URL. This will clear all networks, tables and styles associated with current session. Be sure to saveSession first.
openSession(file.location = NULL, base.url = .defaultBaseUrl)
openSession(file.location = NULL, base.url = .defaultBaseUrl)
file.location |
File path or URL (with 'http' or 'https' prefix). Default is a sample session file. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
None
saveSession
openSession('/fullpath/mySession.CYS')
openSession('/fullpath/mySession.CYS')
Generate a qualitative Accent Brewer palette of a given size
paletteColorBrewerAccent(value.count = 3)
paletteColorBrewerAccent(value.count = 3)
value.count |
Number of colors to generate; min is 3 (default); max is 8 . See RColorBrewer::display.brewer.all() |
List of palette colors
paletteColorBrewerAccent()
paletteColorBrewerAccent()
Generate a sequential Blues Brewer palette of a given size
paletteColorBrewerBlues(value.count = 3)
paletteColorBrewerBlues(value.count = 3)
value.count |
Number of colors to generate; min is 3 (default); max is 9 . See RColorBrewer::display.brewer.all() |
List of palette colors
paletteColorBrewerBlues()
paletteColorBrewerBlues()
Generate a divergent BrBG Brewer palette of a given size
paletteColorBrewerBrBG(value.count = 3)
paletteColorBrewerBrBG(value.count = 3)
value.count |
Number of colors to generate; min is 3 (default); max is 9 . See RColorBrewer::display.brewer.all() |
List of palette colors
paletteColorBrewerBrBG()
paletteColorBrewerBrBG()
Generate a sequential BuGn Brewer palette of a given size
paletteColorBrewerBuGn(value.count = 3)
paletteColorBrewerBuGn(value.count = 3)
value.count |
Number of colors to generate; min is 3 (default); max is 9 . See RColorBrewer::display.brewer.all() |
List of palette colors
paletteColorBrewerBuGn()
paletteColorBrewerBuGn()
Generate a sequential BuPu Brewer palette of a given size
paletteColorBrewerBuPu(value.count = 3)
paletteColorBrewerBuPu(value.count = 3)
value.count |
Number of colors to generate; min is 3 (default); max is 9 . See RColorBrewer::display.brewer.all() |
List of palette colors
paletteColorBrewerBuPu()
paletteColorBrewerBuPu()
Generate a qualitative Dark2 Brewer palette of a given size
paletteColorBrewerDark2(value.count = 3)
paletteColorBrewerDark2(value.count = 3)
value.count |
Number of colors to generate; min is 3 (default); max is 8 . See RColorBrewer::display.brewer.all() |
List of palette colors
paletteColorBrewerDark2()
paletteColorBrewerDark2()
Generate a sequential GnBu Brewer palette of a given size
paletteColorBrewerGnBu(value.count = 3)
paletteColorBrewerGnBu(value.count = 3)
value.count |
Number of colors to generate; min is 3 (default); max is 9 . See RColorBrewer::display.brewer.all() |
List of palette colors
paletteColorBrewerGnBu()
paletteColorBrewerGnBu()
Generate a sequential Greens Brewer palette of a given size
paletteColorBrewerGreens(value.count = 3)
paletteColorBrewerGreens(value.count = 3)
value.count |
Number of colors to generate; min is 3 (default); max is 9 . See RColorBrewer::display.brewer.all() |
List of palette colors
paletteColorBrewerGreens()
paletteColorBrewerGreens()
Generate a sequential Greys Brewer palette of a given size
paletteColorBrewerGreys(value.count = 3)
paletteColorBrewerGreys(value.count = 3)
value.count |
Number of colors to generate; min is 3 (default); max is 9 . See RColorBrewer::display.brewer.all() |
List of palette colors
paletteColorBrewerGreys()
paletteColorBrewerGreys()
Generate a sequential Oranges Brewer palette of a given size
paletteColorBrewerOranges(value.count = 3)
paletteColorBrewerOranges(value.count = 3)
value.count |
Number of colors to generate; min is 3 (default); max is 9 . See RColorBrewer::display.brewer.all() |
List of palette colors
paletteColorBrewerOranges()
paletteColorBrewerOranges()
Generate a sequential OrRd Brewer palette of a given size
paletteColorBrewerOrRd(value.count = 3)
paletteColorBrewerOrRd(value.count = 3)
value.count |
Number of colors to generate; min is 3 (default); max is 9 . See RColorBrewer::display.brewer.all() |
List of palette colors
paletteColorBrewerOrRd()
paletteColorBrewerOrRd()
Generate a qualitative Paired Brewer palette of a given size
paletteColorBrewerPaired(value.count = 3)
paletteColorBrewerPaired(value.count = 3)
value.count |
Number of colors to generate; min is 3 (default); max is 12. See RColorBrewer::display.brewer.all() |
List of palette colors
paletteColorBrewerPaired()
paletteColorBrewerPaired()
Generate a qualitative Pastel1 Brewer palette of a given size
paletteColorBrewerPastel1(value.count = 3)
paletteColorBrewerPastel1(value.count = 3)
value.count |
Number of colors to generate; min is 3 (default); max is 9 . See RColorBrewer::display.brewer.all() |
List of palette colors
paletteColorBrewerPastel1()
paletteColorBrewerPastel1()
Generate a qualitative Pastel2 Brewer palette of a given size
paletteColorBrewerPastel2(value.count = 3)
paletteColorBrewerPastel2(value.count = 3)
value.count |
Number of colors to generate; min is 3 (default); max is 8 . See RColorBrewer::display.brewer.all() |
List of palette colors
paletteColorBrewerPastel2()
paletteColorBrewerPastel2()
Generate a divergent PiYG Brewer palette of a given size
paletteColorBrewerPiYG(value.count = 3)
paletteColorBrewerPiYG(value.count = 3)
value.count |
Number of colors to generate; min is 3 (default); max is 9 . See RColorBrewer::display.brewer.all() |
List of palette colors
paletteColorBrewerPiYG()
paletteColorBrewerPiYG()
Generate a divergent PRGn Brewer palette of a given size
paletteColorBrewerPRGn(value.count = 3)
paletteColorBrewerPRGn(value.count = 3)
value.count |
Number of colors to generate; min is 3 (default); max is 9 . See RColorBrewer::display.brewer.all() |
List of palette colors
paletteColorBrewerPRGn()
paletteColorBrewerPRGn()
Generate a sequential PuBu Brewer palette of a given size
paletteColorBrewerPuBu(value.count = 3)
paletteColorBrewerPuBu(value.count = 3)
value.count |
Number of colors to generate; min is 3 (default); max is 9 . See RColorBrewer::display.brewer.all() |
List of palette colors
paletteColorBrewerPuBu()
paletteColorBrewerPuBu()
Generate a sequential PuBuGn Brewer palette of a given size
paletteColorBrewerPuBuGn(value.count = 3)
paletteColorBrewerPuBuGn(value.count = 3)
value.count |
Number of colors to generate; min is 3 (default); max is 9 . See RColorBrewer::display.brewer.all() |
List of palette colors
paletteColorBrewerPuBuGn()
paletteColorBrewerPuBuGn()
Generate a divergent PuOr Brewer palette of a given size
paletteColorBrewerPuOr(value.count = 3)
paletteColorBrewerPuOr(value.count = 3)
value.count |
Number of colors to generate; min is 3 (default); max is 9 . See RColorBrewer::display.brewer.all() |
List of palette colors
paletteColorBrewerPuOr()
paletteColorBrewerPuOr()
Generate a sequential PuRd Brewer palette of a given size
paletteColorBrewerPuRd(value.count = 3)
paletteColorBrewerPuRd(value.count = 3)
value.count |
Number of colors to generate; min is 3 (default); max is 9 . See RColorBrewer::display.brewer.all() |
List of palette colors
paletteColorBrewerPuRd()
paletteColorBrewerPuRd()
Generate a sequential Purples Brewer palette of a given size
paletteColorBrewerPurples(value.count = 3)
paletteColorBrewerPurples(value.count = 3)
value.count |
Number of colors to generate; min is 3 (default); max is 9 . See RColorBrewer::display.brewer.all() |
List of palette colors
paletteColorBrewerPurples()
paletteColorBrewerPurples()
Generate a divergent RdBu Brewer palette of a given size
paletteColorBrewerRdBu(value.count = 3)
paletteColorBrewerRdBu(value.count = 3)
value.count |
Number of colors to generate; min is 3 (default); max is 9 . See RColorBrewer::display.brewer.all() |
List of palette colors
paletteColorBrewerRdBu()
paletteColorBrewerRdBu()
Generate a sequential RdPu Brewer palette of a given size
paletteColorBrewerRdPu(value.count = 3)
paletteColorBrewerRdPu(value.count = 3)
value.count |
Number of colors to generate; min is 3 (default); max is 9 . See RColorBrewer::display.brewer.all() |
List of palette colors
paletteColorBrewerRdPu()
paletteColorBrewerRdPu()
Generate a divergent RdYlBu Brewer palette of a given size
paletteColorBrewerRdYlBu(value.count = 3)
paletteColorBrewerRdYlBu(value.count = 3)
value.count |
Number of colors to generate; min is 3 (default); max is 9 . See RColorBrewer::display.brewer.all() |
List of palette colors
paletteColorBrewerRdYlBu()
paletteColorBrewerRdYlBu()
Generate a sequential Reds Brewer palette of a given size
paletteColorBrewerReds(value.count = 3)
paletteColorBrewerReds(value.count = 3)
value.count |
Number of colors to generate; min is 3 (default); max is 9 . See RColorBrewer::display.brewer.all() |
List of palette colors
paletteColorBrewerReds()
paletteColorBrewerReds()
Generate a qualitative Set1 Brewer palette of a given size
paletteColorBrewerSet1(value.count = 3)
paletteColorBrewerSet1(value.count = 3)
value.count |
Number of colors to generate; min is 3 (default); max is 9 . See RColorBrewer::display.brewer.all() |
List of palette colors
paletteColorBrewerSet1()
paletteColorBrewerSet1()
Generate a qualitative Set2 Brewer palette of a given size
paletteColorBrewerSet2(value.count = 3)
paletteColorBrewerSet2(value.count = 3)
value.count |
Number of colors to generate; min is 3 (default); max is 8 . See RColorBrewer::display.brewer.all() |
List of palette colors
paletteColorBrewerSet2()
paletteColorBrewerSet2()
Generate a qualitative Set3 Brewer palette of a given size
paletteColorBrewerSet3(value.count = 3)
paletteColorBrewerSet3(value.count = 3)
value.count |
Number of colors to generate; min is 3 (default); max is 12. See RColorBrewer::display.brewer.all() |
List of palette colors
paletteColorBrewerSet3()
paletteColorBrewerSet3()
Generate a sequential YlGn Brewer palette of a given size
paletteColorBrewerYlGn(value.count = 3)
paletteColorBrewerYlGn(value.count = 3)
value.count |
Number of colors to generate; min is 3 (default); max is 9 . See RColorBrewer::display.brewer.all() |
List of palette colors
paletteColorBrewerYlGn()
paletteColorBrewerYlGn()
Generate a sequential YlGnBu Brewer palette of a given size
paletteColorBrewerYlGnBu(value.count = 3)
paletteColorBrewerYlGnBu(value.count = 3)
value.count |
Number of colors to generate; min is 3 (default); max is 9 . See RColorBrewer::display.brewer.all() |
List of palette colors
paletteColorBrewerYlGnBu()
paletteColorBrewerYlGnBu()
Generate a sequential YlOrBr Brewer palette of a given size
paletteColorBrewerYlOrBr(value.count = 3)
paletteColorBrewerYlOrBr(value.count = 3)
value.count |
Number of colors to generate; min is 3 (default); max is 9 . See RColorBrewer::display.brewer.all() |
List of palette colors
paletteColorBrewerYlOrBr()
paletteColorBrewerYlOrBr()
Generate a sequential YlOrRd Brewer palette of a given size
paletteColorBrewerYlOrRd(value.count = 3)
paletteColorBrewerYlOrRd(value.count = 3)
value.count |
Number of colors to generate; min is 3 (default); max is 9 . See RColorBrewer::display.brewer.all() |
List of palette colors
paletteColorBrewerYlOrRd()
paletteColorBrewerYlOrRd()
Generate a qualitative random color map of a given size
paletteColorRandom(value.count = 1)
paletteColorRandom(value.count = 1)
value.count |
Number of colors to generate; default is 1 |
List of random colors
genNodeColorMap genEdgeColorMap
paletteColorRandom()
paletteColorRandom()
Generate a Virdis Brewer palette of a given size
paletteColorVirdis(value.count = 3)
paletteColorVirdis(value.count = 3)
value.count |
Number of colors to generate; min is 3 (default); max is 9 Get colors from viridis: Colorblind-Friendly Color Maps for R . See virdis::virdis() |
List of palette colors
paletteColorVirdis()
paletteColorVirdis()
Vizualize, analyze and explore networks using Cytoscape via R.
To learn more about RCy3, start with the vignettes:
browseVignettes("RCy3")
Maintainer: Alex Pico [email protected] (ORCID)
Authors:
Tanja Muetze [email protected]
Paul Shannon [email protected]
Other contributors:
Ruth Isserlin [contributor]
Shraddha Pai [contributor]
Julia Gustavsen [contributor]
Georgi Kolishovski [contributor]
Yihang Xin [email protected] [contributor]
Useful links:
Removes the specified nodes and edges from the specified group.
RemoveFromGroup( group.name, nodes = NULL, nodes.by.col = "SUID", edges = NULL, edges.by.col = "SUID", network = NULL, base.url = .defaultBaseUrl )
RemoveFromGroup( group.name, nodes = NULL, nodes.by.col = "SUID", edges = NULL, edges.by.col = "SUID", network = NULL, base.url = .defaultBaseUrl )
group.name |
Specifies the name used to identify the group |
nodes |
List of node SUIDs, names, other column values, or keyword: selected, unselected or all. Default is currently selected nodes. |
nodes.by.col |
name of node table column corresponding to provided nodes list. Default is 'SUID'. |
edges |
List of edge SUIDs, names, other column values, or keyword: selected, unselected or all. Default is currently selected edges. |
edges.by.col |
name of edge table column corresponding to provided edges list. Default is 'SUID'. |
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
None
RemoveFromGroup('myGroup')
RemoveFromGroup('myGroup')
Remove the default custom charts, images and gradients.
removeNodeCustomGraphics( slot = 1, style.name = NULL, base.url = .defaultBaseUrl )
removeNodeCustomGraphics( slot = 1, style.name = NULL, base.url = .defaultBaseUrl )
slot |
(optional) Which custom graphics slot to modify. Slots 1-9 are available for independent charts, gradients and images. Default is 1. |
style.name |
(optional) Name of style; default is "default" style |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
None
removeNodeCustomGraphics()
removeNodeCustomGraphics()
Sets a new name for this network
renameNetwork(title, network = NULL, base.url = .defaultBaseUrl)
renameNetwork(title, network = NULL, base.url = .defaultBaseUrl)
title |
New name for the network |
network |
(optional) Name or suid of the network that you want to rename; default is "current" network |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
Duplicate network names are not allowed
None
Alexander Pico, Julia Gustavsen
renameNetwork("renamed network")
renameNetwork("renamed network")
Sets a new name for a column.
renameTableColumn( column, new.name, table = "node", namespace = "default", network = NULL, base.url = .defaultBaseUrl )
renameTableColumn( column, new.name, table = "node", namespace = "default", network = NULL, base.url = .defaultBaseUrl )
column |
Name of the column to rename |
new.name |
New name for the specified column |
table |
(optional) Name of table, e.g., node (default), edge or network |
namespace |
(optional) Namespace of table, e.g., default (default), shared or hidden |
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
None
renameTableColumn('exp','log2FC')
renameTableColumn('exp','log2FC')
Reset the entire state of the sandbox system.
resetDefaultSandbox()
resetDefaultSandbox()
None
resetDefaultSandbox()
resetDefaultSandbox()
Rotate the layout.
rotateLayout( angle, selected.only = FALSE, network = NULL, base.url = .defaultBaseUrl )
rotateLayout( angle, selected.only = FALSE, network = NULL, base.url = .defaultBaseUrl )
angle |
The angle (in degrees) to rotate the network. From -180 to 180 |
selected.only |
(Boolean) Whether to rotate only current selection. Default is false. |
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
None
Yihang Xin
rotateLayout(90, 'current', selected.only=FALSE)
rotateLayout(90, 'current', selected.only=FALSE)
runningRmoteCheck
runningRemoteCheck(base.url = .defaultBaseUrl, newState = NULL)
runningRemoteCheck(base.url = .defaultBaseUrl, newState = NULL)
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
newState |
new state of running remote |
oldState
runningRmoteCheck()
runningRmoteCheck()
Get metadata on file in sandbox (or entire sandbox). If the current sandbox is the entire file system on a Cytoscape workstation, trying to delete it is an error. Otherwise, deleting the current sandbox results in the default sandbox becoming the new current sandbox. When running standalone on the same workstation as Cytoscape, the default sandbox is the entire file system on the Cytoscape workstation. When running in a Notebook or remote server, the default sandbox is the 'default_sandbox' created automatically under the under the filetransfer directory in the CytoscapeConfiguration directory. If that sandbox is deleted, it will be re-created so that subsequent file operations can complete successfully. Note that this function can be used to query either a file or a directory.
sandboxGetFileInfo(fileName, sandboxName = NULL, base.url = .defaultBaseUrl)
sandboxGetFileInfo(fileName, sandboxName = NULL, base.url = .defaultBaseUrl)
fileName |
Name of file whose metadata to return ... can be sandbox-relative path ... “.“ returns metadata on sandbox itself |
sandboxName |
Name of sandbox containing file. None means "the current sandbox". |
base.url |
Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://127.0.0.1:1234 and the latest version of the CyREST API supported by this version of RCy3. |
dict: 'filePath': <full path on Cytoscape workstation>, 'modifiedTime': <last changed time, ” if file doesn't exist>, 'isFile': <True if file, False if directory>
sandboxGetFileInfo()
sandboxGetFileInfo()
Transfer a file from a sandbox. The source file is transferred from the named (or current) sandbox to the R workflow's file system, overwriting an existing file if one already exists. The sourceFile can be an absolute path if the sandbox is the entire file system (i.e., for standalone R execution) or a path relative to the sandbox (i.e., for Notebook or remote execution or if a sandbox was explicitly created).
sandboxGetFrom( sourceFile, destFile = NULL, overwrite = TRUE, sandboxName = NULL, base.url = .defaultBaseUrl )
sandboxGetFrom( sourceFile, destFile = NULL, overwrite = TRUE, sandboxName = NULL, base.url = .defaultBaseUrl )
sourceFile |
Name of file to read (as absolute path or sandbox-relative path) |
destFile |
Name of file in the R workflow's file system ... if None, use file name in source_file |
overwrite |
Name of sandbox containing file. None means "the current sandbox". |
sandboxName |
Name of sandbox containing file. None means "the current sandbox". |
base.url |
Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://127.0.0.1:1234 and the latest version of the CyREST API supported by this version of RCy3. |
sandboxGetFrom
sandboxGetFrom()
sandboxGetFrom()
Start with a sandbox template and update properties using whatever is found in the new_sandbox.
sandboxInitializer(newSandbox = NULL, ...)
sandboxInitializer(newSandbox = NULL, ...)
newSandbox |
newSandbox |
... |
... |
sandbox
sandboxInitializer()
sandboxInitializer()
Delete sandbox contents and remove its directory. If the current sandbox is the entire file system on a Cytoscape workstation, trying to delete it is an error. Otherwise, deleting the current sandbox results in the default sandbox becoming the new current sandbox. When running standalone on the same workstation as Cytoscape, the default sandbox is the entire file system on the Cytoscape workstation. When running in a Notebook or remote server, the default sandbox is the 'default_sandbox' created automatically under the under the filetransfer directory in the CytoscapeConfiguration directory. If that sandbox is deleted, it will be re-created so that subsequent file operations can complete successfully.
sandboxRemove(sandboxName = NULL, base.url = .defaultBaseUrl)
sandboxRemove(sandboxName = NULL, base.url = .defaultBaseUrl)
sandboxName |
Name of sandbox to delete. None means to delete the current sandbox. If that sandbox is the default sandbox, it is automatically re-created. |
base.url |
Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://127.0.0.1:1234 and the latest version of the CyREST API supported by this version of RCy3. |
dict: 'sandboxPath': <directory on Cytoscape workstation>, 'existed': <True if sandbox existed>
sandboxRemove()
sandboxRemove()
Remove a file from a sandbox. The named file is removed from the named sandbox. If the sandbox is the entire file system (i.e., for standalone R execution), the file name can be an absolute path. Otherwise, it is a path relative to the named sandbox. Note that there is no function that deletes a directory, except for sandboxRemove(), which deletes a sandbox and all of its contents.
sandboxRemoveFile(fileName, sandboxName = NULL, base.url = .defaultBaseUrl)
sandboxRemoveFile(fileName, sandboxName = NULL, base.url = .defaultBaseUrl)
fileName |
Name of file to delete (as absolute path or sandbox-relative path) |
sandboxName |
Name of sandbox containing file. None means "the current sandbox". |
base.url |
Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://127.0.0.1:1234 and the latest version of the CyREST API supported by this version of RCy3. |
dict: 'filePath': <file's absolute path in Cytoscape workstation>, 'existed': True if file existed before being deleted
sandboxRemoveFile()
sandboxRemoveFile()
Transfer a file to a sandbox. The source file is transferred to the named (or current) sandbox, overwriting an existing file if one already exists. The destFile can be an absolute path if the sandbox is the entire file system (i.e., for standalone R execution) or a path relative to the sandbox (i.e., for Notebook or remote execution or if a sandbox was explicitly created). Note that there is no function that transfers an entire directory. Note, though, that when using sandboxSet() to make a sandbox current, it is possible to copy the Cytoscape sample data directories into to the sandbox at the same time.
sandboxSendTo( sourceFile, destFile = NULL, overwrite = TRUE, sandboxName = NULL, base.url = .defaultBaseUrl )
sandboxSendTo( sourceFile, destFile = NULL, overwrite = TRUE, sandboxName = NULL, base.url = .defaultBaseUrl )
sourceFile |
Name of file to read (as absolute path or sandbox-relative path) |
destFile |
Name of file in the R workflow's file system ... if None, use file name in source_file |
overwrite |
Name of sandbox containing file. None means "the current sandbox". |
sandboxName |
Name of sandbox containing file. None means "the current sandbox". |
base.url |
Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://127.0.0.1:1234 and the latest version of the CyREST API supported by this version of RCy3. |
sandboxSendTo
sandboxSendTo()
sandboxSendTo()
Set a new default sandbox, creating it if necessary. A sandbox is the root for the file system used for all file operations. When running standalone on the same workstation as Cytoscape, the default sandbox is the directory that's current for the R kernel. When running in a Notebook or remote server, the default sandbox is the 'default_sandbox' created automatically under the under the filetransfer directory in the CytoscapeConfiguration directory. Naming a sandbox with this function creates a new sub-directory as a sibling to 'default_sandbox' and uses it for subsequent file operations. Setting a None sandbox uses the default sandbox instead. Sandboxes are highly recommended as an aid to creating workflows that can be shared with others.
sandboxSet( sandboxName, copySamples = TRUE, reinitialize = TRUE, base.url = .defaultBaseUrl )
sandboxSet( sandboxName, copySamples = TRUE, reinitialize = TRUE, base.url = .defaultBaseUrl )
sandboxName |
Name of new default sandbox. None means to use the original default sandbox |
copySamples |
True to copy the Cytoscape sampleData into the sandbox |
reinitialize |
True to delete sandbox contents (if any) if sandbox already exists |
base.url |
Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://127.0.0.1:1234 and the latest version of the CyREST API supported by this version of RCy3. |
sandbox path in Cytoscape workstation's file system
sandboxSet()
sandboxSet()
Transfer a cloud-based file to a sandbox. The source URL identifies a file to be transferred to the named (or current) sandbox, overwriting an existing file if one already exists. The destFile can be an absolute path if the sandbox is the entire file system (i.e., for standalone R execution), or it can be a path relative to the sandbox (i.e., for Notebook or remote execution or if a sandbox was explicitly created).
sandboxUrlTo( sourceURL, destFile, overwrite = TRUE, sandboxName = NULL, base.url = .defaultBaseUrl )
sandboxUrlTo( sourceURL, destFile, overwrite = TRUE, sandboxName = NULL, base.url = .defaultBaseUrl )
sourceURL |
URL addressing cloud file to download |
destFile |
Name of file in the R workflow's file system ... if None, use file name in source_file |
overwrite |
Name of sandbox containing file. None means "the current sandbox". |
sandboxName |
Name of sandbox containing file. None means "the current sandbox". |
base.url |
Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://127.0.0.1:1234 and the latest version of the CyREST API supported by this version of RCy3. |
dict: 'filePath': <new file's absolute path in Cytoscape workstation>, 'fileByteCount': number of bytes read
sandboxUrlTo()
sandboxUrlTo()
Saves the current Cytoscape session as a CYS file.
saveSession(filename = NULL, base.url = .defaultBaseUrl, overwriteFile = TRUE)
saveSession(filename = NULL, base.url = .defaultBaseUrl, overwriteFile = TRUE)
filename |
Full path or path relative to current working directory,
in addition to the name of the file. The |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
overwriteFile |
(optional) FALSE allows an error to be generated if the file already exists; TRUE allows Cytoscape to overwrite it without asking. Default value is TRUE. |
If no filename
is provided, then it attempts to
save to an existing CYS file associated with the session. If
filename
already exists, then it is overwritten.
Unlike most export functions in RCy3, Cytoscape will automatically overwrite CYS session files with the same name. You will not be prompted to confirm or reject overwrite. Use carefully!
server response
saveSession('/fullpath/mySession') saveSession()
saveSession('/fullpath/mySession') saveSession()
Scale the layout in either the X, Y, or both directions.
scaleLayout( axis, scaleFactor, selected.only = FALSE, network = NULL, base.url = .defaultBaseUrl )
scaleLayout( axis, scaleFactor, selected.only = FALSE, network = NULL, base.url = .defaultBaseUrl )
axis |
The axis to scale. Options: "X Axis", "Y Axis", "Both Axes". |
scaleFactor |
The axis The scale factor to apply to the network. |
selected.only |
(Boolean) Whether to rotate only current selection. Default is false. |
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
None
Yihang Xin
scaleLayout('X Axis', 2, 'current', selected.only=FALSE)
scaleLayout('X Axis', 2, 'current', selected.only=FALSE)
Selects all nodes and edges in a Cytoscape Network
selectAll(network = NULL, base.url = .defaultBaseUrl)
selectAll(network = NULL, base.url = .defaultBaseUrl)
network |
(optional) Name or SUID of the network into which you want to select; default is "current" network |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
Selects all nodes and edges in a specified network.
Alexander Pico, Julia Gustavsen
selectAllNodes()
selectAllNodes()
Selects all edges in a Cytoscape Network
selectAllEdges(network = NULL, base.url = .defaultBaseUrl)
selectAllEdges(network = NULL, base.url = .defaultBaseUrl)
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
Selects all edges in a specified network.
Alexander Pico, Julia Gustavsen
cw <- CytoscapeWindow('new.demo', new('graphNEL')) selectAllEdges(cw)
cw <- CytoscapeWindow('new.demo', new('graphNEL')) selectAllEdges(cw)
Selects all nodes in a Cytoscape Network
selectAllNodes(network = NULL, base.url = .defaultBaseUrl)
selectAllNodes(network = NULL, base.url = .defaultBaseUrl)
network |
(optional) Name or SUID of the network into which you want to select; default is "current" network |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
Selects all nodes in a specified network.
Alexander Pico, Julia Gustavsen
selectAllNodes()
selectAllNodes()
Select edges in the network by SUID, name or other column values.
selectEdges( edges, by.col = "SUID", preserve.current.selection = TRUE, network = NULL, base.url = .defaultBaseUrl )
selectEdges( edges, by.col = "SUID", preserve.current.selection = TRUE, network = NULL, base.url = .defaultBaseUrl )
edges |
List of edge SUIDs, names or other column values |
by.col |
Edge table column to lookup up provide edge values. Default is 'SUID'. |
preserve.current.selection |
|
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
list
of newly selected edge SUIDs
AlexanderPico, Tanja Muetze, Georgi Kolishovski, Paul Shannon
selectEdges()
selectEdges()
Takes list of node SUIDs, names or other column values and adds to the selection all edges connected to those nodes, regardless of directionality.
selectEdgesAdjacentToNodes( nodes, by.col = "name", selectNodes = TRUE, network = NULL, base.url = .defaultBaseUrl )
selectEdgesAdjacentToNodes( nodes, by.col = "name", selectNodes = TRUE, network = NULL, base.url = .defaultBaseUrl )
nodes |
List of node SUIDs, names or other column values |
by.col |
Node table column to lookup up provide node values. Default is 'name'. |
selectNodes |
The default is TRUE. If TRUE, nodes will also be selected. |
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
Lists of SUIDs for selected nodes and edges
selectEdgesAdjacentToNodes()
selectEdgesAdjacentToNodes()
Takes currently selected nodes and adds to the selection all edges connected to those nodes, regardless of directionality.
selectEdgesAdjacentToSelectedNodes(network = NULL, base.url = .defaultBaseUrl)
selectEdgesAdjacentToSelectedNodes(network = NULL, base.url = .defaultBaseUrl)
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
Lists of SUIDs for selected nodes and edges
selectEdgesAdjacentToSelectedNodes()
selectEdgesAdjacentToSelectedNodes()
Selects edges in a Cytoscape Network connecting the selected nodes, including self loops connecting single nodes.
selectEdgesConnectingSelectedNodes(network = NULL, base.url = .defaultBaseUrl)
selectEdgesConnectingSelectedNodes(network = NULL, base.url = .defaultBaseUrl)
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
Lists of SUIDs for selected nodes and edges
Alexander Pico, Julia Gustavsen
selectEdgesConnectingSelectedNodes()
selectEdgesConnectingSelectedNodes()
Select nodes directly connected to currently selected nodes. Can specify connection directionality using the direction param.
selectFirstNeighbors( direction = "any", network = NULL, base.url = .defaultBaseUrl )
selectFirstNeighbors( direction = "any", network = NULL, base.url = .defaultBaseUrl )
direction |
direction of connections to neighbors to follow, e.g., incoming, outgoing, undirected, or any (default) |
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
list of suids of selected nodes, including original selection
selectFirstNeighbors() selectFirstNeighors('outgoing') selectFirstNeighors('incoming')
selectFirstNeighbors() selectFirstNeighors('outgoing') selectFirstNeighors('incoming')
Select nodes in the network by SUID, name or other column values.
selectNodes( nodes, by.col = "SUID", preserve.current.selection = TRUE, network = NULL, base.url = .defaultBaseUrl )
selectNodes( nodes, by.col = "SUID", preserve.current.selection = TRUE, network = NULL, base.url = .defaultBaseUrl )
nodes |
List of node SUIDs, names or other column values |
by.col |
Node table column to lookup up provide node values. Default is 'SUID'. |
preserve.current.selection |
|
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
list
of newly selected node SUIDs
AlexanderPico, Tanja Muetze, Georgi Kolishovski, Paul Shannon
selectNodes()
selectNodes()
Takes currently selected edges and extends the selection to connected nodes, regardless of directionality.
selectNodesConnectedBySelectedEdges(network = NULL, base.url = .defaultBaseUrl)
selectNodesConnectedBySelectedEdges(network = NULL, base.url = .defaultBaseUrl)
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
Lists of SUIDs for currently selected nodes and edges
selectNodesConnectedBySelectedEdges()
selectNodesConnectedBySelectedEdges()
Set the default background color.
setBackgroundColorDefault( new.color, style.name = NULL, base.url = .defaultBaseUrl )
setBackgroundColorDefault( new.color, style.name = NULL, base.url = .defaultBaseUrl )
new.color |
Color as hex code, e.g., #FD5903 |
style.name |
Name of style; default is "default" style |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
None
setBackgroundColorDefault('#888888')
setBackgroundColorDefault('#888888')
This function sets an internal delay variable that allows
Cytoscape to "catchup" prior to subsequent functions. Call without specifying
secs
to restore default value.
setCatchupFilterSecs(secs = 1)
setCatchupFilterSecs(secs = 1)
secs |
Number of seconds to delay. |
This delay is only necessary while concurrency bugs exist in the Cytoscape application. This delay may need to be increased from the default value in certain use cases, e.g., larger networks.
None
setModelPropagationSecs, setCatchupNetworkSecs
{ setCatchupFilterSecs(2) setCatchupFilterSecs() #restores default delay }
{ setCatchupFilterSecs(2) setCatchupFilterSecs() #restores default delay }
This function sets an internal delay variable that allows
Cytoscape to "catchup" prior to subsequent functions. Call without specifying
secs
to restore default value.
setCatchupNetworkSecs(secs = 2)
setCatchupNetworkSecs(secs = 2)
secs |
Number of seconds to delay. |
This delay is only necessary while concurrency bugs exist in the Cytoscape application. This delay may need to be increased from the default value in certain use cases, e.g., larger networks.
None
setModelPropagationSecs, setCatchupFilterSecs
{ setCatchupNetworkSecs(2) setCatchupNetworkSecs() #restores default delay }
{ setCatchupNetworkSecs(2) setCatchupNetworkSecs() #restores default delay }
Selects the given network as "current"
setCurrentNetwork(network = NULL, base.url = .defaultBaseUrl)
setCurrentNetwork(network = NULL, base.url = .defaultBaseUrl)
network |
(optional) Name or suid of the network that you want set as current |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
server response
setCurrentNetwork('MyNetwork')
setCurrentNetwork('MyNetwork')
Set and return the current sandbox name and path.
setCurrentSandbox(sandboxName, sandboxPath)
setCurrentSandbox(sandboxName, sandboxPath)
sandboxName |
sandboxName |
sandboxPath |
sandboxPath |
current sandbox
setCurrentSandbox()
setCurrentSandbox()
Set which network view is "current".
setCurrentView(network = NULL, base.url = .defaultBaseUrl)
setCurrentView(network = NULL, base.url = .defaultBaseUrl)
network |
(optional) Name or SUID of a network or view. The first (presummably only) view associated a network is used if a specific view SUID is not provided. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
Takes first (presumably only) view associated with provided network
None
setCurrentView()
setCurrentView()
Set and return the sandbox properties to be used as a default, probably based on whether running remote.
setDefaultSandbox(newSandbox = NULL, ...)
setDefaultSandbox(newSandbox = NULL, ...)
newSandbox |
newSandbox |
... |
... |
default sandbox
setDefaultSandbox()
setDefaultSandbox()
Set and return the default path, which isn't one of the properties tracked in the default_sandbox.
setDefaultSandboxPath(newPath)
setDefaultSandboxPath(newPath)
newPath |
new path of default sandbox |
default sandbox path
setDefaultSandboxPath()
setDefaultSandboxPath()
Override the color for particular edges.
setEdgeColorBypass( edge.names, new.colors, network = NULL, base.url = .defaultBaseUrl )
setEdgeColorBypass( edge.names, new.colors, network = NULL, base.url = .defaultBaseUrl )
edge.names |
List of edge names or SUIDs |
new.colors |
List of hex colors, or single value |
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
This method permanently overrides any default values or mappings defined for this visual property of the edge or edges specified. This method ultimately calls the generic function, setEdgePropertyBypass, which can be used to set any visual property. To restore defaults and mappings, use clearEdgePropertyBypass.
None
setEdgePropertyBypass, clearEdgePropertyBypass
setEdgeColorBypass()
setEdgeColorBypass()
Set the default edge color.
setEdgeColorDefault(new.color, style.name = NULL, base.url = .defaultBaseUrl)
setEdgeColorDefault(new.color, style.name = NULL, base.url = .defaultBaseUrl)
new.color |
Color as hex code, e.g., #FD5903 |
style.name |
Name of style; default is "default" style |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
None
setEdgeColorDefault('#FD5903')
setEdgeColorDefault('#FD5903')
Map table column values to colors to set the edge color.
setEdgeColorMapping( table.column, table.column.values = NULL, colors = NULL, mapping.type = "c", default.color = NULL, style.name = NULL, network = NULL, base.url = .defaultBaseUrl )
setEdgeColorMapping( table.column, table.column.values = NULL, colors = NULL, mapping.type = "c", default.color = NULL, style.name = NULL, network = NULL, base.url = .defaultBaseUrl )
table.column |
Name of Cytoscape table column to map values from |
table.column.values |
List of values from Cytoscape table to be used in mapping. Leave NULL to perform an automatic mapping to all column values. |
colors |
List of hex colors to map to table.column.values or a color palette function, e.g., paletteColorBrewerSet3 (without quotes). See RColorBrewer::display.brewer.all() |
mapping.type |
(char) continuous, discrete or passthrough (c,d,p); default is continuous |
default.color |
Hex color to set as default |
style.name |
Name of style; default is "default" style |
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
None
setEdgeColorMapping('score', c(0,5), c('#FFFFFF','#FF7755')) setEdgeColorMapping('score', colors=paletteColorBrewerRdBu) setEdgeColorMapping('score', colors=paletteColorBrewerSet3, mapping.type='d')
setEdgeColorMapping('score', c(0,5), c('#FFFFFF','#FF7755')) setEdgeColorMapping('score', colors=paletteColorBrewerRdBu) setEdgeColorMapping('score', colors=paletteColorBrewerSet3, mapping.type='d')
Override the font face for particular edges.
setEdgeFontFaceBypass( edge.names, new.fonts, network = NULL, base.url = .defaultBaseUrl )
setEdgeFontFaceBypass( edge.names, new.fonts, network = NULL, base.url = .defaultBaseUrl )
edge.names |
List of edge names or SUIDs |
new.fonts |
List of font faces, or single value |
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
This method permanently overrides any default values or mappings defined for this visual property of the edge or edges specified. This method ultimately calls the generic function, setEdgePropertyBypass, which can be used to set any visual property. To restore defaults and mappings, use clearEdgePropertyBypass.
None
setEdgePropertyBypass, clearEdgePropertyBypass
setEdgeFontFaceBypass()
setEdgeFontFaceBypass()
Set the default edge font.
setEdgeFontFaceDefault(new.font, style.name = NULL, base.url = .defaultBaseUrl)
setEdgeFontFaceDefault(new.font, style.name = NULL, base.url = .defaultBaseUrl)
new.font |
String specification of font face, style and size, e.g., "SansSerif,plain,12" or "Dialog,plain,10" |
style.name |
Name of style; default is "default" style |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
None
setEdgeFontFaceDefault("Dialog,plain,10")
setEdgeFontFaceDefault("Dialog,plain,10")
Sets font face for edge labels.
setEdgeFontFaceMapping( table.column, table.column.values, fonts, mapping.type = "d", default.font = NULL, style.name = NULL, network = NULL, base.url = .defaultBaseUrl )
setEdgeFontFaceMapping( table.column, table.column.values, fonts, mapping.type = "d", default.font = NULL, style.name = NULL, network = NULL, base.url = .defaultBaseUrl )
table.column |
Name of Cytoscape table column to map values from |
table.column.values |
List of values from Cytoscape table to be used in mapping |
fonts |
List of string specifications of font face, style and size, e.g., c("SansSerif,plain,12", "Dialog,plain,10") |
mapping.type |
(char) discrete or passthrough (d,p); default is discrete |
default.font |
String specification of font face, style and size, e.g., "SansSerif,plain,12" or "Dialog,plain,10" |
style.name |
Name of style; default is "default" style |
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
None
setEdgeFontFaceMapping("myfonts", c("normal","small"), c("SansSerif,plain,12", "Dialog,plain,10"))
setEdgeFontFaceMapping("myfonts", c("normal","small"), c("SansSerif,plain,12", "Dialog,plain,10"))
Override the font size for particular edges.
setEdgeFontSizeBypass( edge.names, new.sizes, network = NULL, base.url = .defaultBaseUrl )
setEdgeFontSizeBypass( edge.names, new.sizes, network = NULL, base.url = .defaultBaseUrl )
edge.names |
List of edge names or SUIDs |
new.sizes |
List of size values, or single value |
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
This method permanently overrides any default values or mappings defined for this visual property of the edge or edges specified. This method ultimately calls the generic function, setEdgePropertyBypass, which can be used to set any visual property. To restore defaults and mappings, use clearEdgePropertyBypass.
None
setEdgePropertyBypass, clearEdgePropertyBypass
setEdgeFontSizeBypass()
setEdgeFontSizeBypass()
Set the default edge font size.
setEdgeFontSizeDefault(new.size, style.name = NULL, base.url = .defaultBaseUrl)
setEdgeFontSizeDefault(new.size, style.name = NULL, base.url = .defaultBaseUrl)
new.size |
Numeric value for size |
style.name |
Name of style; default is "default" style |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
None
setEdgeFontSizeDefault(12)
setEdgeFontSizeDefault(12)
Map table column values to sizes to set the edge size.
setEdgeFontSizeMapping( table.column, table.column.values = NULL, sizes = NULL, mapping.type = "c", default.size = NULL, style.name = NULL, network = NULL, base.url = .defaultBaseUrl )
setEdgeFontSizeMapping( table.column, table.column.values = NULL, sizes = NULL, mapping.type = "c", default.size = NULL, style.name = NULL, network = NULL, base.url = .defaultBaseUrl )
table.column |
Name of Cytoscape table column to map values from |
table.column.values |
List of values from Cytoscape table to be used in mapping. Leave NULL to perform an automatic mapping to all column values. |
sizes |
List of sizes to map to table.column.values. A range of 10 to 100 is used by default for automatic mapping. |
mapping.type |
(char) continuous, discrete or passthrough (c,d,p); default is continuous |
default.size |
Size value to set as default |
style.name |
Name of style; default is "default" style |
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
None
setEdgeFontSizeMapping('score') setEdgeFontSizeMapping('score', sizes=c(6,24)) setEdgeFontSizeMapping('score', c(0,30), c(35,55))
setEdgeFontSizeMapping('score') setEdgeFontSizeMapping('score', sizes=c(6,24)) setEdgeFontSizeMapping('score', c(0,30), c(35,55))
Override the label for particular edges.
setEdgeLabelBypass( edge.names, new.labels, network = NULL, base.url = .defaultBaseUrl )
setEdgeLabelBypass( edge.names, new.labels, network = NULL, base.url = .defaultBaseUrl )
edge.names |
List of edge names or SUIDs |
new.labels |
List of labels, or single value |
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
This method permanently overrides any default values or mappings defined for this visual property of the edge or edges specified. This method ultimately calls the generic function, setEdgePropertyBypass, which can be used to set any visual property. To restore defaults and mappings, use clearEdgePropertyBypass.
None
setEdgePropertyBypass, clearEdgePropertyBypass
setEdgeLabelBypass()
setEdgeLabelBypass()
Override the label color for particular edges.
setEdgeLabelColorBypass( edge.names, new.colors, network = NULL, base.url = .defaultBaseUrl )
setEdgeLabelColorBypass( edge.names, new.colors, network = NULL, base.url = .defaultBaseUrl )
edge.names |
List of edge names or SUIDs |
new.colors |
List of hex colors, or single value |
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
This method permanently overrides any default values or mappings defined for this visual property of the edge or edges specified. This method ultimately calls the generic function, setEdgePropertyBypass, which can be used to set any visual property. To restore defaults and mappings, use clearEdgePropertyBypass.
None
setEdgePropertyBypass, clearEdgePropertyBypass
setEdgeLabelColorBypass()
setEdgeLabelColorBypass()
Set the default edge label color.
setEdgeLabelColorDefault( new.color, style.name = NULL, base.url = .defaultBaseUrl )
setEdgeLabelColorDefault( new.color, style.name = NULL, base.url = .defaultBaseUrl )
new.color |
Color as hex code, e.g., #FD5903 |
style.name |
Name of style; default is "default" style |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
None
setEdgeLabelColorDefault("#FD5903")
setEdgeLabelColorDefault("#FD5903")
Map table column values to colors to set the edge border color.
setEdgeLabelColorMapping( table.column, table.column.values = NULL, colors = NULL, mapping.type = "c", default.color = NULL, style.name = NULL, network = NULL, base.url = .defaultBaseUrl )
setEdgeLabelColorMapping( table.column, table.column.values = NULL, colors = NULL, mapping.type = "c", default.color = NULL, style.name = NULL, network = NULL, base.url = .defaultBaseUrl )
table.column |
Name of Cytoscape table column to map values from |
table.column.values |
List of values from Cytoscape table to be used in mapping. Leave NULL to perform an automatic mapping to all column values. |
colors |
List of hex colors to map to table.column.values or a color palette function, e.g., paletteColorBrewerSet3 (without quotes). See RColorBrewer::display.brewer.all() |
mapping.type |
(char) continuous, discrete or passthrough (c,d,p); default is continuous |
default.color |
Hex color to set as default |
style.name |
Name of style; default is "default" style |
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
None
setEdgeLabelColorMapping('score', c(0,5), c('#FFFFFF','#FF7755')) setEdgeLabelColorMapping('score', colors=paletteColorBrewerRdBu) setEdgeLabelColorMapping('score', colors=paletteColorBrewerSet3, mapping.type='d')
setEdgeLabelColorMapping('score', c(0,5), c('#FFFFFF','#FF7755')) setEdgeLabelColorMapping('score', colors=paletteColorBrewerRdBu) setEdgeLabelColorMapping('score', colors=paletteColorBrewerSet3, mapping.type='d')
Set the default edge label.
setEdgeLabelDefault(new.label, style.name = NULL, base.url = .defaultBaseUrl)
setEdgeLabelDefault(new.label, style.name = NULL, base.url = .defaultBaseUrl)
new.label |
String label for unmapped edges. |
style.name |
Name of style; default is "default" style |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
None
setEdgeLabelDefault('unknown')
setEdgeLabelDefault('unknown')
Pass the values from a table column to display as edge labels.
setEdgeLabelMapping( table.column, style.name = NULL, network = NULL, base.url = .defaultBaseUrl )
setEdgeLabelMapping( table.column, style.name = NULL, network = NULL, base.url = .defaultBaseUrl )
table.column |
Name of Cytoscape table column to map values from |
style.name |
Name of style; default is "default" style |
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
None
setEdgeLabelMapping('label')
setEdgeLabelMapping('label')
Override the label opacity for particular edges.
setEdgeLabelOpacityBypass( edge.names, new.value, network = NULL, base.url = .defaultBaseUrl )
setEdgeLabelOpacityBypass( edge.names, new.value, network = NULL, base.url = .defaultBaseUrl )
edge.names |
List of edge names or SUIDs |
new.value |
List of opacity values, or single value |
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
This method permanently overrides any default values or mappings defined for this visual property of the edge or edges specified. This method ultimately calls the generic function, setEdgePropertyBypass, which can be used to set any visual property. To restore defaults and mappings, use clearEdgePropertyBypass.
None
setEdgePropertyBypass, clearEdgePropertyBypass
setEdgeLabelOpacityBypass()
setEdgeLabelOpacityBypass()
Set default opacity value for all unmapped edge labels.
setEdgeLabelOpacityDefault( new.opacity, style.name = NULL, base.url = .defaultBaseUrl )
setEdgeLabelOpacityDefault( new.opacity, style.name = NULL, base.url = .defaultBaseUrl )
new.opacity |
Numeric values between 0 and 255; 0 is invisible. |
style.name |
Name of style; default is "default" style. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
None
setEdgeLabelOpacityDefault(50)
setEdgeLabelOpacityDefault(50)
Sets opacity for edge label only.
setEdgeLabelOpacityMapping( table.column, table.column.values = NULL, opacities = NULL, mapping.type = "c", default.opacity = NULL, style.name = NULL, network = NULL, base.url = .defaultBaseUrl )
setEdgeLabelOpacityMapping( table.column, table.column.values = NULL, opacities = NULL, mapping.type = "c", default.opacity = NULL, style.name = NULL, network = NULL, base.url = .defaultBaseUrl )
table.column |
Name of Cytoscape table column to map values from |
table.column.values |
List of values from Cytoscape table to be used in mapping. Leave NULL to perform an automatic mapping to all column values. |
opacities |
(integer) values between 0 and 255; 0 is invisible. A range of 50 to 255 is used by default for automatic mapping. |
mapping.type |
(char) continuous, discrete or passthrough (c,d,p); default is continuous |
default.opacity |
Opacity value to set as default for all unmapped values |
style.name |
Name of style; default is "default" style |
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
None
setEdgeLabelOpacityMapping('weight') setEdgeLabelOpacityMapping('weight', opacities=c(0,100)) setEdgeLabelOpacityMapping('weight', c(1,10), c(50,255))
setEdgeLabelOpacityMapping('weight') setEdgeLabelOpacityMapping('weight', opacities=c(0,100)) setEdgeLabelOpacityMapping('weight', c(1,10), c(50,255))
Override the style for particular edges.
setEdgeLineStyleBypass( edge.names, new.styles, network = NULL, base.url = .defaultBaseUrl )
setEdgeLineStyleBypass( edge.names, new.styles, network = NULL, base.url = .defaultBaseUrl )
edge.names |
List of edge names or SUIDs |
new.styles |
List of style values, or single value |
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
This method permanently overrides any default values or mappings defined for this visual property of the edge or edges specified. This method ultimately calls the generic function, setEdgePropertyBypass, which can be used to set any visual property. To restore defaults and mappings, use clearEdgePropertyBypass.
None
setEdgePropertyBypass, clearEdgePropertyBypass
setEdgeLineStyleBypass()
setEdgeLineStyleBypass()
Set the default edge style.
setEdgeLineStyleDefault( new.line.style, style.name = NULL, base.url = .defaultBaseUrl )
setEdgeLineStyleDefault( new.line.style, style.name = NULL, base.url = .defaultBaseUrl )
new.line.style |
Name of line style, e.g., SOLID, LONG_DASH, etc (see getLineStyles) |
style.name |
Name of style; default is "default" style |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
None
setEdgeLineStyleDefault('LONG_DASH')
setEdgeLineStyleDefault('LONG_DASH')
Map table column values to styles to set the edge style.
setEdgeLineStyleMapping( table.column, table.column.values = NULL, line.styles = NULL, default.line.style = "SOLID", style.name = NULL, network = NULL, base.url = .defaultBaseUrl )
setEdgeLineStyleMapping( table.column, table.column.values = NULL, line.styles = NULL, default.line.style = "SOLID", style.name = NULL, network = NULL, base.url = .defaultBaseUrl )
table.column |
Name of Cytoscape table column to map values from |
table.column.values |
List of values from Cytoscape table to be used in mapping. Leave NULL to perform an automatic mapping to all column values. |
line.styles |
List of line styles. Leave NULL to perform an automatic mapping to available line styles. See getLineStyles. |
default.line.style |
Style to set as default. See getLineStyles. |
style.name |
Name of style; default is "default" style |
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
None
setEdgeLineStyleMapping('type') setEdgeLineStyleMapping('type',c('pp','pd'),c('SOLID','LONG_DASH'))
setEdgeLineStyleMapping('type') setEdgeLineStyleMapping('type',c('pp','pd'),c('SOLID','LONG_DASH'))
Override the width for particular edges.
setEdgeLineWidthBypass( edge.names, new.widths, network = NULL, base.url = .defaultBaseUrl )
setEdgeLineWidthBypass( edge.names, new.widths, network = NULL, base.url = .defaultBaseUrl )
edge.names |
List of edge names or SUIDs |
new.widths |
List of width values, or single value |
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
This method permanently overrides any default values or mappings defined for this visual property of the edge or edges specified. This method ultimately calls the generic function, setEdgePropertyBypass, which can be used to set any visual property. To restore defaults and mappings, use clearEdgePropertyBypass.
None
setEdgePropertyBypass, clearEdgePropertyBypass
setEdgeLineWidthBypass()
setEdgeLineWidthBypass()
Set the default edge width.
setEdgeLineWidthDefault( new.width, style.name = NULL, base.url = .defaultBaseUrl )
setEdgeLineWidthDefault( new.width, style.name = NULL, base.url = .defaultBaseUrl )
new.width |
Numeric value for width |
style.name |
Name of style; default is "default" style |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
None
setEdgeLineWidthDefault(3)
setEdgeLineWidthDefault(3)
Map table column values to widths to set the edge line width.
setEdgeLineWidthMapping( table.column, table.column.values = NULL, widths = NULL, mapping.type = "c", default.width = NULL, style.name = NULL, network = NULL, base.url = .defaultBaseUrl )
setEdgeLineWidthMapping( table.column, table.column.values = NULL, widths = NULL, mapping.type = "c", default.width = NULL, style.name = NULL, network = NULL, base.url = .defaultBaseUrl )
table.column |
Name of Cytoscape table column to map values from |
table.column.values |
List of values from Cytoscape table to be used in mapping. Leave NULL to perform an automatic mapping to all column values. |
widths |
List of width values to map to table.column.values. A range of 10 to 100 is used by default for automatic mapping. |
mapping.type |
(char) continuous, discrete or passthrough (c,d,p); default is continuous |
default.width |
Width value to set as default for all unmapped values for all unmapped values. |
style.name |
Name of style; default is "default" style |
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
None
setEdgeLineWidthMapping('score') setEdgeLineWidthMapping('score', widths=c(1,10)) setEdgeLineWidthMapping('score', c(0,30), c(1,5))
setEdgeLineWidthMapping('score') setEdgeLineWidthMapping('score', widths=c(1,10)) setEdgeLineWidthMapping('score', c(0,30), c(1,5))
Override the opacity for particular edges.
setEdgeOpacityBypass( edge.names, new.values, network = NULL, base.url = .defaultBaseUrl )
setEdgeOpacityBypass( edge.names, new.values, network = NULL, base.url = .defaultBaseUrl )
edge.names |
List of edge names or SUIDs |
new.values |
List of values to set, or single value |
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
This method permanently overrides any default values or mappings defined for this visual property of the edge or edges specified. This method ultimately calls the generic function, setEdgePropertyBypass, which can be used to set any visual property. To restore defaults and mappings, use clearEdgePropertyBypass.
None
setEdgePropertyBypass, clearEdgePropertyBypass
setEdgeOpacityBypass()
setEdgeOpacityBypass()
Set default opacity value for all unmapped edges.
setEdgeOpacityDefault( new.opacity, style.name = NULL, base.url = .defaultBaseUrl )
setEdgeOpacityDefault( new.opacity, style.name = NULL, base.url = .defaultBaseUrl )
new.opacity |
Numeric values between 0 and 255; 0 is invisible. |
style.name |
Name of style; default is "default" style. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
None
setEdgeOpacityDefault(50)
setEdgeOpacityDefault(50)
Map table column values to opacities to set the edge opacity.
setEdgeOpacityMapping( table.column, table.column.values = NULL, opacities = NULL, mapping.type = "c", default.opacity = NULL, style.name = NULL, network = NULL, base.url = .defaultBaseUrl )
setEdgeOpacityMapping( table.column, table.column.values = NULL, opacities = NULL, mapping.type = "c", default.opacity = NULL, style.name = NULL, network = NULL, base.url = .defaultBaseUrl )
table.column |
Name of Cytoscape table column to map values from |
table.column.values |
List of values from Cytoscape table to be used in mapping. Leave NULL to perform an automatic mapping to all column values. |
opacities |
(integer) values between 0 and 255; 0 is invisible. A range of 50 to 255 is used by default for automatic mapping. |
mapping.type |
(char) continuous, discrete or passthrough (c,d,p); default is continuous |
default.opacity |
Opacity value to set as default for all unmapped values |
style.name |
Name of style; default is "default" style |
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
None
setEdgeOpacityMapping('weight') setEdgeOpacityMapping('weight', opacities=c(0,100)) setEdgeOpacityMapping('weight', c(1,10), c(50,255))
setEdgeOpacityMapping('weight') setEdgeOpacityMapping('weight', opacities=c(0,100)) setEdgeOpacityMapping('weight', c(1,10), c(50,255))
Set bypass values for any edge property of the specified edges, overriding default values and mappings defined by any visual style.
setEdgePropertyBypass( edge.names, new.values, visual.property, bypass = TRUE, network = NULL, base.url = .defaultBaseUrl )
setEdgePropertyBypass( edge.names, new.values, visual.property, bypass = TRUE, network = NULL, base.url = .defaultBaseUrl )
edge.names |
List of edge names or SUIDs |
new.values |
List of values to set, or single value |
visual.property |
Name of a visual property. See getVisualPropertyNames. |
bypass |
Whether to set permanent bypass value. Default is |
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
This method permanently overrides any default values or mappings defined for the visual properties of the edge or edges specified. To restore defaults and mappings, use clearEdgePropertyBypass.
None
setEdgePropertyBypass()
setEdgePropertyBypass()
Set the default selected edge color.
setEdgeSelectionColorDefault( new.color, style.name = NULL, base.url = .defaultBaseUrl )
setEdgeSelectionColorDefault( new.color, style.name = NULL, base.url = .defaultBaseUrl )
new.color |
Color as hex code, e.g., #FD5903 |
style.name |
Name of style; default is "default" style |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
None
setEdgeSelectionColorDefault('#FD5903')
setEdgeSelectionColorDefault('#FD5903')
Override the source arrow color for particular edges.
setEdgeSourceArrowColorBypass( edge.names, new.colors, network = NULL, base.url = .defaultBaseUrl )
setEdgeSourceArrowColorBypass( edge.names, new.colors, network = NULL, base.url = .defaultBaseUrl )
edge.names |
List of edge names or SUIDs |
new.colors |
List of hex colors, or single value |
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
This method permanently overrides any default values or mappings defined for this visual property of the edge or edges specified. This method ultimately calls the generic function, setEdgePropertyBypass, which can be used to set any visual property. To restore defaults and mappings, use clearEdgePropertyBypass.
None
setEdgePropertyBypass, clearEdgePropertyBypass
setEdgeSourceArrowColorBypass()
setEdgeSourceArrowColorBypass()
Set the default edge source arrow color.
setEdgeSourceArrowColorDefault( new.color, style.name = NULL, base.url = .defaultBaseUrl )
setEdgeSourceArrowColorDefault( new.color, style.name = NULL, base.url = .defaultBaseUrl )
new.color |
Color as hex code, e.g., #FD5903 |
style.name |
Name of style; default is "default" style |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
None
setEdgeSourceArrowColorDefault('#FD5903')
setEdgeSourceArrowColorDefault('#FD5903')
Map table column values to colors to set the source arrow color.
setEdgeSourceArrowColorMapping( table.column, table.column.values = NULL, colors = NULL, mapping.type = "c", default.color = NULL, style.name = NULL, network = NULL, base.url = .defaultBaseUrl )
setEdgeSourceArrowColorMapping( table.column, table.column.values = NULL, colors = NULL, mapping.type = "c", default.color = NULL, style.name = NULL, network = NULL, base.url = .defaultBaseUrl )
table.column |
Name of Cytoscape table column to map values from |
table.column.values |
List of values from Cytoscape table to be used in mapping. Leave NULL to perform an automatic mapping to all column values. |
colors |
List of hex colors to map to table.column.values or a color palette function, e.g., paletteColorBrewerSet3 (without quotes). See RColorBrewer::display.brewer.all() |
mapping.type |
(char) continuous, discrete or passthrough (c,d,p); default is continuous |
default.color |
Hex color to set as default |
style.name |
Name of style; default is "default" style |
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
None
setEdgeSourceArrowColorMapping('score', c(0,5), c('#FFFFFF','#FF7755')) setEdgeSourceArrowColorMapping('score', colors=paletteColorBrewerRdBu) setEdgeSourceArrowColorMapping('score', colors=paletteColorBrewerSet3, mapping.type='d')
setEdgeSourceArrowColorMapping('score', c(0,5), c('#FFFFFF','#FF7755')) setEdgeSourceArrowColorMapping('score', colors=paletteColorBrewerRdBu) setEdgeSourceArrowColorMapping('score', colors=paletteColorBrewerSet3, mapping.type='d')
Map table column values to shapes to set the source arrow shape.
setEdgeSourceArrowMapping( table.column, table.column.values = NULL, shapes = NULL, default.shape = "ARROW", style.name = NULL, network = NULL, base.url = .defaultBaseUrl )
setEdgeSourceArrowMapping( table.column, table.column.values = NULL, shapes = NULL, default.shape = "ARROW", style.name = NULL, network = NULL, base.url = .defaultBaseUrl )
table.column |
Name of Cytoscape table column to map values from |
table.column.values |
List of values from Cytoscape table to be used in mapping. Leave NULL to perform an automatic mapping to all column values. |
shapes |
List of shapes to map to table.column.values. Leave NULL to perform an automatic mapping to available shapes. See getArrowShapes |
default.shape |
Shape to set as default. See getArrowShapes |
style.name |
Name of style; default is "default" style |
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
None
setEdgeSourceArrowMapping('type') setEdgeSourceArrowMapping('type',c('activation','inhibition'),c('ARROW','T'))
setEdgeSourceArrowMapping('type') setEdgeSourceArrowMapping('type',c('activation','inhibition'),c('ARROW','T'))
Override the source arrow shape for particular edges.
setEdgeSourceArrowShapeBypass( edge.names, new.shapes, network = NULL, base.url = .defaultBaseUrl )
setEdgeSourceArrowShapeBypass( edge.names, new.shapes, network = NULL, base.url = .defaultBaseUrl )
edge.names |
List of edge names or SUIDs |
new.shapes |
List of shapes, or single value. See getArrowShapes. |
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
This method permanently overrides any default values or mappings defined for this visual property of the edge or edges specified. This method ultimately calls the generic function, setEdgePropertyBypass, which can be used to set any visual property. To restore defaults and mappings, use clearEdgePropertyBypass.
None
setEdgePropertyBypass, clearEdgePropertyBypass
setEdgeSourceArrowShapeBypass()
setEdgeSourceArrowShapeBypass()
Set the default edge source arrow shape.
setEdgeSourceArrowShapeDefault( new.shape, style.name = NULL, base.url = .defaultBaseUrl )
setEdgeSourceArrowShapeDefault( new.shape, style.name = NULL, base.url = .defaultBaseUrl )
new.shape |
Name of shape, e.g., ARROW, T, etc (see getArrowShapes) |
style.name |
Name of style; default is "default" style |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
None
setEdgeSourceArrowShapeDefault('ARROW')
setEdgeSourceArrowShapeDefault('ARROW')
Map table column values to shapes to set the source arrow shape.
setEdgeSourceArrowShapeMapping( table.column, table.column.values = NULL, shapes = NULL, default.shape = NULL, style.name = NULL, network = NULL, base.url = .defaultBaseUrl )
setEdgeSourceArrowShapeMapping( table.column, table.column.values = NULL, shapes = NULL, default.shape = NULL, style.name = NULL, network = NULL, base.url = .defaultBaseUrl )
table.column |
Name of Cytoscape table column to map values from |
table.column.values |
List of values from Cytoscape table to be used in mapping. Leave NULL to perform an automatic mapping to all column values. |
shapes |
List of shapes to map to table.column.values. Leave NULL to perform an automatic mapping to available shapes. See getArrowShapes |
default.shape |
Shape to set as default. See getArrowShapes |
style.name |
Name of style; default is "default" style |
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
None
setEdgeSourceArrowShapeMapping('type') setEdgeSourceArrowShapeMapping('type',c('activation','inhibition'), c('ARROW','T'))
setEdgeSourceArrowShapeMapping('type') setEdgeSourceArrowShapeMapping('type',c('activation','inhibition'), c('ARROW','T'))
Override the target arrow color for particular edges.
setEdgeTargetArrowColorBypass( edge.names, new.colors, network = NULL, base.url = .defaultBaseUrl )
setEdgeTargetArrowColorBypass( edge.names, new.colors, network = NULL, base.url = .defaultBaseUrl )
edge.names |
List of edge names or SUIDs |
new.colors |
List of hex colors, or single value |
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
This method permanently overrides any default values or mappings defined for this visual property of the edge or edges specified. This method ultimately calls the generic function, setEdgePropertyBypass, which can be used to set any visual property. To restore defaults and mappings, use clearEdgePropertyBypass.
None
setEdgePropertyBypass, clearEdgePropertyBypass
setEdgeTargetArrowColorBypass()
setEdgeTargetArrowColorBypass()
Set the default edge target arrow color.
setEdgeTargetArrowColorDefault( new.color, style.name = NULL, base.url = .defaultBaseUrl )
setEdgeTargetArrowColorDefault( new.color, style.name = NULL, base.url = .defaultBaseUrl )
new.color |
Color as hex code, e.g., #FD5903 |
style.name |
Name of style; default is "default" style |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
None
setEdgeTargetArrowColorDefault('#FD5903')
setEdgeTargetArrowColorDefault('#FD5903')
Map table column values to colors to set the target arrow color.
setEdgeTargetArrowColorMapping( table.column, table.column.values = NULL, colors = NULL, mapping.type = "c", default.color = NULL, style.name = NULL, network = NULL, base.url = .defaultBaseUrl )
setEdgeTargetArrowColorMapping( table.column, table.column.values = NULL, colors = NULL, mapping.type = "c", default.color = NULL, style.name = NULL, network = NULL, base.url = .defaultBaseUrl )
table.column |
Name of Cytoscape table column to map values from |
table.column.values |
List of values from Cytoscape table to be used in mapping. Leave NULL to perform an automatic mapping to all column values. |
colors |
List of hex colors to map to table.column.values or a color palette function, e.g., paletteColorBrewerSet3 (without quotes). See RColorBrewer::display.brewer.all() |
mapping.type |
(char) continuous, discrete or passthrough (c,d,p); default is continuous |
default.color |
Hex color to set as default |
style.name |
Name of style; default is "default" style |
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
None
setEdgeTargetArrowColorMapping('score', c(0,5), c('#FFFFFF','#FF7755')) setEdgeTargetArrowColorMapping('score', colors=paletteColorBrewerRdBu) setEdgeTargetArrowColorMapping('score', colors=paletteColorBrewerSet3, mapping.type='d')
setEdgeTargetArrowColorMapping('score', c(0,5), c('#FFFFFF','#FF7755')) setEdgeTargetArrowColorMapping('score', colors=paletteColorBrewerRdBu) setEdgeTargetArrowColorMapping('score', colors=paletteColorBrewerSet3, mapping.type='d')
Map table column values to shapes to set the target arrow shape.
setEdgeTargetArrowMapping( table.column, table.column.values = NULL, shapes = NULL, default.shape = "ARROW", style.name = NULL, network = NULL, base.url = .defaultBaseUrl )
setEdgeTargetArrowMapping( table.column, table.column.values = NULL, shapes = NULL, default.shape = "ARROW", style.name = NULL, network = NULL, base.url = .defaultBaseUrl )
table.column |
Name of Cytoscape table column to map values from |
table.column.values |
List of values from Cytoscape table to be used in mapping. Leave NULL to perform an automatic mapping to all column values. |
shapes |
List of shapes to map to table.column.values. Leave NULL to perform an automatic mapping to available shapes. See getArrowShapes |
default.shape |
Shape to set as default. See getArrowShapes |
style.name |
Name of style; default is "default" style |
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
None
setEdgeTargetArrowMapping('type') setEdgeTargetArrowMapping('type',c('activation','inhibition'),c('ARROW','T'))
setEdgeTargetArrowMapping('type') setEdgeTargetArrowMapping('type',c('activation','inhibition'),c('ARROW','T'))
Override the target arrow shape for particular edges.
setEdgeTargetArrowShapeBypass( edge.names, new.shapes, network = NULL, base.url = .defaultBaseUrl )
setEdgeTargetArrowShapeBypass( edge.names, new.shapes, network = NULL, base.url = .defaultBaseUrl )
edge.names |
List of edge names or SUIDs |
new.shapes |
List of values to set, or single value. See getArrowShapes. |
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
This method permanently overrides any default values or mappings defined for this visual property of the edge or edges specified. This method ultimately calls the generic function, setEdgePropertyBypass, which can be used to set any visual property. To restore defaults and mappings, use clearEdgePropertyBypass.
None
setEdgePropertyBypass, clearEdgePropertyBypass
setEdgeTargetArrowShapeBypass()
setEdgeTargetArrowShapeBypass()
Set the default edge target arrow shape.
setEdgeTargetArrowShapeDefault( new.shape, style.name = NULL, base.url = .defaultBaseUrl )
setEdgeTargetArrowShapeDefault( new.shape, style.name = NULL, base.url = .defaultBaseUrl )
new.shape |
Name of shape, e.g., ARROW, T, etc (see getArrowShapes) |
style.name |
Name of style; default is "default" style |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
None
setEdgeTargetArrowShapeDefault('ARROW')
setEdgeTargetArrowShapeDefault('ARROW')
Map table column values to shapes to set the target arrow shape.
setEdgeTargetArrowShapeMapping( table.column, table.column.values = NULL, shapes = NULL, default.shape = NULL, style.name = NULL, network = NULL, base.url = .defaultBaseUrl )
setEdgeTargetArrowShapeMapping( table.column, table.column.values = NULL, shapes = NULL, default.shape = NULL, style.name = NULL, network = NULL, base.url = .defaultBaseUrl )
table.column |
Name of Cytoscape table column to map values from |
table.column.values |
List of values from Cytoscape table to be used in mapping. Leave NULL to perform an automatic mapping to all column values. |
shapes |
List of shapes to map to table.column.values. Leave NULL to perform an automatic mapping to available shapes. See getArrowShapes |
default.shape |
Shape to set as default. See getArrowShapes |
style.name |
Name of style; default is "default" style |
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
None
setEdgeTargetArrowShapeMapping('type') setEdgeTargetArrowShapeMapping('type',c('activation','inhibition'), c('ARROW','T'))
setEdgeTargetArrowShapeMapping('type') setEdgeTargetArrowShapeMapping('type',c('activation','inhibition'), c('ARROW','T'))
Override the tooltip for particular edges.
setEdgeTooltipBypass( edge.names, new.values, network = NULL, base.url = .defaultBaseUrl )
setEdgeTooltipBypass( edge.names, new.values, network = NULL, base.url = .defaultBaseUrl )
edge.names |
List of edge names or SUIDs |
new.values |
List of tooltip values, or single value |
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
This method permanently overrides any default values or mappings defined for this visual property of the edge or edges specified. This method ultimately calls the generic function, setEdgePropertyBypass, which can be used to set any visual property. To restore defaults and mappings, use clearEdgePropertyBypass.
None
setEdgePropertyBypass, clearEdgePropertyBypass
setEdgeTooltipBypass()
setEdgeTooltipBypass()
Set the default edge tooltip
setEdgeTooltipDefault( new.tooltip, style.name = NULL, base.url = .defaultBaseUrl )
setEdgeTooltipDefault( new.tooltip, style.name = NULL, base.url = .defaultBaseUrl )
new.tooltip |
String tooltip for unmapped edges. |
style.name |
Name of style; default is "default" style |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
None
setEdgeTooltipDefault('unknown')
setEdgeTooltipDefault('unknown')
Pass the values from a table column to display as edge tooltips.
setEdgeTooltipMapping( table.column, style.name = NULL, network = NULL, base.url = .defaultBaseUrl )
setEdgeTooltipMapping( table.column, style.name = NULL, network = NULL, base.url = .defaultBaseUrl )
table.column |
Name of Cytoscape table column to map values from |
style.name |
Name of style; default is "default" style |
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
None
setEdgeTooltipMapping('description')
setEdgeTooltipMapping('description')
Sets the specified properties for the specified layout. Unmentioned properties are left unchanged.
setLayoutProperties(layout.name, properties.list, base.url = .defaultBaseUrl)
setLayoutProperties(layout.name, properties.list, base.url = .defaultBaseUrl)
layout.name |
( |
properties.list |
( |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
Run getLayoutNames to list available layouts. Run getLayoutPropertyNames to list properties per layout.
None
Alexander Pico, Tanja Muetze, Georgi Kolishovski, Paul Shannon
setLayoutProperties('force-directed', list(defaultSpringLength=50, defaultSpringCoefficient=6E-04)) # Successfully updated the property 'defaultSpringLength'. # Successfully updated the property 'defaultSpringCoefficient'.
setLayoutProperties('force-directed', list(defaultSpringLength=50, defaultSpringCoefficient=6E-04)) # Successfully updated the property 'defaultSpringLength'. # Successfully updated the property 'defaultSpringCoefficient'.
This function sets an internal delay variable that allows
Cytoscape to "catchup" prior to subsequent functions. Call without specifying
secs
to restore default value.
setModelPropagationSecs(secs = 5)
setModelPropagationSecs(secs = 5)
secs |
Number of seconds to delay. |
This delay is only necessary while concurrency bugs exist in the Cytoscape application. This delay may need to be increased from the default value in certain use cases, e.g., larger networks.
None
setCatchupFilterSecs, setCatchupNetworkSecs
{ setModelPropagationSecs(2) setModelPropagationSecs() #restores default delay }
{ setModelPropagationSecs(2) setModelPropagationSecs() #restores default delay }
Set the bypass value for center x and y for the network. This function could be used to pan and scroll the Cytoscape canvas.
setNetworkCenterBypass( x, y, bypass = FALSE, network = NULL, base.url = .defaultBaseUrl )
setNetworkCenterBypass( x, y, bypass = FALSE, network = NULL, base.url = .defaultBaseUrl )
x |
Coordinate value, increases going to the right. |
y |
Coordinate value, increase going down. |
bypass |
Whether to set permanent bypass value. Default is |
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
This method permanently overrides any default values for this visual property. This method ultimately calls the generic function, setNetworkPropertyBypass, which can be used to set any visual property. To restore defaults, use clearNetworkPropertyBypass.
None
setNetworkPropertyBypass, clearNetworkPropertyBypass
setNetworkCenterBypass()
setNetworkCenterBypass()
Set bypass values for any network property, overriding default values defined by any visual style.
setNetworkPropertyBypass( new.value, visual.property, bypass = TRUE, network = NULL, base.url = .defaultBaseUrl )
setNetworkPropertyBypass( new.value, visual.property, bypass = TRUE, network = NULL, base.url = .defaultBaseUrl )
new.value |
Value to set |
visual.property |
Name of a visual property. See getVisualPropertyNames. |
bypass |
Whether to set permanent bypass value. Default is |
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
This method permanently overrides any default values or mappings defined for the visual properties of the node or nodes specified. To restore defaults and mappings, use clearNodePropertyBypass.
None
setNetworkPropertyBypass()
setNetworkPropertyBypass()
Set the bypass value for scale factor for the network.
setNetworkZoomBypass( new.value, bypass = FALSE, network = NULL, base.url = .defaultBaseUrl )
setNetworkZoomBypass( new.value, bypass = FALSE, network = NULL, base.url = .defaultBaseUrl )
new.value |
Zoom factor |
bypass |
Whether to set permanent bypass value. Default is |
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
This method permanently overrides any default values for this visual property. This method ultimately calls the generic function, setNetworkPropertyBypass, which can be used to set any visual property. To restore defaults, use clearNetworkPropertyBypass.
None
setNetworkPropertyBypass, clearNetworkPropertyBypass
setNetworkZoomBypass()
setNetworkZoomBypass()
Override the border color for particular nodes.
setNodeBorderColorBypass( node.names, new.colors, network = NULL, base.url = .defaultBaseUrl )
setNodeBorderColorBypass( node.names, new.colors, network = NULL, base.url = .defaultBaseUrl )
node.names |
List of node names or SUIDs |
new.colors |
List of hex colors, or single value |
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
This method permanently overrides any default values or mappings defined for this visual property of the node or nodes specified. This method ultimately calls the generic function, setNodePropertyBypass, which can be used to set any visual property. To restore defaults and mappings, use clearNodePropertyBypass, see examples.
None
setNodePropertyBypass, clearNodePropertyBypass
setNodeBorderColorBypass('Node 1', '#FF55AA') setNodeBorderColorBypass(c('Node 1','Node 2'), '#FF55AA') clearNodePropertyBypass(c('Node 1','Node 2'), 'NODE_BORDER_PAINT')
setNodeBorderColorBypass('Node 1', '#FF55AA') setNodeBorderColorBypass(c('Node 1','Node 2'), '#FF55AA') clearNodePropertyBypass(c('Node 1','Node 2'), 'NODE_BORDER_PAINT')
Set the default node border color.
setNodeBorderColorDefault( new.color, style.name = NULL, base.url = .defaultBaseUrl )
setNodeBorderColorDefault( new.color, style.name = NULL, base.url = .defaultBaseUrl )
new.color |
Color as hex code, e.g., #FD5903 |
style.name |
Name of style; default is "default" style |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
None
setNodeBorderColorDefault('#FD5903')
setNodeBorderColorDefault('#FD5903')
Map table column values to colors to set the node border color.
setNodeBorderColorMapping( table.column, table.column.values = NULL, colors = NULL, mapping.type = "c", default.color = NULL, style.name = NULL, network = NULL, base.url = .defaultBaseUrl )
setNodeBorderColorMapping( table.column, table.column.values = NULL, colors = NULL, mapping.type = "c", default.color = NULL, style.name = NULL, network = NULL, base.url = .defaultBaseUrl )
table.column |
Name of Cytoscape table column to map values from |
table.column.values |
List of values from Cytoscape table to be used in mapping. Leave NULL to perform an automatic mapping to all column values. |
colors |
List of hex colors to map to table.column.values or a color palette function, e.g., paletteColorBrewerSet3 (without quotes). See RColorBrewer::display.brewer.all() |
mapping.type |
(char) continuous, discrete or passthrough (c,d,p); default is continuous |
default.color |
Hex color to set as default |
style.name |
Name of style; default is "default" style |
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
None
setNodeBorderColorMapping('score', c(0,5), c('#FFFFFF','#FF7755')) setNodeBorderColorMapping('score', colors=paletteColorBrewerRdBu) setNodeBorderColorMapping('score', colors=paletteColorBrewerSet3, mapping.type='d')
setNodeBorderColorMapping('score', c(0,5), c('#FFFFFF','#FF7755')) setNodeBorderColorMapping('score', colors=paletteColorBrewerRdBu) setNodeBorderColorMapping('score', colors=paletteColorBrewerSet3, mapping.type='d')
Override the border opacity for particular nodes.
setNodeBorderOpacityBypass( node.names, new.values, network = NULL, base.url = .defaultBaseUrl )
setNodeBorderOpacityBypass( node.names, new.values, network = NULL, base.url = .defaultBaseUrl )
node.names |
List of node names or SUIDs |
new.values |
List of values to set, or single value |
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
This method permanently overrides any default values or mappings defined for this visual property of the node or nodes specified. This method ultimately calls the generic function, setNodePropertyBypass, which can be used to set any visual property. To restore defaults and mappings, use clearNodePropertyBypass.
None
setNodePropertyBypass, clearNodePropertyBypass
setNodeBorderOpacityBypass()
setNodeBorderOpacityBypass()
Set defaults opacity value for all unmapped node borders.
setNodeBorderOpacityDefault( new.opacity, style.name = NULL, base.url = .defaultBaseUrl )
setNodeBorderOpacityDefault( new.opacity, style.name = NULL, base.url = .defaultBaseUrl )
new.opacity |
Numeric values between 0 and 255; 0 is invisible. |
style.name |
Name of style; default is "default" style. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
None
setNodeBorderOpacityDefault(50)
setNodeBorderOpacityDefault(50)
Sets opacity for node border only.
setNodeBorderOpacityMapping( table.column, table.column.values = NULL, opacities = NULL, mapping.type = "c", default.opacity = NULL, style.name = NULL, network = NULL, base.url = .defaultBaseUrl )
setNodeBorderOpacityMapping( table.column, table.column.values = NULL, opacities = NULL, mapping.type = "c", default.opacity = NULL, style.name = NULL, network = NULL, base.url = .defaultBaseUrl )
table.column |
Name of Cytoscape table column to map values from |
table.column.values |
List of values from Cytoscape table to be used in mapping. Leave NULL to perform an automatic mapping to all column values. |
opacities |
(integer) values between 0 and 255; 0 is invisible. A range of 50 to 255 is used by default for automatic mapping. |
mapping.type |
(char) continuous, discrete or passthrough (c,d,p); default is continuous |
default.opacity |
Opacity value to set as default for all unmapped values |
style.name |
Name of style; default is "default" style |
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
None
setNodeBorderOpacityMapping('score') setNodeBorderOpacityMapping('score', opacities=c(0,100)) setNodeBorderOpacityMapping('score', c(-5,5), c(50,255))
setNodeBorderOpacityMapping('score') setNodeBorderOpacityMapping('score', opacities=c(0,100)) setNodeBorderOpacityMapping('score', c(-5,5), c(50,255))
Override the border width for particular nodes.
setNodeBorderWidthBypass( node.names, new.sizes, network = NULL, base.url = .defaultBaseUrl )
setNodeBorderWidthBypass( node.names, new.sizes, network = NULL, base.url = .defaultBaseUrl )
node.names |
List of node names or SUIDs |
new.sizes |
List of size values, or single value |
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
This method permanently overrides any default values or mappings defined for this visual property of the node or nodes specified. This method ultimately calls the generic function, setNodePropertyBypass, which can be used to set any visual property. To restore defaults and mappings, use clearNodePropertyBypass, see examples.
None
setNodePropertyBypass, clearNodePropertyBypass
setNodeBorderWidthBypass('Node 1', 5) setNodeBorderWidthBypass(c('Node 1','Node 2'), 5) clearNodePropertyBypass(c('Node 1','Node 2'), 'NODE_BORDER_WIDTH')
setNodeBorderWidthBypass('Node 1', 5) setNodeBorderWidthBypass(c('Node 1','Node 2'), 5) clearNodePropertyBypass(c('Node 1','Node 2'), 'NODE_BORDER_WIDTH')
Set the default node border width.
setNodeBorderWidthDefault( new.width, style.name = NULL, base.url = .defaultBaseUrl )
setNodeBorderWidthDefault( new.width, style.name = NULL, base.url = .defaultBaseUrl )
new.width |
Numeric value for width |
style.name |
Name of style; default is "default" style. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
None
setNodeBorderWidthDefault(2)
setNodeBorderWidthDefault(2)
Map table column values to widths to set the node border width.
setNodeBorderWidthMapping( table.column, table.column.values = NULL, widths = NULL, mapping.type = "c", default.width = NULL, style.name = NULL, network = NULL, base.url = .defaultBaseUrl )
setNodeBorderWidthMapping( table.column, table.column.values = NULL, widths = NULL, mapping.type = "c", default.width = NULL, style.name = NULL, network = NULL, base.url = .defaultBaseUrl )
table.column |
Name of Cytoscape table column to map values from |
table.column.values |
List of values from Cytoscape table to be used in mapping. Leave NULL to perform an automatic mapping to all column values. |
widths |
List of width values to map to table.column.values. A range of 10 to 100 is used by default for automatic mapping. |
mapping.type |
(char) continuous, discrete or passthrough (c,d,p); default is continuous |
default.width |
Width value to set as default for all unmapped values |
style.name |
Name of style; default is "default" style |
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
None
setNodeBorderWidthMapping('score') setNodeBorderWidthMapping('score', widths=c(1,10)) setNodeBorderWidthMapping('score', c(0,30), c(1,5))
setNodeBorderWidthMapping('score') setNodeBorderWidthMapping('score', widths=c(1,10)) setNodeBorderWidthMapping('score', c(0,30), c(1,5))
Set the bypass value for fill color for the specified node or nodes.
setNodeColorBypass( node.names, new.colors, network = NULL, base.url = .defaultBaseUrl )
setNodeColorBypass( node.names, new.colors, network = NULL, base.url = .defaultBaseUrl )
node.names |
List of node names or SUIDs |
new.colors |
List of hex colors, or single value |
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
This method permanently overrides any default values or mappings defined for this visual property of the node or nodes specified. This method ultimately calls the generic function, setNodePropertyBypass, which can be used to set any visual property. To restore defaults and mappings, use clearNodePropertyBypass, see examples.
None
setNodePropertyBypass, clearNodePropertyBypass
setNodeColorBypass ('node1', '#FF0088') setNodeColorBypass (c('node1', 'node2'), c('#88FF88', '#FF0088')) clearNodePropertyBypass(c('Node 1','Node 2'), 'NODE_FILL_COLOR')
setNodeColorBypass ('node1', '#FF0088') setNodeColorBypass (c('node1', 'node2'), c('#88FF88', '#FF0088')) clearNodePropertyBypass(c('Node 1','Node 2'), 'NODE_FILL_COLOR')
Set the default node color.
setNodeColorDefault(new.color, style.name = NULL, base.url = .defaultBaseUrl)
setNodeColorDefault(new.color, style.name = NULL, base.url = .defaultBaseUrl)
new.color |
Color as hex code, e.g., #FD5903 |
style.name |
Name of style; default is "default" style |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
None
setNodeColorDefault('#FD5903')
setNodeColorDefault('#FD5903')
Map table column values to colors to set the node fill color.
setNodeColorMapping( table.column, table.column.values = NULL, colors = NULL, mapping.type = "c", default.color = NULL, style.name = NULL, network = NULL, base.url = .defaultBaseUrl )
setNodeColorMapping( table.column, table.column.values = NULL, colors = NULL, mapping.type = "c", default.color = NULL, style.name = NULL, network = NULL, base.url = .defaultBaseUrl )
table.column |
Name of Cytoscape table column to map values from |
table.column.values |
List of values from Cytoscape table to be used in mapping. Leave NULL to perform an automatic mapping to all column values. |
colors |
List of hex colors to map to table.column.values or a color palette function, e.g., paletteColorBrewerSet3 (without quotes). See RColorBrewer::display.brewer.all() |
mapping.type |
(char) continuous, discrete or passthrough (c,d,p); default is continuous |
default.color |
Hex color to set as default |
style.name |
Name of style; default is "default" style |
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
None
setNodeColorMapping('score', c(-5,0,5), c('#5577FF','#FFFFFF','#FF7755')) setNodeColorMapping('score', colors=paletteColorBrewerRdBu) setNodeColorMapping('score', colors=paletteColorBrewerSet3, mapping.type='d')
setNodeColorMapping('score', c(-5,0,5), c('#5577FF','#FFFFFF','#FF7755')) setNodeColorMapping('score', colors=paletteColorBrewerRdBu) setNodeColorMapping('score', colors=paletteColorBrewerSet3, mapping.type='d')
Sets opacity for node fill, border and label all together.
setNodeComboOpacityMapping( table.column, table.column.values = NULL, opacities = NULL, mapping.type = "c", default.opacity = NULL, style.name = NULL, network = NULL, base.url = .defaultBaseUrl )
setNodeComboOpacityMapping( table.column, table.column.values = NULL, opacities = NULL, mapping.type = "c", default.opacity = NULL, style.name = NULL, network = NULL, base.url = .defaultBaseUrl )
table.column |
Name of Cytoscape table column to map values from |
table.column.values |
List of values from Cytoscape table to be used in mapping. Leave NULL to perform an automatic mapping to all column values. |
opacities |
(integer) values between 0 and 255; 0 is invisible. A range of 50 to 255 is used by default for automatic mapping. |
mapping.type |
(char) continuous, discrete or passthrough (c,d,p); default is continuous |
default.opacity |
Opacity value to set as default for all unmapped values |
style.name |
Name of style; default is "default" style |
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
None
setNodeComboOpacityMapping('score') setNodeComboOpacityMapping('score', opacities=c(0,100)) setNodeComboOpacityMapping('score', c(-5,5), c(50,255))
setNodeComboOpacityMapping('score') setNodeComboOpacityMapping('score', opacities=c(0,100)) setNodeComboOpacityMapping('score', c(-5,5), c(50,255))
Makes a bar chart per node using specified node table columns by setting a default custom graphic style.
setNodeCustomBarChart( columns, type = "GROUPED", colors = NULL, range = NULL, orientation = "VERTICAL", colAxis = FALSE, rangeAxis = FALSE, zeroLine = FALSE, axisWidth = 0.25, axisColor = "#000000", axisFontSize = 1, separation = 0, slot = 1, style.name = NULL, base.url = .defaultBaseUrl )
setNodeCustomBarChart( columns, type = "GROUPED", colors = NULL, range = NULL, orientation = "VERTICAL", colAxis = FALSE, rangeAxis = FALSE, zeroLine = FALSE, axisWidth = 0.25, axisColor = "#000000", axisFontSize = 1, separation = 0, slot = 1, style.name = NULL, base.url = .defaultBaseUrl )
columns |
List of node column names to be displayed, in order. |
type |
Type of bar chart: GROUPED (default), STACKED, HEAT_STRIPS, or UP_DOWN |
colors |
(optional) List of colors to be matched with columns or with range, depending on type. Default is a set of colors from an appropriate Brewer palette. |
range |
(optional) Min and max values of chart. Default is to use min and max from specified data columns. |
orientation |
(optional) HORIZONTAL or VERTICAL (default). |
colAxis |
(optional) Show axis with column labels. Default is FALSE. |
rangeAxis |
(optional) Show axis with range of values. Default is FALSE. |
zeroLine |
(optional) Show a line at zero. Default is FALSE. |
axisWidth |
(optional) Width of axis lines, if shown. Default is 0.25. |
axisColor |
(optional) Color of axis lines, if shown. Default is black. |
axisFontSize |
(optional) Font size of axis labels, if shown. Default is 1. |
separation |
(optional) Distance between bars. Default is 0.0. |
slot |
(optional) Which custom graphics slot to modify. Slots 1-9 are available for independent charts, gradients and images. Default is 1. |
style.name |
(optional) Name of style; default is "default" style |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
None
setNodeCustomPosition, removeNodeCustomGraphics
setNodeCustomBarChart(c("data1","data2","data3"))
setNodeCustomBarChart(c("data1","data2","data3"))
Makes a box chart per node using specified node table columns by setting a default custom graphic style.
setNodeCustomBoxChart( columns, colors = NULL, range = NULL, orientation = "VERTICAL", rangeAxis = FALSE, zeroLine = FALSE, axisWidth = 0.25, axisColor = "#000000", axisFontSize = 1, slot = 1, style.name = NULL, base.url = .defaultBaseUrl )
setNodeCustomBoxChart( columns, colors = NULL, range = NULL, orientation = "VERTICAL", rangeAxis = FALSE, zeroLine = FALSE, axisWidth = 0.25, axisColor = "#000000", axisFontSize = 1, slot = 1, style.name = NULL, base.url = .defaultBaseUrl )
columns |
List of node column names to be displayed. |
colors |
(optional) List of colors to be matched with columns or with range, depending on type. Default is a set of colors from an appropriate Brewer palette. |
range |
(optional) Min and max values of chart. Default is to use min and max from specified data columns. |
orientation |
(optional) HORIZONTAL or VERTICAL (default). |
rangeAxis |
(optional) Show axis with range of values. Default is FALSE. |
zeroLine |
(optional) Show a line at zero. Default is FALSE. |
axisWidth |
(optional) Width of axis lines, if shown. Default is 0.25. |
axisColor |
(optional) Color of axis lines, if shown. Default is black. |
axisFontSize |
(optional) Font size of axis labels, if shown. Default is 1. |
slot |
(optional) Which custom graphics slot to modify. Slots 1-9 are available for independent charts, gradients and images. Default is 1. |
style.name |
(optional) Name of style; default is "default" style |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
None
setNodeCustomPosition, removeNodeCustomGraphics
setNodeCustomBoxChart(c("data1","data2","data3"))
setNodeCustomBoxChart(c("data1","data2","data3"))
Makes a heatmap chart per node using specified node table columns by setting a default custom graphic style.
setNodeCustomHeatMapChart( columns, colors = NULL, range = NULL, orientation = "HORIZONTAL", rangeAxis = FALSE, zeroLine = FALSE, axisWidth = 0.25, axisColor = "#000000", axisFontSize = 1, slot = 1, style.name = NULL, base.url = .defaultBaseUrl )
setNodeCustomHeatMapChart( columns, colors = NULL, range = NULL, orientation = "HORIZONTAL", rangeAxis = FALSE, zeroLine = FALSE, axisWidth = 0.25, axisColor = "#000000", axisFontSize = 1, slot = 1, style.name = NULL, base.url = .defaultBaseUrl )
columns |
List of node column names to be displayed. |
colors |
(optional) List of colors to be matched with columns or with range, depending on type. Default is a set of colors from an appropriate Brewer palette. |
range |
(optional) Min and max values of chart. Default is to use min and max from specified data columns. |
orientation |
(optional) VERTICAL or HORIZONTAL (default). |
rangeAxis |
(optional) Show axis with range of values. Default is FALSE. |
zeroLine |
(optional) Show a line at zero. Default is FALSE. |
axisWidth |
(optional) Width of axis lines, if shown. Default is 0.25. |
axisColor |
(optional) Color of axis lines, if shown. Default is black. |
axisFontSize |
(optional) Font size of axis labels, if shown. Default is 1. |
slot |
(optional) Which custom graphics slot to modify. Slots 1-9 are available for independent charts, gradients and images. Default is 1. |
style.name |
(optional) Name of style; default is "default" style |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
None
setNodeCustomPosition, removeNodeCustomGraphics
setNodeCustomHeatMapChart(c("data1","data2","data3"))
setNodeCustomHeatMapChart(c("data1","data2","data3"))
Makes a gradient fill per node by setting a default custom graphic style.
setNodeCustomLinearGradient( colors = c("#DDDDDD", "#888888"), anchors = c(0, 1), angle = 0, slot = 1, style.name = NULL, base.url = .defaultBaseUrl )
setNodeCustomLinearGradient( colors = c("#DDDDDD", "#888888"), anchors = c(0, 1), angle = 0, slot = 1, style.name = NULL, base.url = .defaultBaseUrl )
colors |
(optional) List of colors to define gradient |
anchors |
(optional) Position of colors from 0.0 to 1.0. |
angle |
(optional) Angle of gradient. Default is 0 (left-to-right). |
slot |
(optional) Which custom graphics slot to modify. Slots 1-9 are available for independent charts, gradients and images. Default is 1. |
style.name |
(optional) Name of style; default is "default" style |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
None
setNodeCustomLinearGradient()
setNodeCustomLinearGradient()
Makes a line chart per node using specified node table columns by setting a default custom graphic style.
setNodeCustomLineChart( columns, colors = NULL, range = NULL, lineWidth = 1, rangeAxis = FALSE, zeroLine = FALSE, axisWidth = 0.25, axisColor = "#000000", axisFontSize = 1, slot = 1, style.name = NULL, base.url = .defaultBaseUrl )
setNodeCustomLineChart( columns, colors = NULL, range = NULL, lineWidth = 1, rangeAxis = FALSE, zeroLine = FALSE, axisWidth = 0.25, axisColor = "#000000", axisFontSize = 1, slot = 1, style.name = NULL, base.url = .defaultBaseUrl )
columns |
List of node column names to be displayed. |
colors |
(optional) List of colors to be matched with columns or with range, depending on type. Default is a set of colors from an appropriate Brewer palette. |
range |
(optional) Min and max values of chart. Default is to use min and max from specified data columns. |
lineWidth |
(optional) Width of chart line. Default is 1.0. |
rangeAxis |
(optional) Show axis with range of values. Default is FALSE. |
zeroLine |
(optional) Show a line at zero. Default is FALSE. |
axisWidth |
(optional) Width of axis lines, if shown. Default is 0.25. |
axisColor |
(optional) Color of axis lines, if shown. Default is black. |
axisFontSize |
(optional) Font size of axis labels, if shown. Default is 1. |
slot |
(optional) Which custom graphics slot to modify. Slots 1-9 are available for independent charts, gradients and images. Default is 1. |
style.name |
(optional) Name of style; default is "default" style |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
None
setNodeCustomPosition, removeNodeCustomGraphics
setNodeCustomLineChart(c("data1","data2","data3"))
setNodeCustomLineChart(c("data1","data2","data3"))
Makes a pie chart per node using specified node table columns by setting a default custom graphic style.
setNodeCustomPieChart( columns, colors = NULL, startAngle = 0, slot = 1, style.name = NULL, base.url = .defaultBaseUrl )
setNodeCustomPieChart( columns, colors = NULL, startAngle = 0, slot = 1, style.name = NULL, base.url = .defaultBaseUrl )
columns |
List of node column names to be displayed. |
colors |
(optional) List of colors to be matched with columns or with range, depending on type. Default is a set of colors from an appropriate Brewer palette. |
startAngle |
(optional) Angle to start filling pie. Default is 0.0. |
slot |
(optional) Which custom graphics slot to modify. Slots 1-9 are available for independent charts, gradients and images. Default is 1. |
style.name |
(optional) Name of style; default is "default" style |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
None
setNodeCustomPosition, removeNodeCustomGraphics
setNodeCustomPieChart(c("data1","data2","data3"))
setNodeCustomPieChart(c("data1","data2","data3"))
Adjust the position of a custom graphic relative to its node.
setNodeCustomPosition( nodeAnchor = "C", graphicAnchor = "C", justification = "c", xOffset = 0, yOffset = 0, slot = 1, style.name = NULL, base.url = .defaultBaseUrl )
setNodeCustomPosition( nodeAnchor = "C", graphicAnchor = "C", justification = "c", xOffset = 0, yOffset = 0, slot = 1, style.name = NULL, base.url = .defaultBaseUrl )
nodeAnchor |
Position on node to place the graphic: NW,N,NE,E,SE,S,SW,W or C for center (default) |
graphicAnchor |
Position on graphic to place on node: NW,N,NE,E,SE,S,SW,W or C for center (default) |
justification |
Positioning of content within graphic: l,r,c (default) |
xOffset |
Additional offset in the x direction |
yOffset |
Additional offset in the y direction |
slot |
(optional) Which custom graphics slot to modify. Slots 1-9 are available for independent charts, gradients and images. Default is 1. |
style.name |
(optional) Name of style; default is "default" style |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
None
setNodeCustomPosition()
setNodeCustomPosition()
Makes a gradient fill per node by setting a default custom graphic style.
setNodeCustomRadialGradient( colors = c("#DDDDDD", "#888888"), anchors = c(0, 1), xCenter = 0.5, yCenter = 0.5, slot = 1, style.name = NULL, base.url = .defaultBaseUrl )
setNodeCustomRadialGradient( colors = c("#DDDDDD", "#888888"), anchors = c(0, 1), xCenter = 0.5, yCenter = 0.5, slot = 1, style.name = NULL, base.url = .defaultBaseUrl )
colors |
(optional) List of colors to define gradient |
anchors |
(optional) Position of colors from 0.0 to 1.0. |
xCenter |
(optional) X position for center of radial effect from 0.0 to 1.0. Default is 0.5. |
yCenter |
(optional) Y position for center of radial effect from 0.0 to 1.0. Default is 0.5. |
slot |
(optional) Which custom graphics slot to modify. Slots 1-9 are available for independent charts, gradients and images. Default is 1. |
style.name |
(optional) Name of style; default is "default" style |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
None
setNodeCustomRadialGradient()
setNodeCustomRadialGradient()
Makes a ring chart per node using specified node table columns by setting a default custom graphic style.
setNodeCustomRingChart( columns, colors = NULL, startAngle = 0, holeSize = 0.5, slot = 1, style.name = NULL, base.url = .defaultBaseUrl )
setNodeCustomRingChart( columns, colors = NULL, startAngle = 0, holeSize = 0.5, slot = 1, style.name = NULL, base.url = .defaultBaseUrl )
columns |
List of node column names to be displayed. |
colors |
(optional) List of colors to be matched with columns or with range, depending on type. Default is a set of colors from an appropriate Brewer palette. |
startAngle |
(optional) Angle to start filling ring Default is 0.0. |
holeSize |
(optional) Size of hole in ring. Ranges 0-1. Default is 0.5. |
slot |
(optional) Which custom graphics slot to modify. Slots 1-9 are available for independent charts, gradients and images. Default is 1. |
style.name |
(optional) Name of style; default is "default" style |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
None
setNodeCustomPosition, removeNodeCustomGraphics
setNodeCustomRingChart(c("data1","data2","data3"))
setNodeCustomRingChart(c("data1","data2","data3"))
Override the fill opacity for particular nodes.
setNodeFillOpacityBypass( node.names, new.values, network = NULL, base.url = .defaultBaseUrl )
setNodeFillOpacityBypass( node.names, new.values, network = NULL, base.url = .defaultBaseUrl )
node.names |
List of node names or SUIDs |
new.values |
List of values to set, or single value |
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
This method permanently overrides any default values or mappings defined for this visual property of the node or nodes specified. This method ultimately calls the generic function, setNodePropertyBypass, which can be used to set any visual property. To restore defaults and mappings, use clearNodePropertyBypass, see examples.
None
setNodePropertyBypass, clearNodePropertyBypass
setNodeFillOpacityBypass('Node 1', 100) setNodeFillOpacityBypass(c('Node 1','Node 2'), 100) clearNodePropertyBypass(c('Node 1','Node 2'), 'NODE_TRANSPARENCY')
setNodeFillOpacityBypass('Node 1', 100) setNodeFillOpacityBypass(c('Node 1','Node 2'), 100) clearNodePropertyBypass(c('Node 1','Node 2'), 'NODE_TRANSPARENCY')
Set default opacity value for all unmapped nodes.
setNodeFillOpacityDefault( new.opacity, style.name = NULL, base.url = .defaultBaseUrl )
setNodeFillOpacityDefault( new.opacity, style.name = NULL, base.url = .defaultBaseUrl )
new.opacity |
Numeric values between 0 and 255; 0 is invisible. |
style.name |
Name of style; default is "default" style. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
None
setNodeFillOpacityDefault(50)
setNodeFillOpacityDefault(50)
Sets opacity for node fill only.
setNodeFillOpacityMapping( table.column, table.column.values = NULL, opacities = NULL, mapping.type = "c", default.opacity = NULL, style.name = NULL, network = NULL, base.url = .defaultBaseUrl )
setNodeFillOpacityMapping( table.column, table.column.values = NULL, opacities = NULL, mapping.type = "c", default.opacity = NULL, style.name = NULL, network = NULL, base.url = .defaultBaseUrl )
table.column |
Name of Cytoscape table column to map values from |
table.column.values |
List of values from Cytoscape table to be used in mapping. Leave NULL to perform an automatic mapping to all column values. |
opacities |
(integer) values between 0 and 255; 0 is invisible. A range of 50 to 255 is used by default for automatic mapping. |
mapping.type |
(char) continuous, discrete or passthrough (c,d,p); default is continuous |
default.opacity |
Opacity value to set as default for all unmapped values |
style.name |
Name of style; default is "default" style |
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
None
setNodeFillOpacityMapping('score') setNodeFillOpacityMapping('score', opacities=c(0,100)) setNodeFillOpacityMapping('score', c(-5,5), c(50,255))
setNodeFillOpacityMapping('score') setNodeFillOpacityMapping('score', opacities=c(0,100)) setNodeFillOpacityMapping('score', c(-5,5), c(50,255))
Override the font face for particular nodes.
setNodeFontFaceBypass( node.names, new.fonts, network = NULL, base.url = .defaultBaseUrl )
setNodeFontFaceBypass( node.names, new.fonts, network = NULL, base.url = .defaultBaseUrl )
node.names |
List of node names or SUIDs |
new.fonts |
List of font faces, or single value |
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
This method permanently overrides any default values or mappings defined for this visual property of the node or nodes specified. This method ultimately calls the generic function, setNodePropertyBypass, which can be used to set any visual property. To restore defaults and mappings, use clearNodePropertyBypass.
None
setNodePropertyBypass, clearNodePropertyBypass
setNodeFontFaceBypass()
setNodeFontFaceBypass()
Set the default node font.
setNodeFontFaceDefault(new.font, style.name = NULL, base.url = .defaultBaseUrl)
setNodeFontFaceDefault(new.font, style.name = NULL, base.url = .defaultBaseUrl)
new.font |
String specification of font face, style and size, e.g., "SansSerif,plain,12" or "Dialog,plain,10" |
style.name |
Name of style; default is "default" style |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
None
setNodeFontFaceDefault("Dialog,plain,10")
setNodeFontFaceDefault("Dialog,plain,10")
Sets font face for node labels.
setNodeFontFaceMapping( table.column, table.column.values, fonts, mapping.type = "d", default.font = NULL, style.name = NULL, network = NULL, base.url = .defaultBaseUrl )
setNodeFontFaceMapping( table.column, table.column.values, fonts, mapping.type = "d", default.font = NULL, style.name = NULL, network = NULL, base.url = .defaultBaseUrl )
table.column |
Name of Cytoscape table column to map values from |
table.column.values |
List of values from Cytoscape table to be used in mapping |
fonts |
List of string specifications of font face, style and size, e.g., c("SansSerif,plain,12", "Dialog,plain,10") |
mapping.type |
(char) discrete or passthrough (d,p); default is discrete |
default.font |
String specification of font face, style and size, e.g., "SansSerif,plain,12" or "Dialog,plain,10" |
style.name |
Name of style; default is "default" style |
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
None
setNodeFontFaceMapping("myfonts", c("normal","small"), c("SansSerif,plain,12", "Dialog,plain,10"))
setNodeFontFaceMapping("myfonts", c("normal","small"), c("SansSerif,plain,12", "Dialog,plain,10"))
Override the font size for particular nodes.
setNodeFontSizeBypass( node.names, new.sizes, network = NULL, base.url = .defaultBaseUrl )
setNodeFontSizeBypass( node.names, new.sizes, network = NULL, base.url = .defaultBaseUrl )
node.names |
List of node names or SUIDs |
new.sizes |
List of size values, or single value |
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
This method permanently overrides any default values or mappings defined for this visual property of the node or nodes specified. This method ultimately calls the generic function, setNodePropertyBypass, which can be used to set any visual property. To restore defaults and mappings, use clearNodePropertyBypass, see examples.
None
setNodePropertyBypass, clearNodePropertyBypass
setNodeFontSizeBypass('Node 1', 5) setNodeFontSizeBypass(c('Node 1','Node 2'), 5) clearNodePropertyBypass(c('Node 1','Node 2'), 'NODE_LABEL_FONT_SIZE')
setNodeFontSizeBypass('Node 1', 5) setNodeFontSizeBypass(c('Node 1','Node 2'), 5) clearNodePropertyBypass(c('Node 1','Node 2'), 'NODE_LABEL_FONT_SIZE')
Set the default node font size.
setNodeFontSizeDefault(new.size, style.name = NULL, base.url = .defaultBaseUrl)
setNodeFontSizeDefault(new.size, style.name = NULL, base.url = .defaultBaseUrl)
new.size |
Numeric value for size |
style.name |
Name of style; default is "default" style |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
None
setNodeFontSizeDefault(12)
setNodeFontSizeDefault(12)
Map table column values to sizes to set the node size.
setNodeFontSizeMapping( table.column, table.column.values = NULL, sizes = NULL, mapping.type = "c", default.size = NULL, style.name = NULL, network = NULL, base.url = .defaultBaseUrl )
setNodeFontSizeMapping( table.column, table.column.values = NULL, sizes = NULL, mapping.type = "c", default.size = NULL, style.name = NULL, network = NULL, base.url = .defaultBaseUrl )
table.column |
Name of Cytoscape table column to map values from |
table.column.values |
List of values from Cytoscape table to be used in mapping. Leave NULL to perform an automatic mapping to all column values. |
sizes |
List of sizes to map to table.column.values. A range of 10 to 100 is used by default for automatic mapping. |
mapping.type |
(char) continuous, discrete or passthrough (c,d,p); default is continuous |
default.size |
Size value to set as default |
style.name |
Name of style; default is "default" style |
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
None
setNodeFontSizeMapping('score') setNodeFontSizeMapping('score', sizes=c(6,24)) setNodeFontSizeMapping('score', c(0,30), c(35,55))
setNodeFontSizeMapping('score') setNodeFontSizeMapping('score', sizes=c(6,24)) setNodeFontSizeMapping('score', c(0,30), c(35,55))
Override the height for particular nodes.
setNodeHeightBypass( node.names, new.heights, network = NULL, base.url = .defaultBaseUrl )
setNodeHeightBypass( node.names, new.heights, network = NULL, base.url = .defaultBaseUrl )
node.names |
List of node names or SUIDs |
new.heights |
List of height values, or single value |
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
This method permanently overrides any default values or mappings defined for this visual property of the node or nodes specified. This method ultimately calls the generic function, setNodePropertyBypass, which can be used to set any visual property. To restore defaults and mappings, use clearNodePropertyBypass, see examples.
None
setNodePropertyBypass, clearNodePropertyBypass
setNodeHeightBypass('Node 1', 35) setNodeHeightBypass(c('Node 1','Node 2'), 35) clearNodePropertyBypass(c('Node 1','Node 2'), 'NODE_HEIGHT')
setNodeHeightBypass('Node 1', 35) setNodeHeightBypass(c('Node 1','Node 2'), 35) clearNodePropertyBypass(c('Node 1','Node 2'), 'NODE_HEIGHT')
Set the default node height.
setNodeHeightDefault(new.height, style.name = NULL, base.url = .defaultBaseUrl)
setNodeHeightDefault(new.height, style.name = NULL, base.url = .defaultBaseUrl)
new.height |
Numeric value for height. |
style.name |
Name of style; default is "default" style. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
None
setNodeHeightDefault(35)
setNodeHeightDefault(35)
Map table column values to the node heights.
setNodeHeightMapping( table.column, table.column.values = NULL, heights = NULL, mapping.type = "c", default.height = NULL, style.name = NULL, network = NULL, base.url = .defaultBaseUrl )
setNodeHeightMapping( table.column, table.column.values = NULL, heights = NULL, mapping.type = "c", default.height = NULL, style.name = NULL, network = NULL, base.url = .defaultBaseUrl )
table.column |
Name of Cytoscape table column to map values from |
table.column.values |
List of values from Cytoscape table to be used in mapping. Leave NULL to perform an automatic mapping to all column values. |
heights |
List of height values to map to table.column.values. A range of 10 to 100 is used by default for automatic mapping. |
mapping.type |
(char) continuous, discrete or passthrough (c,d,p); default is continuous |
default.height |
Size value to set as default |
style.name |
Name of style; default is "default" style |
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
Using this function will unlock node width and height to use separate values.
None
setNodeHeightMapping('score') setNodeHeightMapping('score', heights=c(30,80)) setNodeHeightMapping('score', c(0,30), c(35,55))
setNodeHeightMapping('score') setNodeHeightMapping('score', heights=c(30,80)) setNodeHeightMapping('score', c(0,30), c(35,55))
Override the label for particular nodes.
setNodeLabelBypass( node.names, new.labels, network = NULL, base.url = .defaultBaseUrl )
setNodeLabelBypass( node.names, new.labels, network = NULL, base.url = .defaultBaseUrl )
node.names |
List of node names or SUIDs |
new.labels |
List of labels, or single value |
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
This method permanently overrides any default values or mappings defined for this visual property of the node or nodes specified. This method ultimately calls the generic function, setNodePropertyBypass, which can be used to set any visual property. To restore defaults and mappings, use clearNodePropertyBypass, see examples.
None
setNodePropertyBypass, clearNodePropertyBypass
setNodeLabelBypass('Node 1', 'Custom Label') setNodeLabelBypass(c('Node 1','Node 2'), 'Custom Label') clearNodePropertyBypass(c('Node 1','Node 2'), 'NODE_LABEL')
setNodeLabelBypass('Node 1', 'Custom Label') setNodeLabelBypass(c('Node 1','Node 2'), 'Custom Label') clearNodePropertyBypass(c('Node 1','Node 2'), 'NODE_LABEL')
Override the label color for particular nodes.
setNodeLabelColorBypass( node.names, new.colors, network = NULL, base.url = .defaultBaseUrl )
setNodeLabelColorBypass( node.names, new.colors, network = NULL, base.url = .defaultBaseUrl )
node.names |
List of node names or SUIDs |
new.colors |
List of hex colors, or single value |
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
This method permanently overrides any default values or mappings defined for this visual property of the node or nodes specified. This method ultimately calls the generic function, setNodePropertyBypass, which can be used to set any visual property. To restore defaults and mappings, use clearNodePropertyBypass, see examples.
None
setNodePropertyBypass, clearNodePropertyBypass
setNodeLabelColorBypass('Node 1', '#FF55AA') setNodeLabelColorBypass(c('Node 1','Node 2'), '#FF55AA') clearNodePropertyBypass(c('Node 1','Node 2'), 'NODE_LABEL_COLOR')
setNodeLabelColorBypass('Node 1', '#FF55AA') setNodeLabelColorBypass(c('Node 1','Node 2'), '#FF55AA') clearNodePropertyBypass(c('Node 1','Node 2'), 'NODE_LABEL_COLOR')
Set the default node label color.
setNodeLabelColorDefault( new.color, style.name = NULL, base.url = .defaultBaseUrl )
setNodeLabelColorDefault( new.color, style.name = NULL, base.url = .defaultBaseUrl )
new.color |
Color as hex code, e.g., #FD5903 |
style.name |
Name of style; default is "default" style |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
None
setNodeLabelColorDefault('#FD5903')
setNodeLabelColorDefault('#FD5903')
Map table column values to colors to set the node border color.
setNodeLabelColorMapping( table.column, table.column.values = NULL, colors = NULL, mapping.type = "c", default.color = NULL, style.name = NULL, network = NULL, base.url = .defaultBaseUrl )
setNodeLabelColorMapping( table.column, table.column.values = NULL, colors = NULL, mapping.type = "c", default.color = NULL, style.name = NULL, network = NULL, base.url = .defaultBaseUrl )
table.column |
Name of Cytoscape table column to map values from |
table.column.values |
List of values from Cytoscape table to be used in mapping. Leave NULL to perform an automatic mapping to all column values. |
colors |
List of hex colors to map to table.column.values or a color palette function, e.g., paletteColorBrewerSet3 (without quotes). See RColorBrewer::display.brewer.all() |
mapping.type |
(char) continuous, discrete or passthrough (c,d,p); default is continuous |
default.color |
Hex color to set as default |
style.name |
Name of style; default is "default" style |
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
None
setNodeLabelColorMapping('score', c(0,5), c('#FFFFFF','#FF7755')) setNodeLabelColorMapping('score', colors=paletteColorBrewerRdBu) setNodeLabelColorMapping('score', colors=paletteColorBrewerSet3, mapping.type='d')
setNodeLabelColorMapping('score', c(0,5), c('#FFFFFF','#FF7755')) setNodeLabelColorMapping('score', colors=paletteColorBrewerRdBu) setNodeLabelColorMapping('score', colors=paletteColorBrewerSet3, mapping.type='d')
Set the default node label.
setNodeLabelDefault(new.label, style.name = NULL, base.url = .defaultBaseUrl)
setNodeLabelDefault(new.label, style.name = NULL, base.url = .defaultBaseUrl)
new.label |
String label for unmapped nodes. |
style.name |
Name of style; default is "default" style |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
None
setNodeLabelDefault('unknown')
setNodeLabelDefault('unknown')
Pass the values from a table column to display as node labels.
setNodeLabelMapping( table.column, style.name = NULL, network = NULL, base.url = .defaultBaseUrl )
setNodeLabelMapping( table.column, style.name = NULL, network = NULL, base.url = .defaultBaseUrl )
table.column |
Name of Cytoscape table column to map values from |
style.name |
Name of style; default is "default" style |
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
None
setNodeLabelMapping('name')
setNodeLabelMapping('name')
Override the label opacity for particular nodes.
setNodeLabelOpacityBypass( node.names, new.values, network = NULL, base.url = .defaultBaseUrl )
setNodeLabelOpacityBypass( node.names, new.values, network = NULL, base.url = .defaultBaseUrl )
node.names |
List of node names or SUIDs |
new.values |
List of values to set, or single value |
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
This method permanently overrides any default values or mappings defined for this visual property of the node or nodes specified. This method ultimately calls the generic function, setNodePropertyBypass, which can be used to set any visual property. To restore defaults and mappings, use clearNodePropertyBypass.
None
setNodePropertyBypass, clearNodePropertyBypass
setNodeLabelOpacityBypass()
setNodeLabelOpacityBypass()
Set default opacity value for all unmapped node labels.
setNodeLabelOpacityDefault( new.opacity, style.name = NULL, base.url = .defaultBaseUrl )
setNodeLabelOpacityDefault( new.opacity, style.name = NULL, base.url = .defaultBaseUrl )
new.opacity |
Numeric values between 0 and 255; 0 is invisible. |
style.name |
Name of style; default is "default" style. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
None
setNodeLabelOpacityDefault(50)
setNodeLabelOpacityDefault(50)
Sets opacity for node label only.
setNodeLabelOpacityMapping( table.column, table.column.values = NULL, opacities = NULL, mapping.type = "c", default.opacity = NULL, style.name = NULL, network = NULL, base.url = .defaultBaseUrl )
setNodeLabelOpacityMapping( table.column, table.column.values = NULL, opacities = NULL, mapping.type = "c", default.opacity = NULL, style.name = NULL, network = NULL, base.url = .defaultBaseUrl )
table.column |
Name of Cytoscape table column to map values from |
table.column.values |
List of values from Cytoscape table to be used in mapping. Leave NULL to perform an automatic mapping to all column values. |
opacities |
(integer) values between 0 and 255; 0 is invisible. A range of 50 to 255 is used by default for automatic mapping. |
mapping.type |
(char) continuous, discrete or passthrough (c,d,p); default is continuous |
default.opacity |
Opacity value to set as default for all unmapped values |
style.name |
Name of style; default is "default" style |
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
None
setNodeLabelOpacityMapping('score') setNodeLabelOpacityMapping('score', opacities=c(0,100)) setNodeLabelOpacityMapping('score', c(-5,5), c(50,255))
setNodeLabelOpacityMapping('score') setNodeLabelOpacityMapping('score', opacities=c(0,100)) setNodeLabelOpacityMapping('score', c(-5,5), c(50,255))
Override the label position for particular nodes.
setNodeLabelPositionBypass( node.names, new.positions, network = NULL, base.url = .defaultBaseUrl )
setNodeLabelPositionBypass( node.names, new.positions, network = NULL, base.url = .defaultBaseUrl )
node.names |
List of node names or SUIDs |
new.positions |
List of label positions, or single value |
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
This method permanently overrides any default values or mappings defined for this visual property of the node or nodes specified. This method ultimately calls the generic function, setNodePropertyBypass, which can be used to set any visual property. To restore defaults and mappings, use clearNodePropertyBypass, see examples.
None
setNodePropertyBypass, clearNodePropertyBypass
setNodeLabelPositionBypass('Node 1','E,S,c,0.00,0.00')
setNodeLabelPositionBypass('Node 1','E,S,c,0.00,0.00')
Set the default node label position
setNodeLabelPositionDefault( new.nodeAnchor, new.graphicAnchor, new.justification, new.xOffset, new.yOffset, style.name = NULL, base.url = .defaultBaseUrl )
setNodeLabelPositionDefault( new.nodeAnchor, new.graphicAnchor, new.justification, new.xOffset, new.yOffset, style.name = NULL, base.url = .defaultBaseUrl )
new.nodeAnchor |
New position on node to place the graphic: C,NW,N,NE,E,SE,S,SW,W |
new.graphicAnchor |
New position on graphic to place on node: C,NW,N,NE,E,SE,S,SW,W |
new.justification |
New positioning of content within graphic: l,r,c |
new.xOffset |
New additional offset in the x direction |
new.yOffset |
New additional offset in the y direction |
style.name |
Name of style; default is "default" style. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
None
setNodeLabelPositionDefault("S","C","c",0.00,0.00)
setNodeLabelPositionDefault("S","C","c",0.00,0.00)
Set the bypass value for node fill, label and border opacity for the specified node or nodes.
setNodeOpacityBypass( node.names, new.values, network = NULL, base.url = .defaultBaseUrl )
setNodeOpacityBypass( node.names, new.values, network = NULL, base.url = .defaultBaseUrl )
node.names |
List of node names or SUIDs |
new.values |
List of values to set, or single value |
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
This method permanently overrides any default values or mappings defined for this visual property of the node or nodes specified. This method ultimately calls the generic function, setNodePropertyBypass, which can be used to set any visual property. To restore defaults and mappings, use clearNodeOpacityBypass, see examples.
None
setNodePropertyBypass, clearNodeOpacityBypass
setNodeOpacityBypass('Node 1', 100) setNodeOpacityBypass(c('Node 1','Node 2'), 100) clearNodeOpacityBypass(c('Node 1','Node 2'))
setNodeOpacityBypass('Node 1', 100) setNodeOpacityBypass(c('Node 1','Node 2'), 100) clearNodeOpacityBypass(c('Node 1','Node 2'))
Sets the bypass value of node position for one or more nodes. Only
applicable if node dimensions are locked. See lockNodeDimensions
.
setNodePositionBypass( node.names, new.x.locations = NULL, new.y.locations = NULL, network = NULL, base.url = .defaultBaseUrl )
setNodePositionBypass( node.names, new.x.locations = NULL, new.y.locations = NULL, network = NULL, base.url = .defaultBaseUrl )
node.names |
List of node names or SUIDs |
new.x.locations |
List of x position values, or single value, default is current x position |
new.y.locations |
List of y position values, or single value, default is current y position |
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
This method permanently overrides any default values or mappings defined for this visual property of the node or nodes specified. This method ultimately calls the generic function, setNodePropertyBypass, which can be used to set any visual property. To restore defaults and mappings, use clearNodePropertyBypass, see examples.
None
setNodePropertyBypass, clearNodePropertyBypass
setNodePositionBypass('Node 1', 35)
setNodePositionBypass('Node 1', 35)
Set bypass values for any node property of the specified nodes, overriding default values and mappings defined by any visual style.
setNodePropertyBypass( node.names, new.values, visual.property, bypass = TRUE, network = NULL, base.url = .defaultBaseUrl )
setNodePropertyBypass( node.names, new.values, visual.property, bypass = TRUE, network = NULL, base.url = .defaultBaseUrl )
node.names |
List of node names or SUIDs |
new.values |
List of values to set, or single value |
visual.property |
Name of a visual property. See getVisualPropertyNames. |
bypass |
Whether to set permanent bypass value. Default is |
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
This method permanently overrides any default values or mappings defined for the visual properties of the node or nodes specified. To restore defaults and mappings, use clearNodePropertyBypass.
None
setNodePropertyBypass()
setNodePropertyBypass()
Set the default selection node color.
setNodeSelectionColorDefault( new.color, style.name = NULL, base.url = .defaultBaseUrl )
setNodeSelectionColorDefault( new.color, style.name = NULL, base.url = .defaultBaseUrl )
new.color |
Color as hex code, e.g., #FD5903 |
style.name |
(optional) Name of style; default is "default" style |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
None
setNodeSelectionColorDefault('#FD5903')
setNodeSelectionColorDefault('#FD5903')
Override the shape for particular nodes.
setNodeShapeBypass( node.names, new.shapes, network = NULL, base.url = .defaultBaseUrl )
setNodeShapeBypass( node.names, new.shapes, network = NULL, base.url = .defaultBaseUrl )
node.names |
List of node names or SUIDs |
new.shapes |
List of shapes, or single value. See getNodeShapes. |
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
This method permanently overrides any default values or mappings defined for this visual property of the node or nodes specified. This method ultimately calls the generic function, setNodePropertyBypass, which can be used to set any visual property. To restore defaults and mappings, use clearNodePropertyBypass, see examples.
None
setNodePropertyBypass, clearNodePropertyBypass
setNodeShapeBypass('Node 1', 'ROUND_RECTANGLE') setNodeShapeBypass(c('Node 1','Node 2'), 'ROUND_RECTANGLE') clearNodePropertyBypass(c('Node 1','Node 2'), 'NODE_SHAPE')
setNodeShapeBypass('Node 1', 'ROUND_RECTANGLE') setNodeShapeBypass(c('Node 1','Node 2'), 'ROUND_RECTANGLE') clearNodePropertyBypass(c('Node 1','Node 2'), 'NODE_SHAPE')
Set the default node shape.
setNodeShapeDefault(new.shape, style.name = NULL, base.url = .defaultBaseUrl)
setNodeShapeDefault(new.shape, style.name = NULL, base.url = .defaultBaseUrl)
new.shape |
Name of shape, e.g., ELLIPSE, RECTANGLE, etc (see getNodeShapes) |
style.name |
Name of style; default is "default" style |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
None
setNodeShapeDefault('ELLIPSE')
setNodeShapeDefault('ELLIPSE')
Map table column values to shapes to set the node shape.
setNodeShapeMapping( table.column, table.column.values = NULL, shapes = NULL, default.shape = NULL, style.name = NULL, network = NULL, base.url = .defaultBaseUrl )
setNodeShapeMapping( table.column, table.column.values = NULL, shapes = NULL, default.shape = NULL, style.name = NULL, network = NULL, base.url = .defaultBaseUrl )
table.column |
Name of Cytoscape table column to map values from |
table.column.values |
List of values from Cytoscape table to be used in mapping. Leave NULL to perform an automatic mapping to all column values. |
shapes |
List of shapes to map to table.column.values. Leave NULL to perform an automatic mapping to available shapes. See getNodeShapes |
default.shape |
Shape to set as default. See getNodeShapes |
style.name |
Name of style; default is "default" style |
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
None
setNodeShapeMapping('type') setNodeShapeMapping('type',c('protein','dna'),c('ELLIPSE','RECTANGLE'))
setNodeShapeMapping('type') setNodeShapeMapping('type',c('protein','dna'),c('ELLIPSE','RECTANGLE'))
Sets the bypass value of node size for one or more nodes. Only
applicable if node dimensions are locked. See lockNodeDimensions
.
setNodeSizeBypass( node.names, new.sizes, network = NULL, base.url = .defaultBaseUrl )
setNodeSizeBypass( node.names, new.sizes, network = NULL, base.url = .defaultBaseUrl )
node.names |
List of node names or SUIDs |
new.sizes |
List of size values, or single value |
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
This method permanently overrides any default values or mappings defined for this visual property of the node or nodes specified. This method ultimately calls the generic function, setNodePropertyBypass, which can be used to set any visual property. To restore defaults and mappings, use clearNodePropertyBypass, see examples.
None
setNodePropertyBypass, clearNodePropertyBypass
setNodeSizeBypass('Node 1', 35) setNodeSizeBypass(c('Node 1','Node 2'), 35) clearNodePropertyBypass(c('Node 1','Node 2'), 'NODE_SIZE')
setNodeSizeBypass('Node 1', 35) setNodeSizeBypass(c('Node 1','Node 2'), 35) clearNodePropertyBypass(c('Node 1','Node 2'), 'NODE_SIZE')
Set the default node size.
setNodeSizeDefault(new.size, style.name = NULL, base.url = .defaultBaseUrl)
setNodeSizeDefault(new.size, style.name = NULL, base.url = .defaultBaseUrl)
new.size |
Numeric value for size |
style.name |
Name of style; default is "default" style. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
None
setNodeSizeDefault(35)
setNodeSizeDefault(35)
Map table column values to node font sizes.
setNodeSizeMapping( table.column, table.column.values = NULL, sizes = NULL, mapping.type = "c", default.size = NULL, style.name = NULL, network = NULL, base.url = .defaultBaseUrl )
setNodeSizeMapping( table.column, table.column.values = NULL, sizes = NULL, mapping.type = "c", default.size = NULL, style.name = NULL, network = NULL, base.url = .defaultBaseUrl )
table.column |
Name of Cytoscape table column to map values from |
table.column.values |
List of values from Cytoscape table to be used in mapping. Leave NULL to perform an automatic mapping to all column values. |
sizes |
List of sizes to map to table.column.values. A range of 10 to 100 is used by default for automatic mapping. |
mapping.type |
(char) continuous, discrete or passthrough (c,d,p); default is continuous |
default.size |
Size value to set as default |
style.name |
Name of style; default is "default" style |
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
Using this function will lock node width and height to use a singular "size" value.
None
setNodeSizeMapping('score') setNodeSizeMapping('score', sizes=c(30,80)) setNodeSizeMapping('score', c(0,30), c(35,55))
setNodeSizeMapping('score') setNodeSizeMapping('score', sizes=c(30,80)) setNodeSizeMapping('score', c(0,30), c(35,55))
Sets a bypass tooltip for one or more nodes
setNodeTooltipBypass( node.names, new.tooltip, network = NULL, base.url = .defaultBaseUrl )
setNodeTooltipBypass( node.names, new.tooltip, network = NULL, base.url = .defaultBaseUrl )
node.names |
List of node names or SUIDs |
new.tooltip |
List of tooltips, or a single tooltip |
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
This method permanently overrides any default values or mappings defined for this visual property of the node or nodes specified. This method ultimately calls the generic function, setNodePropertyBypass, which can be used to set any visual property. To restore defaults and mappings, use clearNodePropertyBypass, see examples.
None
setNodePropertyBypass, clearNodePropertyBypass
setNodeTooltipBypass('Node 1', 'This is an important node.')
setNodeTooltipBypass('Node 1', 'This is an important node.')
Set the default node tooltip
setNodeTooltipDefault( new.tooltip, style.name = NULL, base.url = .defaultBaseUrl )
setNodeTooltipDefault( new.tooltip, style.name = NULL, base.url = .defaultBaseUrl )
new.tooltip |
String tooltip for unmapped nodes. |
style.name |
Name of style; default is "default" style |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
None
setNodeTooltipDefault('unknown')
setNodeTooltipDefault('unknown')
Pass the values from a table column to display as node tooltips.
setNodeTooltipMapping( table.column, style.name = NULL, network = NULL, base.url = .defaultBaseUrl )
setNodeTooltipMapping( table.column, style.name = NULL, network = NULL, base.url = .defaultBaseUrl )
table.column |
Name of Cytoscape table column to map values from |
style.name |
Name of style; default is "default" style |
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
None
setNodeTooltipMapping('description')
setNodeTooltipMapping('description')
Override the width for particular nodes.
setNodeWidthBypass( node.names, new.widths, network = NULL, base.url = .defaultBaseUrl )
setNodeWidthBypass( node.names, new.widths, network = NULL, base.url = .defaultBaseUrl )
node.names |
List of node names or SUIDs |
new.widths |
List of width values, or single value |
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
This method permanently overrides any default values or mappings defined for this visual property of the node or nodes specified. This method ultimately calls the generic function, setNodePropertyBypass, which can be used to set any visual property. To restore defaults and mappings, use clearNodePropertyBypass, see examples.
None
setNodePropertyBypass, clearNodePropertyBypass
setNodeWidthBypass('Node 1', 35) setNodeWidthBypass(c('Node 1','Node 2'), 35) clearNodePropertyBypass(c('Node 1','Node 2'), 'NODE_WIDTH')
setNodeWidthBypass('Node 1', 35) setNodeWidthBypass(c('Node 1','Node 2'), 35) clearNodePropertyBypass(c('Node 1','Node 2'), 'NODE_WIDTH')
Set the default node width.
setNodeWidthDefault(new.width, style.name = NULL, base.url = .defaultBaseUrl)
setNodeWidthDefault(new.width, style.name = NULL, base.url = .defaultBaseUrl)
new.width |
Numeric value for width. |
style.name |
Name of style; default is "default" style. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
None
setNodeWidthDefault(35)
setNodeWidthDefault(35)
Map table column values to the node widths.
setNodeWidthMapping( table.column, table.column.values = NULL, widths = NULL, mapping.type = "c", default.width = NULL, style.name = NULL, network = NULL, base.url = .defaultBaseUrl )
setNodeWidthMapping( table.column, table.column.values = NULL, widths = NULL, mapping.type = "c", default.width = NULL, style.name = NULL, network = NULL, base.url = .defaultBaseUrl )
table.column |
Name of Cytoscape table column to map values from |
table.column.values |
List of values from Cytoscape table to be used in mapping. Leave NULL to perform an automatic mapping to all column values. |
widths |
List of width values to map to table.column.values. A range of 10 to 100 is used by default for automatic mapping. |
mapping.type |
(char) continuous, discrete or passthrough (c,d,p); default is continuous |
default.width |
Size value to set as default |
style.name |
Name of style; default is "default" style |
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
None #' @details Using this function will unlock node width and height to use separate values.
setNodeWidthMapping('score') setNodeWidthMapping('score', widths=c(30,80)) setNodeWidthMapping('score', c(0,30), c(35,55))
setNodeWidthMapping('score') setNodeWidthMapping('score', widths=c(30,80)) setNodeWidthMapping('score', c(0,30), c(35,55))
setNotebookIsRunning
setNotebookIsRunning(newState = NULL)
setNotebookIsRunning(newState = NULL)
newState |
new state of running remote |
oldState
setNotebookIsRunning()
setNotebookIsRunning()
Set and return flag indicating that next command should reinitialize the sandbox according to the default_sandbox.
setSandboxReinitialize(doReinitialize = TRUE)
setSandboxReinitialize(doReinitialize = TRUE)
doReinitialize |
default is TRUE |
sandbox reinitialize
setCurrentSandbox()
setCurrentSandbox()
Sets the values of dependencies in a style, overriding any prior settings.
setStyleDependencies( style.name = NULL, dependencies, base.url = .defaultBaseUrl )
setStyleDependencies( style.name = NULL, dependencies, base.url = .defaultBaseUrl )
style.name |
Name of style; default is "default" style |
dependencies |
A |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
server response
arrowColorMatchesEdge nodeCustomGraphicsSizeSync nodeSizeLocked
setStyleDependencies("myStyle",list(nodeSizeLocked=TRUE))
setStyleDependencies("myStyle",list(nodeSizeLocked=TRUE))
Set the default value for a visual property.
setVisualPropertyDefault( style.string, style.name = NULL, base.url = .defaultBaseUrl )
setVisualPropertyDefault( style.string, style.name = NULL, base.url = .defaultBaseUrl )
style.string |
A named list including "visualProperty" and "value" |
style.name |
Name of style; default is "default" style |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
None
setVisualPropertyDefault(list(visualProperty = "NODE_SIZE", value = 35))
setVisualPropertyDefault(list(visualProperty = "NODE_SIZE", value = 35))
Apply a visual style to a network.
setVisualStyle(style.name, network = NULL, base.url = .defaultBaseUrl)
setVisualStyle(style.name, network = NULL, base.url = .defaultBaseUrl)
style.name |
Name of a visual style |
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
None
setVisualStyle()
setVisualStyle()
Set a boolean value to have the size of custom graphics match that of the node.
syncNodeCustomGraphicsSize( new.state, style.name = NULL, base.url = .defaultBaseUrl )
syncNodeCustomGraphicsSize( new.state, style.name = NULL, base.url = .defaultBaseUrl )
new.state |
(Boolean) Whether to sync node custom graphics size |
style.name |
Name of style; default is "default" style |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
None
syncNodeCustomGraphicsSize(TRUE)
syncNodeCustomGraphicsSize(TRUE)
Regardless of the current zoom level and network size, show (or hide) graphics details, e.g., node labels.
toggleGraphicsDetails(base.url = .defaultBaseUrl)
toggleGraphicsDetails(base.url = .defaultBaseUrl)
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
Displaying graphics details on a very large network will affect pan and zoom performance, depending on your available RAM. See cytoscapeMemoryStatus.
None
showGraphicsDetails(TRUE)
showGraphicsDetails(TRUE)
Ungroup annotation group from the network view in Cytoscape
ungroupAnnotation(names = NULL, network = NULL, base.url = .defaultBaseUrl)
ungroupAnnotation(names = NULL, network = NULL, base.url = .defaultBaseUrl)
names |
Name of annotation group by UUID or Name |
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
You can obtain a list of UUIDs by applying a subset function like so: sapply(getAnnotationList(), '[[', 'uuid')
None
ungroupAnnotation("016a4af1-69bc-4b99-8183-d6f118847f96") ungroupAnnotation(c("316869a4-39fc-4731-8f45-199dec9af10d","c3621eb4-4687-490f-9396-b829dd8767d5")) ungroupAnnotation("Group 1") ungroupAnnotation(c("Group1","Group2", "Group3"))
ungroupAnnotation("016a4af1-69bc-4b99-8183-d6f118847f96") ungroupAnnotation(c("316869a4-39fc-4731-8f45-199dec9af10d","c3621eb4-4687-490f-9396-b829dd8767d5")) ungroupAnnotation("Group 1") ungroupAnnotation(c("Group1","Group2", "Group3"))
Unhide all previously hidden nodes and edges, by clearing the Visible property bypass value.
unhideAll(network = NULL, base.url = .defaultBaseUrl)
unhideAll(network = NULL, base.url = .defaultBaseUrl)
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
This method sets node and edge visibility bypass to true, overriding any defaults or mappings. Pending CyREST updates, this method will ultimately call the generic function, clearEdgePropertyBypass, which can be used to clear any visual property.
None
clearEdgePropertyBypass, unhideNodes unhideEdges
unhideAll()
unhideAll()
Unhide specified edges that were previously hidden, by clearing the Visible property bypass value.
unhideEdges(edge.names, network = NULL, base.url = .defaultBaseUrl)
unhideEdges(edge.names, network = NULL, base.url = .defaultBaseUrl)
edge.names |
List of edge names or SUIDs |
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
This method ultimately calls the generic function, clearEdgePropertyBypass, which can be used to clear any visual property.
None
clearEdgePropertyBypass, unhideAll
unhideEdges()
unhideEdges()
Unhide specified nodes that were previously hidden, by clearing the Node Visible property bypass value.
unhideNodes(node.names, network = NULL, base.url = .defaultBaseUrl)
unhideNodes(node.names, network = NULL, base.url = .defaultBaseUrl)
node.names |
List of node names or SUIDs |
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
This method ultimately calls the generic function, clearNodePropertyBypass, which can be used to clear any visual property.
None
clearNodePropertyBypass, unhideAll
unhideNodes()
unhideNodes()
Uninstall an app from Cytoscape.
uninstallApp(app, base.url = .defaultBaseUrl)
uninstallApp(app, base.url = .defaultBaseUrl)
app |
Name of app |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
None
uninstallApp()
uninstallApp()
Adds a bounded text annotation to a Cytoscape network view. The object will also be added to the Annotation Panel in the GUI.
UpdateAnnotationBoundedText( text = NULL, annotationName = NULL, x.pos = NULL, y.pos = NULL, fontSize = NULL, fontFamily = NULL, fontStyle = NULL, color = NULL, angle = NULL, type = NULL, customShape = NULL, fillColor = NULL, opacity = NULL, borderThickness = NULL, borderColor = NULL, borderOpacity = NULL, height = NULL, width = NULL, name = NULL, canvas = NULL, z.order = NULL, network = NULL, base.url = .defaultBaseUrl )
UpdateAnnotationBoundedText( text = NULL, annotationName = NULL, x.pos = NULL, y.pos = NULL, fontSize = NULL, fontFamily = NULL, fontStyle = NULL, color = NULL, angle = NULL, type = NULL, customShape = NULL, fillColor = NULL, opacity = NULL, borderThickness = NULL, borderColor = NULL, borderOpacity = NULL, height = NULL, width = NULL, name = NULL, canvas = NULL, z.order = NULL, network = NULL, base.url = .defaultBaseUrl )
text |
The text to be displayed |
annotationName |
Name of annotation by UUID or Name |
x.pos |
(optional) X position in pixels from left; default is center of current view |
y.pos |
(optional) Y position in pixels from top; default is center of current view |
fontSize |
(optional) Numeric value; default is 12 |
fontFamily |
(optional) Font family; default is Arial |
fontStyle |
(optional) Font style; default is |
color |
(optional) Hexidecimal color; default is #000000 (black) |
angle |
(optional) Angle of text orientation; default is 0.0 (horizontal) |
type |
(optional) The type of the shape, default is RECTANGLE. See getNodeShapes() for valid options. |
customShape |
(optional) If a custom shape, this is the text of the shape |
fillColor |
(optional) Hexidecimal color; default is #000000 (black) |
opacity |
(optional) Opacity of fill color. Must be an integer between 0 and 100; default is 100. |
borderThickness |
(optional) Integer |
borderColor |
(optional) Hexidecimal color; default is #000000 (black) |
borderOpacity |
(optional) Integer between 0 and 100; default is 100. |
height |
(optional) Height of bounding shape; default is based on text height. |
width |
(optional) Width of bounding shape; default is based on text length. |
name |
(optional) Name of annotation object; default is "Text" |
canvas |
(optional) Canvas to display annotation, i.e., foreground (default) or background |
z.order |
(optional) Arrangement order specified by number (larger values are in front of smaller values); default is 0 |
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
A named list of annotation properties, including UUID
UpdateAnnotationBoundedText("test1", "annotationName") UpdateAnnotationBoundedText("test2", "annotationName", 1000, 1000, name="B2") UpdateAnnotationBoundedText("test3", "annotationName", 1200, 1000, 30, "Helvetica", "bold", "#990000", 40, name="B3", canvas="foreground",z=4)
UpdateAnnotationBoundedText("test1", "annotationName") UpdateAnnotationBoundedText("test2", "annotationName", 1000, 1000, name="B2") UpdateAnnotationBoundedText("test3", "annotationName", 1200, 1000, 30, "Helvetica", "bold", "#990000", 40, name="B3", canvas="foreground",z=4)
Updates a Image annotation to a Cytoscape network view. The object will also be added to the Annotation Panel in the GUI.
updateAnnotationImage( url = NULL, annotationName = NULL, x.pos = NULL, y.pos = NULL, angle = NULL, opacity = NULL, brightness = NULL, contrast = NULL, borderThickness = NULL, borderColor = NULL, borderOpacity = NULL, height = NULL, width = NULL, name = NULL, canvas = NULL, z.order = NULL, network = NULL, base.url = .defaultBaseUrl )
updateAnnotationImage( url = NULL, annotationName = NULL, x.pos = NULL, y.pos = NULL, angle = NULL, opacity = NULL, brightness = NULL, contrast = NULL, borderThickness = NULL, borderColor = NULL, borderOpacity = NULL, height = NULL, width = NULL, name = NULL, canvas = NULL, z.order = NULL, network = NULL, base.url = .defaultBaseUrl )
url |
URL or path to image file. File paths can be absolute or relative to current working directory. URLs must start with http:// or https://. |
annotationName |
Name of annotation by UUID or Name |
x.pos |
(optional) X position in pixels from left; default is center of current view |
y.pos |
(optional) Y position in pixels from top; default is center of current view |
angle |
(optional) Angle of text orientation; default is 0.0 (horizontal) |
opacity |
(optional) Opacity of fill color. Must be an integer between 0 and 100; default is 100. |
brightness |
(optional) Image brightness. Must be an integer between -100 and 100; default is 0 |
contrast |
(optional) Image contrast. Must be an integer between -100 and 100; default is 0 |
borderThickness |
(optional) Integer |
borderColor |
(optional) Hexidecimal color; default is #000000 (black) |
borderOpacity |
(optional) Integer between 0 and 100; default is 100. |
height |
(optional) Height of image; default is based on text height. |
width |
(optional) Width of image; default is based on text length. |
name |
(optional) Name of annotation object; default is "Image" |
canvas |
(optional) Canvas to display annotation, i.e., foreground (default) or background |
z.order |
(optional) Arrangement order specified by number (larger values are in front of smaller values); default is 0 |
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
A named list of annotation properties, including UUID
updateAnnotationImage("image.png") updateAnnotationImage("/Users/janedoe/Desktop/image.png", 1000, 1000, name="I2") updateAnnotationImage("https://www.example.com/image.png", 1200, 1000, 30, 40, name="I3", canvas="background",z=4)
updateAnnotationImage("image.png") updateAnnotationImage("/Users/janedoe/Desktop/image.png", 1000, 1000, name="I2") updateAnnotationImage("https://www.example.com/image.png", 1200, 1000, 30, 40, name="I3", canvas="background",z=4)
Updates a shape annotation to a Cytoscape network view. The object will also be added to the Annotation Panel in the GUI.
updateAnnotationShape( type = NULL, customShape = NULL, annotationName = NULL, x.pos = NULL, y.pos = NULL, angle = NULL, fillColor = NULL, opacity = NULL, borderThickness = NULL, borderColor = NULL, borderOpacity = NULL, height = NULL, width = NULL, name = NULL, canvas = NULL, z.order = NULL, network = NULL, base.url = .defaultBaseUrl )
updateAnnotationShape( type = NULL, customShape = NULL, annotationName = NULL, x.pos = NULL, y.pos = NULL, angle = NULL, fillColor = NULL, opacity = NULL, borderThickness = NULL, borderColor = NULL, borderOpacity = NULL, height = NULL, width = NULL, name = NULL, canvas = NULL, z.order = NULL, network = NULL, base.url = .defaultBaseUrl )
type |
(optional) The type of the shape, default is RECTANGLE. See getNodeShapes() for valid options. |
customShape |
(optional) If a custom shape, this is the text of the shape |
annotationName |
Name of annotation by UUID or Name |
x.pos |
(optional) X position in pixels from left; default is center of current view |
y.pos |
(optional) Y position in pixels from top; default is center of current view |
angle |
(optional) Angle of text orientation; default is 0.0 (horizontal) |
fillColor |
(optional) Hexidecimal color; default is #000000 (black) |
opacity |
(optional) Opacity of fill color. Must be an integer between 0 and 100; default is 100. |
borderThickness |
(optional) Integer |
borderColor |
(optional) Hexidecimal color; default is #000000 (black) |
borderOpacity |
(optional) Integer between 0 and 100; default is 100. |
height |
(optional) Height of shape; default is based on text height. |
width |
(optional) Width of shape; default is based on text length. |
name |
(optional) Name of annotation object; default is "Shape" |
canvas |
(optional) Canvas to display annotation, i.e., foreground (default) or background |
z.order |
(optional) Arrangement order specified by number (larger values are in front of smaller values); default is 0 |
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
A named list of annotation properties, including UUID
updateAnnotationShape("rectangle", "annotationName") updateAnnotationShape("rectangle", "annotationName", 1000, 1000, name="S2") updateAnnotationShape("rectangle", "annotationName", 1200, 1000, 30, "#990000", 40,name="S3", canvas="background",z=4)
updateAnnotationShape("rectangle", "annotationName") updateAnnotationShape("rectangle", "annotationName", 1000, 1000, name="S2") updateAnnotationShape("rectangle", "annotationName", 1200, 1000, 30, "#990000", 40,name="S3", canvas="background",z=4)
Updates a text annotation to a Cytoscape network view. The object will also be added to the Annotation Panel in the GUI.
updateAnnotationText( text = NULL, annotationName = NULL, x.pos = NULL, y.pos = NULL, fontSize = NULL, fontFamily = NULL, fontStyle = NULL, color = NULL, angle = NULL, name = NULL, canvas = NULL, z.order = NULL, network = NULL, base.url = .defaultBaseUrl )
updateAnnotationText( text = NULL, annotationName = NULL, x.pos = NULL, y.pos = NULL, fontSize = NULL, fontFamily = NULL, fontStyle = NULL, color = NULL, angle = NULL, name = NULL, canvas = NULL, z.order = NULL, network = NULL, base.url = .defaultBaseUrl )
text |
The text to be displayed |
annotationName |
Name of annotation by UUID or Name |
x.pos |
(optional) X position in pixels from left; default is center of current view |
y.pos |
(optional) Y position in pixels from top; default is center of current view |
fontSize |
(optional) Numeric value; default is 12 |
fontFamily |
(optional) Font family; default is Arial |
fontStyle |
(optional) Font style; default is |
color |
(optional) Hexidecimal color; default is #000000 (black) |
angle |
(optional) Angle of text orientation; default is 0.0 (horizontal) |
name |
(optional) Name of annotation object; default is "Text" |
canvas |
(optional) Canvas to display annotation, i.e., foreground (default) or background |
z.order |
(optional) Arrangement order specified by number (larger values are in front of smaller values); default is 0 |
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
A named list of annotation properties, including UUID
updateAnnotationText("test1", "annotationName") updateAnnotationText("test2", "annotationName", 1000, 1000, name="T2") updateAnnotationText("test3", "annotationName", 1200, 1000, 30, "Helvetica", "bold", "#990000", 40,name="T3", canvas="foreground",z=4)
updateAnnotationText("test1", "annotationName") updateAnnotationText("test2", "annotationName", 1000, 1000, name="T2") updateAnnotationText("test3", "annotationName", 1200, 1000, 30, "Helvetica", "bold", "#990000", 40,name="T3", canvas="foreground",z=4)
Update a Cytoscape app to the latest available version.
updateApp(app, base.url = .defaultBaseUrl)
updateApp(app, base.url = .defaultBaseUrl)
app |
Name of app |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
None
updateApp()
updateApp()
Updates a group annotation, changing the given properties.
updateGroupAnnotation( name = NULL, annotationName = NULL, x.pos = NULL, y.pos = NULL, angle = NULL, canvas = NULL, z.order = NULL, network = NULL, base.url = .defaultBaseUrl )
updateGroupAnnotation( name = NULL, annotationName = NULL, x.pos = NULL, y.pos = NULL, angle = NULL, canvas = NULL, z.order = NULL, network = NULL, base.url = .defaultBaseUrl )
name |
(optional) Name of annotation object |
annotationName |
Name of annotation by UUID or Name |
x.pos |
(optional) X position in pixels from left; default is center of current view |
y.pos |
(optional) Y position in pixels from top; default is center of current view |
angle |
(optional) Angle of text orientation; default is 0.0 (horizontal) |
canvas |
(optional) Canvas to display annotation, i.e., foreground (default) or background |
z.order |
(optional) Arrangement order specified by number (larger values are in front of smaller values); default is 0 |
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
A named list of annotation properties, including UUID
updateGroupAnnotation("test1", "annotationName")
updateGroupAnnotation("test1", "annotationName")
Update an existing network in NDEx, given a previously assoicaiated Cytoscape network, e.g., previously exported to NDEx or imported from NDEx.
updateNetworkInNDEx( username, password, isPublic, network = NULL, metadata = NULL, base.url = .defaultBaseUrl )
updateNetworkInNDEx( username, password, isPublic, network = NULL, metadata = NULL, base.url = .defaultBaseUrl )
username |
NDEx account username |
password |
NDEx account password |
isPublic |
(Boolean) Whether to make the network publicly accessible at NDEx. |
network |
(optional) Name or SUID of the network. Default is the "current" network active in Cytoscape. |
metadata |
(optional) A list of structured information describing the network |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
NDEx identifier (externalId
) for the updated submission
updateNetworkInNDEx("user", "pass", TRUE)
updateNetworkInNDEx("user", "pass", TRUE)
Updates visual property defaults, overriding any prior settings. See mapVisualProperty for the list of visual properties.
updateStyleDefaults(style.name, defaults, base.url = .defaultBaseUrl)
updateStyleDefaults(style.name, defaults, base.url = .defaultBaseUrl)
style.name |
(char) name for style |
defaults |
(list) a list of visual property default settings |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
server response
mapVisualProperty
updateStyleDefaults('myStyle',list('node fill color'='#0000FF','node size'=50))
updateStyleDefaults('myStyle',list('node fill color'='#0000FF','node size'=50))
Updates the visual property mapping, overriding any prior mapping. Creates a visual property mapping if it doesn't already exist in the style.
updateStyleMapping(style.name, mapping, base.url = .defaultBaseUrl)
updateStyleMapping(style.name, mapping, base.url = .defaultBaseUrl)
style.name |
(char) name for style |
mapping |
a single visual property mapping, see mapVisualProperty |
base.url |
(optional) Ignore unless you need to specify a custom domain, port or version to connect to the CyREST API. Default is http://localhost:1234 and the latest version of the CyREST API supported by this version of RCy3. |
Requires visual property mappings to be previously created, see mapVisualProperty.
server response
mapVisualProperty
updateStyleMapping('myStyle',mapVisualProperty('node label','name','p'))
updateStyleMapping('myStyle',mapVisualProperty('node label','name','p'))