In [3]:
from py2cytoscape.data.cynetwork import CyNetwork
from py2cytoscape.data.cyrest_client import CyRestClient
from py2cytoscape.data.style import StyleUtil
import py2cytoscape.util.cytoscapejs as cyjs
import py2cytoscape.cytoscapejs as renderer
import networkx as nx
import pandas as pd
import json
In [4]:
# !!!!!!!!!!!!!!!!! Step 0: Start Cytoscape 3 with cyREST App !!!!!!!!!!!!!!!!!!!!!!!!!!
# Step 1: Create py2cytoscape client
cy = CyRestClient()
# Reset
cy.session.delete()
In [7]:
# Load network from somewhere
net_from_local1 = cy.network.create_from('sample_yeast_network.xgmml', collection='My Collection')
#
cy.layout.apply(name='degree-circle', network=net_from_local1)
In [ ]:
Now, we use only network data. However, you also want to use an edge attribute and a node attribute table. So, first we will import attribution data, then merge it to network data.
The following document will show you some example.
In [ ]:
In [ ]:
In [ ]:
#TODO
In [ ]:
In [ ]:
In [ ]:
In [ ]:
In [ ]:
In [ ]:
In [ ]:
In [ ]: