cyclient.networks.getView
cyclient.networks.getView(networkId, viewId, objectType, objectId, verbose=None)
Gets a list of Visual Properties for the Object specified by the objectId and objectType parameters in the Network View specified by the viewId and networkId parameters.
Additional details on common Visual Properties can be found in the Basic Visual Lexicon JavaDoc API
networkIdSUID of the NetworkviewIdSUID of the Network ViewobjectTypeType of ObjectobjectIdSUID of the Object-
verboseprint more -
returns200: successful operation
cyclient.networks.getColumnNames
cyclient.networks.getColumnNames(networkId, tableType, verbose=None)
Returns all the columns in the table specified by the networkId and tableType parameters.
networkIdSUID of the network containing the tabletableTypeTable Type-
verboseprint more -
returns200: successful operation
cyclient.networks.updateTable
cyclient.networks.updateTable(networkId, tableType, body, class_, verbose=None)
Updates the table specified by the tableType and networkId parameters. New columns will be created if they do not exist in the target table.
Current limitations:
Numbers are handled as Double
List column is not supported in this version
networkIdSUID containing the tabletableTypeType of tablebodyThe data with which to update the table.class_None -- Not required, can be None-
verboseprint more -
returnsdefault: successful operation
cyclient.networks.createNetworkFromSelected
cyclient.networks.createNetworkFromSelected(networkId, title, verbose=None)
Creates new sub-network from current selection, with the name specified by the title parameter.
Returns the SUID of the new sub-network.
networkIdSUID of the network containing the selected nodes and edgestitleName for the new sub-network -- Not required, can be None-
verboseprint more -
returns200: successful operation
cyclient.networks.getNodeCount
cyclient.networks.getNodeCount(networkId, verbose=None)
Returns the number of nodes in the network specified by the networkId parameter.
networkIdSUID of the network containing the nodes-
verboseprint more -
returns200: successful operation
cyclient.networks.collapseGroup
cyclient.networks.collapseGroup(networkId, groupNodeId, verbose=None)
Collapses the group specified by the groupNodeId and networkId parameters.
networkIdSUID of the NetworkgroupNodeIdSUID of the Node representing the Group-
verboseprint more -
returns204: Group collapsed; 500: Failed to collapse group
cyclient.networks.getEdge
cyclient.networks.getEdge(networkId, edgeId, verbose=None)
Returns an edge with its associated row data.
networkIdSUID of the network containing the edgeedgeIdSUID of the edge-
verboseprint more -
returns200: successful operation
cyclient.networks.getTables
cyclient.networks.getTables(networkId, verbose=None)
Returns every table in the network specified by the networkId parameter.
networkIdSUID of the Network-
verboseprint more -
returns200: successful operation
cyclient.networks.getFirstImageAsSvg
cyclient.networks.getFirstImageAsSvg(networkId, h, verbose=None)
Returns an SVG image of the first available Network View for the Network specified by the networkId parameter.
Default size is 600 px
networkIdSUID of the NetworkhHeight of the image. Width is set automatically -- Not required, can be None-
verboseprint more -
returns200: SVG image stream.
cyclient.networks.getRows
cyclient.networks.getRows(networkId, tableType, verbose=None)
Returns all rows from the table specified by networkId and tableType parameters. Returns a JSON representation of an array of rows.
[
{
"SUID": 101,
"gene_name": "brca1",
"exp": 0.1
},
{
"SUID": 102,
"gene_name": "brca2",
"exp": 0.2
}
]
networkIdSUID of the network containing the tabletableTypeTable Type-
verboseprint more -
returns200: successful operation
cyclient.networks.deleteGroup
cyclient.networks.deleteGroup(networkId, groupNodeId, verbose=None)
Deletes the group specified by the groupNodeId and networkId parameters. The nodes and edges that the group contained will remain present in the network, however the node used to identify the Group will be deleted.
networkIdSUID of the NetworkgroupNodeIdSUID of the Node representing the Group-
verboseprint more -
returnsdefault: successful operation
cyclient.networks.getSelectedNodes
cyclient.networks.getSelectedNodes(networkId, verbose=None)
Gets the selected nodes in the network specified by the networkId parameter. The results are presented as a list of SUIDs.
networkIdSUID of the network containing the nodes-
verboseprint more -
returns200: successful operation
cyclient.networks.setCurrentNetworkView
cyclient.networks.setCurrentNetworkView(body, verbose=None)
Sets the current Network View.
bodySUID of the Network View -- Not required, can be None-
verboseprint more -
returns200: successful operation
cyclient.networks.expandGroup
cyclient.networks.expandGroup(networkId, groupNodeId, verbose=None)
Expands the group specified by the groupNodeId and networkId parameters.
networkIdSUID of the NetworkgroupNodeIdSUID of the Node representing the Group-
verboseprint more -
returns204: Group expanded; 500: Failed to expand group
cyclient.networks.setSelectedEdges
cyclient.networks.setSelectedEdges(networkId, body, verbose=None)
Sets as selected the edges specified by the suids and networkId parameters.
Returns a list of selected SUIDs.
networkIdSUID of the network containing the edgesbodyArray of edge SUIDs to select -- Not required, can be None-
verboseprint more -
returns200: successful operation
cyclient.networks.getEdgeDirected
cyclient.networks.getEdgeDirected(networkId, edgeId, verbose=None)
Returns true if the edge specified by the edgeId and networkId parameters is directed.
networkIdSUID of the network containing the edgeedgeIdSUID of the edge-
verboseprint more -
returns200: successful operation
cyclient.networks.getRow
cyclient.networks.getRow(networkId, tableType, primaryKey, verbose=None)
Gets a row matching the value specified by the primaryKey parameter from the table specified by the tableType and networkId parameters.
Data is represented by column names and their values.
{
"name": "Hodor 1",
"value": 0.11,
"matched": false
...
}
networkIdSUID of the network containing the tabletableTypeTable typeprimaryKeyPrimary key of the row Object, normally an SUID-
verboseprint more -
returns200: successful operation
cyclient.networks.getCurrentNetworkView
cyclient.networks.getCurrentNetworkView(verbose=None)
Returns the current Network View.
-
verboseprint more -
returns200: successful operation
cyclient.networks.getImageAsSvg
cyclient.networks.getImageAsSvg(networkId, viewId, h, verbose=None)
Returns an SVG image of the Network View specified by the viewId and networkId parameters.
Default size is 600 px.
networkIdSUID of the NetworkviewIdSUID of the Network ViewhHeight of the image. Width is set automatically -- Not required, can be None-
verboseprint more -
returns200: SVG image stream.
cyclient.networks.getGroup
cyclient.networks.getGroup(networkId, groupNodeId, verbose=None)
Returns the group specified by the groupNodeId and networkId parameters.
networkIdSUID of the NetworkgroupNodeIdSUID of the Node representing the Group-
verboseprint more -
returns200: successful operation
cyclient.networks.getNetworkPointer
cyclient.networks.getNetworkPointer(networkId, nodeId, verbose=None)
If the node specified by the nodeId and networkId parameters has an associated nested network, returns the SUID of the nested network.
networkIdSUID of the network containing the nodenodeIdSUID of the node-
verboseprint more -
returns200: successful operation
cyclient.networks.getAllGroups
cyclient.networks.getAllGroups(networkId, verbose=None)
Returns a list of all the groups in the network specified by the networkId parameter.
networkIdNetwork SUID-
verboseprint more -
returns200: successful operation
cyclient.networks.getImageAsPdf
cyclient.networks.getImageAsPdf(networkId, viewId, verbose=None)
Returns a PDF of the Network View specified by the viewId and networkId parameters.
Default size is 500 px.
networkIdSUID of the NetworkviewIdSUID of the Network View-
verboseprint more -
returns200: PDF image stream.
cyclient.networks.putSingleVisualPropertyValueBypass
cyclient.networks.putSingleVisualPropertyValueBypass(networkId, viewId, objectType, objectId, visualProperty, body, verbose=None)
Bypasses the Visual Style of the object specified by the objectId and objectType parameters, in the Network View specified by the viewId and networkId parameters. The Visual Property included in the message body will be used instead of the definition provided by the Visual Style.
Examples of Visual Properties:
{
"visualProperty": "NODE_BORDER_WIDTH",
"value": 2
}
{
"visualProperty": "EDGE_TRANSPARENCY",
"value": 170
}```
{ "visualProperty": "NETWORK_BACKGROUND_PAINT", "value": "#000000" }``` Additional details on common Visual Properties can be found in the Basic Visual Lexicon JavaDoc API
networkIdNetwork SUIDviewIdNetwork View SUIDobjectTypeType of ObjectobjectIdSUID of the ObjectvisualPropertyName of the Visual PropertybodyA Visual Property and its value.-
verboseprint more -
returnsdefault: successful operation
cyclient.networks.getNetworkViewAsCx
cyclient.networks.getNetworkViewAsCx(networkId, viewId, verbose=None)
Returns the Network View specified by the viewId and networkId parameters in CX format
networkIdSUID of the NetworkviewIdSUID of the Network View-
verboseprint more -
returnsdefault: successful operation
cyclient.networks.deleteAllNodes
cyclient.networks.deleteAllNodes(networkId, verbose=None)
Delete all the nodes from the network specified by the networkId parameter.
networkIdSUID of the network to delete nodes from-
verboseprint more -
returnsdefault: successful operation
cyclient.networks.getNeighbours
cyclient.networks.getNeighbours(networkId, nodeId, verbose=None)
Returns the neighbors of the node specified by the nodeId and networkId parameters as a list of SUIDs.
networkIdSUID of the network containing the node.nodeIdSUID of the node-
verboseprint more -
returns200: successful operation
cyclient.networks.setSelectedNodes
cyclient.networks.setSelectedNodes(networkId, body, verbose=None)
Sets as selected the nodes specified by the suids and networkId parameters.
Returns a list of selected SUIDs.
networkIdSUID of the network containing the nodesbodyArray of node SUIDs to select -- Not required, can be None-
verboseprint more -
returns200: successful operation
cyclient.networks.getNetworkCount
cyclient.networks.getNetworkCount(verbose=None)
Returns the number of networks in current Cytoscape session.
-
verboseprint more -
returns200: successful operation
cyclient.networks.getViews
cyclient.networks.getViews(networkId, viewId, objectType, visualProperty, verbose=None)
Returns a list of all Visual Property values for the Visual Property specified by the visualProperty and objectType parameters, in the Network View specified by the viewId and networkId parameters.
Additional details on common Visual Properties can be found in the Basic Visual Lexicon JavaDoc API
networkIdSUID of the NetworkviewIdSUID of the Network ViewobjectTypeType of ObjectvisualPropertyName of the Visual Property -- Not required, can be None-
verboseprint more -
returns200: successful operation
cyclient.networks.getSelectedEdges
cyclient.networks.getSelectedEdges(networkId, verbose=None)
Gets the selected edges in the network specified by the networkId parameter. The results are presented as a list of SUIDs.
networkIdSUID of the network containing the edges-
verboseprint more -
returns200: successful operation
cyclient.networks.deleteFirstNetworkView
cyclient.networks.deleteFirstNetworkView(networkId, verbose=None)
Deletes the first available Network View for the Network specified by the networkId parameter. Cytoscape can have multiple views per network model, but this feature is not exposed in the Cytoscape GUI. GUI access is limited to the first available view only.
networkIdSUID of the Network-
verboseprint more -
returnsdefault: successful operation
cyclient.networks.deleteNetworkVisualProp
cyclient.networks.deleteNetworkVisualProp(networkId, viewId, visualProperty, verbose=None)
Deletes the bypass Visual Property specificed by the visualProperty, viewId, and networkId parameters. When this is done, the Visual Property will be defined by the Visual Style
Additional details on common Visual Properties can be found in the Basic Visual Lexicon JavaDoc API
networkIdSUID of the NetworkviewIdSUID of the Network ViewvisualPropertyName of the Visual Property-
verboseprint more -
returns200: successful operation
cyclient.networks.getFirstImageAsPng
cyclient.networks.getFirstImageAsPng(networkId, h, verbose=None)
Returns a PNG image of the first available Network View for the Network specified by the networkId parameter.
Default size is 600 px
networkIdSUID of the NetworkhHeight of the image. Width is set automatically -- Not required, can be None-
verboseprint more -
returns200: PNG image stream.
cyclient.networks.getColumnValues
cyclient.networks.getColumnValues(networkId, tableType, columnName, verbose=None)
Returns all the values for the column specified by the columnType parameter, in the table specified by the networkId and tableType parameters.
networkIdSUID of the NetworktableTypeType of TablecolumnNameName of the Column-
verboseprint more -
returns200: successful operation
cyclient.networks.getEdgeCount
cyclient.networks.getEdgeCount(networkId, verbose=None)
Returns the number of edges in the network specified by the networkId parameter.
networkIdSUID of the network containing the edges-
verboseprint more -
returns200: successful operation
cyclient.networks.updateNetworkView
cyclient.networks.updateNetworkView(networkId, viewId, bypass, body, verbose=None)
Updates the Visual Properties in the Network View specified by the viewId and networkId parameters.
Example Visual Properties:
{
"visualProperty": "NETWORK_BACKGROUND_PAINT",
"value": "#000000"
}```
{
"visualProperty": "NETWORK_CENTER_X_LOCATION",
"value": 250
}``
Additional details on common Visual Properties can be found in the [Basic Visual Lexicon JavaDoc API](http://chianti.ucsd.edu/cytoscape-3.6.1/API/org/cytoscape/view/presentation/property/BasicVisualLexicon.html)
Note that this sets the Visual Properties temporarily unless thebypassparameter is set totrue. If thebypassparameter is set totrue, the Visual Style will be overridden by these Visual Property values. If thebypassparameter is not used or is set tofalse`, any Visual Properties set will return to those defined in the Visual Style if the Network View is updated.
networkIdNetwork SUIDviewIdNetwork View SUIDbypassBypass the Visual Style with these properties -- Not required, can be NonebodyA list of Visual Properties and their values.-
verboseprint more -
returnsdefault: successful operation
cyclient.networks.getCell
cyclient.networks.getCell(networkId, tableType, primaryKey, columnName, verbose=None)
Return the value of a cell specified by the primaryKey and columnName parameters in the table specified by the tableType and networkId parameters.
Returns a JSON representation of a String, Boolean, Number, or List.
networkIdSUID of the network containing the tabletableTypeTable typeprimaryKeyPrimary key of the row Object, normally an SUIDcolumnNameName of the Column-
verboseprint more -
returns200: successful operation
cyclient.networks.getEdges
cyclient.networks.getEdges(networkId, column, query, verbose=None)
Returns a list of all edges in the network specified by the networkId parameter as SUIDs.
If the column and query parameters are specified, the results will be limited to rows in the edge table where the value in the column specified by the column parameter matches the value specified by the query parameter.
networkIdSUID of the network containing the edgescolumnThe name of the column that will be queried for matches. -- Not required, can be NonequeryThe value to be matched. -- Not required, can be None-
verboseprint more -
returns200: successful operation
cyclient.networks.createNetworkView
cyclient.networks.createNetworkView(networkId, verbose=None)
Creates a new Network View for the Network specified by the networkId parameter.
networkIdSUID of the Network-
verboseprint more -
returns201: Network View SUID
cyclient.networks.getNetwork
cyclient.networks.getNetwork(networkId, verbose=None)
Returns the Network specified by the networkId parameter with all associated tables in Cytoscape.js format
networkIdSUID of the Network-
verboseprint more -
returns200: successful operation
cyclient.networks.getNetworkViewCount
cyclient.networks.getNetworkViewCount(networkId, verbose=None)
Returns a count of the Network Views available for the Network specified by the networkId parameter.
Cytoscape can have multiple views per network model, but this feature is not exposed in the Cytoscape GUI. GUI access is limited to the first available view only.
networkIdSUID of the Network-
verboseprint more -
returns200: successful operation
cyclient.networks.updateView
cyclient.networks.updateView(networkId, viewId, objectType, objectId, bypass, body, verbose=None)
Updates the Visual Properties in the object specified by the objectId and objectType parameters in the Network View specified by the viewId and networkId parameters.
Examples of Visual Properties:
{
"visualProperty": "NODE_BORDER_WIDTH",
"value": 2
}
{
"visualProperty": "EDGE_TRANSPARENCY",
"value": 170
}```
{
"visualProperty": "NETWORK_BACKGROUND_PAINT",
"value": "#000000"
}``
Additional details on common Visual Properties can be found in the [Basic Visual Lexicon JavaDoc API](http://chianti.ucsd.edu/cytoscape-3.6.1/API/org/cytoscape/view/presentation/property/BasicVisualLexicon.html)
Note that this sets the Visual Properties temporarily unless thebypassparameter is set totrue. If thebypassparameter is set totrue, the Visual Style will be overridden by these Visual Property values. If thebypassparameter is not used or is set tofalse`, any Visual Properties set will return to those defined in the Visual Style if the Network View is updated.
networkIdSUID of the NetworkviewIdSUID of the Network ViewobjectTypeType of ObjectobjectIdSUID of the ObjectbypassBypass the Visual Style with these Visual Properties -- Not required, can be NonebodyA list of Visual Properties and their values.-
verboseprint more -
returnsdefault: successful operation
cyclient.networks.deleteAllNetworkViews
cyclient.networks.deleteAllNetworkViews(networkId, verbose=None)
Deletes all Network Views available in the Network specified by the networkId parameter. Cytoscape can have multiple views per network model, but this feature is not exposed in the Cytoscape GUI. GUI access is limited to the first available view only.
networkIdSUID of the Network-
verboseprint more -
returnsdefault: successful operation
cyclient.networks.getSingleVisualPropertyValueBypass
cyclient.networks.getSingleVisualPropertyValueBypass(networkId, viewId, objectType, objectId, visualProperty, verbose=None)
Gets the bypass Visual Property specified by the visualProperty parameter from the object specified by the objectId and objectType parameters in the Network View Specified by the viewId and networkId parameters. The response is the Visual Property that is used in place of the definition provided by the Visual Style.
Additional details on common Visual Properties can be found in the Basic Visual Lexicon JavaDoc API
networkIdNetwork SUIDviewIdNetwork View SUIDobjectTypeType of ObjectobjectIdSUID of the ObjectvisualPropertyName of the Visual Property-
verboseprint more -
returns200: successful operation
cyclient.networks.getNetworkVisualProp
cyclient.networks.getNetworkVisualProp(networkId, viewId, visualProperty, verbose=None)
Gets the Network Visual Property specificed by the visualProperty, viewId, and networkId parameters.
Additional details on common Visual Properties can be found in the Basic Visual Lexicon JavaDoc API
networkIdSUID of the NetworkviewIdSUID of the Network ViewvisualPropertyName of the Visual Property-
verboseprint more -
returns200: successful operation
cyclient.networks.getNetworkVisualProps
cyclient.networks.getNetworkVisualProps(networkId, viewId, verbose=None)
Returns a list of the Visual Properties for the Network View specified by the viewId and networkId parameters.
Additional details on common Visual Properties can be found in the Basic Visual Lexicon JavaDoc API
networkIdSUID of the NetworkviewIdSUID of the Network View-
verboseprint more -
returns200: successful operation
cyclient.networks.deleteNode
cyclient.networks.deleteNode(networkId, nodeId, verbose=None)
Deletes the node specified by the nodeId and networkId parameters.
networkIdSUID of the network containing the node.nodeIdSUID of the node-
verboseprint more -
returnsdefault: successful operation
cyclient.networks.createGroup
cyclient.networks.createGroup(networkId, body, verbose=None)
Create a new group in the network specified by the parameter networkId. The contents are specified the message body.
networkIdSUID of the NetworkbodyNew Group name and contents-
verboseprint more -
returns200: successful operation
cyclient.networks.getFirstNetworkView
cyclient.networks.getFirstNetworkView(networkId, file, verbose=None)
This returns the first view of the network. Cytoscape can have multiple views per network model, but this feature is not exposed in the Cytoscape GUI. GUI access is limited to the first available view only.
If the file parameter is left unspecified, the response will contain data in Cytoscape.js format.
If the file parameter is specified, the Network View will be written to a file, and the response will contain the location of the file in the following format:
{
"file": "/media/HD1/myFiles/networkView.sif"
}
The format of the output file is defined by the extension of the file parameter.
networkIdSUID of the NetworkfileA path to a file relative to the current directory. The format of the file written is defined by the file extension.
| Extension | Details |
|---|---|
| .cys | Cytoscape Style format |
| .xml/.xgmml | XGMML format |
| .nnf | NNF format |
| .sif | SIF format |
| .cyjs | Cytoscape.js format |
| -- Not required, can be None | |
* verbose print more |
returnsdefault: successful operation
cyclient.networks.deleteColumn
cyclient.networks.deleteColumn(networkId, tableType, columnName, verbose=None)
Deletes the column specified by the columnName parameter from the table speficied by the tableType and networkId parameters.
networkIdSUID of the network containing the table from which to delete the columntableTypeTable Type from which to delete the columncolumnNameName of the column to delete-
verboseprint more -
returnsdefault: successful operation
cyclient.networks.createNode
cyclient.networks.createNode(networkId, body, verbose=None)
Adds new nodes to the network specified by the networkId parameter. The name column will be populated by the contents of the message body.
networkIdSUID of the network containing the node.bodyArray of new node names-
verboseprint more -
returns201: ; 412:
cyclient.networks.getNeighborsSelected
cyclient.networks.getNeighborsSelected(networkId, verbose=None)
Returns the neighbors of the nodes currently selected in the network specified by the networkId parameter as a list of SUIDs.
Note that this does not include the nodes in the original selection.
networkIdSUID of the network-
verboseprint more -
returns200: successful operation
cyclient.networks.getImageAsPng
cyclient.networks.getImageAsPng(networkId, viewId, h, verbose=None)
Returns a PNG image of the Network View specified by the viewId and networkId parameters.
Default size is 600 px.
networkIdSUID of the NetworkviewIdSUID of the Network ViewhHeight of the image. Width is set automatically -- Not required, can be None-
verboseprint more -
returns200: PNG image stream.
cyclient.networks.getAdjEdges
cyclient.networks.getAdjEdges(networkId, nodeId, verbose=None)
Returns a list of connected edges as SUIDs for the node specified by the nodeId and networkId parameters.
networkIdSUID of the network containing the nodenodeIdSUID of the node-
verboseprint more -
returns200: successful operation
cyclient.networks.getNetworkVisualPropBypass
cyclient.networks.getNetworkVisualPropBypass(networkId, viewId, visualProperty, verbose=None)
Gets the bypass Visual Property specified by the visualProperty, viewId, and networkId parameters. The response is the Visual Property that is used in place of the definition provided by the Visual Style.
Additional details on common Visual Properties can be found in the Basic Visual Lexicon JavaDoc API
networkIdSUID of the NetworkviewIdSUID of the Network ViewvisualPropertyName of the Visual Property-
verboseprint more -
returns200: successful operation
cyclient.networks.createColumn
cyclient.networks.createColumn(networkId, tableType, body, verbose=None)
Creates a new, empty column in the table specified by the tableType parameter, in the network specified by the networkId parameter.
This resource can also accept an array of new columns to create multiple columns.
networkIdSUID of the NetworktableTypeTable TypebodyNew Column Info-
verboseprint more -
returns201: Column(s) createed; 412: Could not process column JSON
cyclient.networks.setCurrentNetwork
cyclient.networks.setCurrentNetwork(body, verbose=None)
Sets the current network.
bodySUID of the Network -- Not required, can be None-
verboseprint more -
returns200: successful operation
cyclient.networks.getNetworkView
cyclient.networks.getNetworkView(networkId, viewId, file, verbose=None)
Gets the Network View specified by the viewId and networkId parameters.
If the file parameter is left unspecified, the response will contain data in Cytoscape.js format.
If the file parameter is specified, the Network View will be written to a file, and the response will contain the location of the file in the following format:
{
"file": "/media/HD1/myFiles/networkView.sif"
}
The format of the output file is defined by the extension of the file parameter.
networkIdSUID of the NetworkviewIdSUID of the Network ViewfileA path to a file relative to the current directory. The format of the file written is defined by the file extension.
| Extension | Details |
|---|---|
| .cys | Cytoscape Style format |
| .xml/.xgmml | XGMML format |
| .nnf | NNF format |
| .sif | SIF format |
| .cyjs | Cytoscape.js format |
| -- Not required, can be None | |
* verbose print more |
returnsdefault: successful operation
cyclient.networks.getTable
cyclient.networks.getTable(networkId, tableType, verbose=None)
Returns the table specified by the networkId and 'tableType' parameters.
networkIdSUID of the network containing the tabletableTypeTable type-
verboseprint more -
returns200: successful operation
cyclient.networks.createEdge
cyclient.networks.createEdge(networkId, body, verbose=None)
Add new edge(s) to the network. Body should include an array of new node names. Returns and array of objects with fields itentifying the SUIDs of the new edges along with source and target SUIDs.
networkIdSUID of the network to add edges to.bodyArray of new edges-
verboseprint more -
returns200: successful operation
cyclient.networks.getAllNetworkViews
cyclient.networks.getAllNetworkViews(networkId, verbose=None)
Returns an array of all network views belonging to the network specified by the networkId paramter. The response is a list of Network SUIDs.
networkIdSUID of the Network-
verboseprint more -
returns200: An array of Network View SUIDs
cyclient.networks.updateColumnName
cyclient.networks.updateColumnName(networkId, tableType, body, verbose=None)
Renames an existing column in the table specified by the tableType and networkId parameters.
networkIdSUID of the network containing the tabletableTypeTable TypebodyOld and new column name-
verboseprint more -
returnsdefault: successful operation
cyclient.networks.getCurrentNetwork
cyclient.networks.getCurrentNetwork(verbose=None)
Returns the current network.
-
verboseprint more -
returns200: successful operation
cyclient.networks.updateViews
cyclient.networks.updateViews(networkId, viewId, objectType, bypass, body, verbose=None)
Updates multiple node or edge Visual Properties as defined by the objectType parameter, in the Network View specified by the viewId and networkId parameters.
Examples of Visual Properties:
{
"visualProperty": "NODE_BORDER_WIDTH",
"value": 2
}
{
"visualProperty": "NODE_BORDER_PAINT",
"value": "#CCCCCC"
}
{
"visualProperty": "EDGE_TRANSPARENCY",
"value": 170
}```
{
"visualProperty": "EDGE_PAINT",
"value": "#808080"
}``
Additional details on common Visual Properties can be found in the [Basic Visual Lexicon JavaDoc API](http://chianti.ucsd.edu/cytoscape-3.6.1/API/org/cytoscape/view/presentation/property/BasicVisualLexicon.html)
Note that this sets the Visual Properties temporarily unless thebypassparameter is set totrue. If thebypassparameter is set totrue, the Visual Style will be overridden by these Visual Property values. If thebypassparameter is not used or is set tofalse`, any Visual Properties set will return to those defined in the Visual Style if the Network View is updated.
networkIdSUID of the NetworkviewIdSUID of the Network ViewobjectTypeType of ObjectbypassBypass the Visual Style with these Visual Properties -- Not required, can be NonebodyA list of Objects with Visual Properties.-
verboseprint more -
returnsdefault: successful operation
cyclient.networks.getNodes
cyclient.networks.getNodes(networkId, column, query, verbose=None)
Returns a list of all nodes in the network specified by the networkId parameter as SUIDs.
If the column and query parameters are specified, the results will be limited to rows in the node table where the value in the column specified by the column parameter matches the value specified by the query parameter.
networkIdSUID of the network containing the nodescolumnThe name of the column that will be queried for matches. -- Not required, can be NonequeryThe value to be matched. -- Not required, can be None-
verboseprint more -
returns200: successful operation
cyclient.networks.putNetworkVisualPropBypass
cyclient.networks.putNetworkVisualPropBypass(networkId, viewId, visualProperty, body, verbose=None)
Bypasses the Visual Style of the Network with the Visual Property specificed by the visualProperty, viewId, and networkId parameters.
Additional details on common Visual Properties can be found in the Basic Visual Lexicon JavaDoc API
networkIdSUID of the NetworkviewIdSUID of the Network ViewvisualPropertyName of the Visual PropertybodyA Visual Property and its value.-
verboseprint more -
returns200: successful operation
cyclient.networks.deleteNetwork
cyclient.networks.deleteNetwork(networkId, verbose=None)
Deletes the network specified by the networkId parameter.
networkIdSUID of the network to delete-
verboseprint more -
returnsdefault: successful operation
cyclient.networks.getSingleVisualPropertyValue
cyclient.networks.getSingleVisualPropertyValue(networkId, viewId, objectType, objectId, visualProperty, verbose=None)
Gets the Visual Property specificed by the visualProperty parameter for the node or edge specified by the objectId parameter in the Network View specified by the viewId and networkId parameters.
Additional details on common Visual Properties can be found in the Basic Visual Lexicon JavaDoc API
networkIdSUID of the NetworkviewIdSUID of the Network ViewobjectTypeType of ObjectobjectIdSUID of the ObjectvisualPropertyName of the Visual Property-
verboseprint more -
returns200: successful operation
cyclient.networks.deleteAllGroups
cyclient.networks.deleteAllGroups(networkId, verbose=None)
Deletes all groups in the network specified by networkId parameter. The nodes and edges that the groups contained will remain present in the network, however the nodes used to identify the Groups will be deleted.
networkIdSUID of the Network-
verboseprint more -
returnsdefault: successful operation
cyclient.networks.deleteEdge
cyclient.networks.deleteEdge(networkId, edgeId, verbose=None)
Deletes the edge specified by the edgeId and networkId parameters.
networkIdSUID of the network containing the edge.edgeIdSUID of the edge-
verboseprint more -
returnsdefault: successful operation
cyclient.networks.getFirstImageAsPdf
cyclient.networks.getFirstImageAsPdf(networkId, h, verbose=None)
Returns a PDF of the first available Network View for the Network specified by the networkId parameter.
Default size is 600 px
networkIdSUID of the NetworkhHeight of the image. Width is set automatically -- Not required, can be None-
verboseprint more -
returns200: PDF image stream.
cyclient.networks.getTableAsCsv
cyclient.networks.getTableAsCsv(networkId, tableType, verbose=None)
Returns a CSV representation of the table specified by the networkId and tableType parameters. All column names are included in the first row.
networkIdSUID of the network containing the tabletableTypeTable type-
verboseprint more -
returns200: successful operation
cyclient.networks.getTableAsTsv
cyclient.networks.getTableAsTsv(networkId, tableType, verbose=None)
Returns a TSV (tab delimited text) representation of the table specified by the networkId and tableType parameters. All column names are included in the first row.
networkIdSUID of the network containing the tabletableTypeTable type-
verboseprint more -
returns200: successful operation
cyclient.networks.updateColumnValues
cyclient.networks.updateColumnValues(networkId, tableType, columnName, default, body, verbose=None)
Sets the values for cells in the table specified by the tableType and networkId parameters.
If the 'defaultparameter is not specified, the message body should consist of key-value pairs with which to set values.
If thedefault` parameter is specified, its value will be used for every cell in the column. This is useful to set columns like "selected."
networkIdSUID of the network containing the tabletableTypeThe type of tablecolumnNameName of the column in which to set valuesdefaultDefault Value. If this value is provided, all cells will be set to this. -- Not required, can be NonebodyArray of SUID Keyed values-
verboseprint more -
returnsdefault: successful operation
cyclient.networks.getEdgeComponent
cyclient.networks.getEdgeComponent(networkId, edgeId, type, verbose=None)
Returns the SUID of the source or target node of the edge specified by the edgeId and networkId parameters.
Return values can be in one of two formats, depending on the value specified in the type parameter:
{
"source": 101
}
{
"target": 102
}
networkIdSUID of the network containing the edgeedgeIdSUID of the edgetypeThe node type to return-
verboseprint more -
returns200: successful operation
cyclient.networks.getGroupCount
cyclient.networks.getGroupCount(networkId, verbose=None)
Returns the number of groups in the network
networkIdNetwork SUID-
verboseprint more -
returns200: successful operation
cyclient.networks.deleteSingleVisualPropertyValueBypass
cyclient.networks.deleteSingleVisualPropertyValueBypass(networkId, viewId, objectType, objectId, visualProperty, verbose=None)
Deletes the bypass Visual Property specified by the visualProperty parameter from the object specified by the objectId and objectType parameters in the Network View Specified by the viewId and networkId parameters. When this is done, the Visual Property will be defined by the Visual Style
Additional details on common Visual Properties can be found in the Basic Visual Lexicon JavaDoc API
networkIdSUID of the NetworkviewIdSUID of the Network ViewobjectTypeType of ObjectobjectIdSUID of ObjectvisualPropertyName of the Visual Property-
verboseprint more -
returns200: successful operation
cyclient.networks.deleteAllEdges
cyclient.networks.deleteAllEdges(networkId, verbose=None)
Delete all the edges from the network specified by the networkId parameter.
networkIdSUID of the network to delete edges from-
verboseprint more -
returnsdefault: successful operation
cyclient.networks.getNode
cyclient.networks.getNode(networkId, nodeId, verbose=None)
Returns a node with its associated row data.
networkIdSUID of the network containing the nodenodeIdSUID of the node-
verboseprint more -
returns200: successful operation