Networks
Basic Networks
Functions for NETWORK management and retrieving information on networks, nodes and edges. Includes all functions that result in the creation of a new network in Cytoscape, in addition to funcitons that extract network models into other useful objects.
General network functions
General node functions
General edge functions
Network creation
Network extraction
Internal functions
Note
See the Network Selection
section for all selection-related functions.
See the Utils
section for functions that convert node and edge names to SUIDs, and vice versa.
Nodes
|
Add one or more nodes to a Cytoscape network. |
|
Retrieve the names of all the nodes in the network. |
|
Returns a non-redundant list of first neighbors of the supplied list of nodes or current node selection. |
|
Reports the number of nodes in the network. |
Edges
|
Add one or more edges to a Cytoscape network by listing source and target node pairs. |
|
Retrieve the names of all the edges in the network. |
|
Reports the number of the edges in the network. |
|
Returns source, target and edge table row values. |
Network Management
|
Makes a copy of a Cytoscape Network with all of its edges and nodes. |
|
Copies a subset of nodes and edges into a newly created subnetwork. |
|
Delete all networks from the current Cytoscape session. |
|
Delete a network from the current Cytoscape session. |
|
Get the number of Cytoscape networks in the current Cytoscape session. |
|
Returns the list of Cytoscape network names in the current Cytoscape session. |
|
Get the name of a network. |
|
Get the SUID of a network. |
|
Sets a new name for a network. |
|
Selects the given network as “current”. |
Import/Export
|
Create a Cytoscape JS representation of a Cytoscape network. |
|
Create an igraph network from a Cytoscape network. |
|
Create a network from CytoscapeJS JSON. |
|
Create a network from data frames. |
|
Create a Cytoscape network from an igraph network. |
|
Create a Cytoscape network from a NetworkX graph. |
|
Return the Cytoscape network as a networkx multi-di-graph. |
|
Export a network to one of mulitple file formats. |
|
Loads a network from specified file. |
|
Loads a network from specified file. |
Network Selection
Functions for working with SELECTIONS of nodes and edges in networks, including operations that perform selection and rely on prior selection events.
General selection functions
Node selection functions
Edge selection functions
Nodes
|
If any nodes are selected in the network, they will be unselected. |
|
Delete currently selected nodes from the network. |
|
Returns the number of nodes currently selected in the network. |
|
Retrieve the names of all the nodes selected in the network. |
|
Select all nodes that were not selected and deselect all nodes that were selected. |
|
Selects all nodes and edges in a Cytoscape Network |
|
Selects all nodes in a Cytoscape Network. |
|
Select nodes directly connected to currently selected nodes. |
|
Select nodes in the network by SUID, name or other column values. |
Take currently selected edges and extends the selection to connected nodes, regardless of directionality. |
Edges
|
If any nodes are selected in the network, they will be unselected. |
|
Remove edges with duplicate names. |
|
Delete the currently selected edges in the network. |
|
Removes edges that connect to a single node as both source and target. |
|
Return the number of edges currently selected in the network. |
|
Retrieve the names of all the edges selected in the network. |
|
Select all edges that were not selected and deselect all edges that were selected. |
|
Selects all nodes and edges in a Cytoscape Network |
|
Selects all edges in a Cytoscape Network. |
|
Select edges in the network by SUID, name or other column values. |
|
Take currently selected nodes and add to the selection all edges connected to those nodes, regardless of directionality. |
Take currently selected nodes and add to the selection all edges connected to those nodes, regardless of directionality. |
|
Select edges in a Cytoscape Network connecting the selected nodes, including self loops connecting single nodes. |
Network Views
Functions for performing VIEW operations in addition to getting and setting view properties.
Views
|
Create a network view if one does not already exist |
|
Save the current network view as an image file. |
|
Zoom and pan network view to maximize either height or width of current network window. |
|
Retrieve the SUID of a network view. |
|
Retrieve list of network view SUIDs. |
|
Set which network view is “current”. |
|
Toggle Graphics Details. |