-
Notifications
You must be signed in to change notification settings - Fork 59
Standard Cytoscape JSON Models
dotasek edited this page Oct 24, 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. The Cytoscape JSON Utilities Sample contains a reference implementation of how to produce these using utilities within Cytoscape, and should be used wherever possible instead of re-implementing any representation.
[
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
}
See cytoscape.js
[
...
{
"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
},
...
]
[
"Column 1",
"Column 2"
...
]
{
"name": "int_column",
"type": "Integer",
"immutable": false,
"primaryKey": false,
"values": [
1,
null
]
}