-
Notifications
You must be signed in to change notification settings - Fork 58
Standard Cytoscape JSON Models
dotasek edited this page Aug 11, 2017
·
15 revisions
This page lists the accepted JSON representations of the Cytoscape Application Data Model. Using these models when Cytoscape objects are returned from automation functions or commands constitutes a best practice.
Implemented in CyNode, CyEdge, CyNetwork, CyTable, and CyRow.
Not a Data Model.
Not useful in automation contexts. Applicable to Cytoscape internal implementations.
[
63,
...
]
{
"data": {
"id": 63,
"SUID": 63,
"shared name": "Node 1",
"name": "Node 1",
"selected": false,
"int_column": 1
}
}
[
83,
...
]
{
"data": {
"source": 62,
"target": 63,
"SUID": 83,
"shared name": "Node 2 (interacts with) Node 1",
"shared interaction": "interacts with",
"name": "Node 2 (interacts with) Node 1",
"selected": false,
"interaction": "interacts with"
}
}
[
52,
...
]
{
"shared name": "Network",
"name": "Network",
"SUID": 52,
"__Annotations": [
""
],
"selected": true
}```
### _CyNetwork as named SUID List_
Though a useful possibility, this is more of a convenience format.
```json
[
{
"name": "Network",
"SUID": 52
},
...
]
See cytoscape.js
Not a Data Model.
Not a Data Model.
Not a Data Model.
[
...
{
"SUID": 54,
"title": "Network default network",
"public": true,
"mutable": "PERMANENTLY_IMMUTABLE",
"primaryKey": "SUID",
"rows": [
{
"shared name": "Network",
"name": "Network",
"SUID": 52,
"__Annotations": [
""
],
"selected": true
}
]
},
...
]
[
...
{
"SUID": 63,
"shared name": "Node 1",
"name": "Node 1",
"selected": true,
"int_column": 1
},
...
]
[
{
"name": "name",
"type": "String",
"immutable": true,
"primaryKey": false
},
...
]
{
"name": "name",
"values": [
"Node 2",
"Node 1"
]
}
Not a Data Model.
Not a Data Model.
Could be useful to identify relationships between tables and networks. Unknown if useful to scripters.
Not a Data Model.
Applicable to CyNetwork and CyTable. This could be useful to identify tables that won't be saved for automation scripters.