Skip to content

Standard Cytoscape JSON Models

dotasek edited this page Jul 18, 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.

CyIdentifiable.java

SUIDFactory.java

CyDisposable.java

CyNode.java

CyNode as SUID List

[
   63,
   ...
]

CyNode as Single Object

{
  "data": {
    "id": 63,
    "SUID": 63,
    "shared name": "Node 1",
    "name": "Node 1",
    "selected": false,
    "int_column": 1
  }
}

CyEdge.java

CyEdge as SUID List

[
   83,
   ...
]

CyEdge as Single Object

{
  "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"
  }
}

CyNetwork.java

CyNetwork as SUID List

[
   52,
   ...
]

CyNetwork as named SUID List

[
  {
    "name": "Network",
    "SUID": 52
  },
  ...
]

CyNetwork as cytoscape.js

See cytoscape.js

CyNetworkFactory.java

CyNetworkManager.java

CyNetworkTableManager.java

CyTable.java

[
  ...
  {
    "SUID": 54,
    "title": "Network default network",
    "public": true,
    "mutable": "PERMANENTLY_IMMUTABLE",
    "primaryKey": "SUID",
    "rows": [
      {
        "shared name": "Network",
        "name": "Network",
        "SUID": 52,
        "__Annotations": [
          ""
        ],
        "selected": true
      }
    ]
  },
  ...
]

CyRow.java

[
  ...
  {
    "SUID": 63,
    "shared name": "Node 1",
    "name": "Node 1",
    "selected": true,
    "int_column": 1
  },
  ...
]

CyColumn.java

CyTableFactory.java

CyTableManager.java

CyTableMetadata.java

CyTableUtil.java

SavePolicy.java

VirtualColumnInfo.java