import cytoscape.viewer as cy, json
import graphlab as gl
sf = gl.SFrame({'id':['A','B','C','A','B','A'],'value':[1,10,20,30,40,50]})
sf.show()
A newer version of GraphLab Create (v0.9) is available! Your current version is v0.1.0. You can use pip to upgrade the graphlab-create package. For more information see http://graphlab.com/products/create/upgrade.[INFO] Start server at: ipc:///tmp/graphlab_server-3254 - Server binary: /Users/kono/anaconda/lib/python2.7/site-packages/graphlab/unity_server - Server log: /tmp/graphlab_server_1405984454.log [INFO] GraphLab Server Version: 0.1.0
--------------------------------------------------------------------------- AttributeError Traceback (most recent call last) <ipython-input-1-83d51c39a596> in <module>() 3 4 sf = gl.SFrame({'id':['A','B','C','A','B','A'],'value':[1,10,20,30,40,50]}) ----> 5 sf.show() AttributeError: 'SFrame' object has no attribute 'show'
[INFO] Stopping the server connection. [INFO] GraphLab server shutdown
# Load network file generated in Cytoscape 3.1.x
yeast_network_file = open('yeast2.cyjs')
yeast_network = json.load(yeast_network_file)
visual_style_file = open('style.json')
vs_collection = json.load(visual_style_file)
styles = {}
for style in vs_collection:
style_settings = style['style']
title = style['title']
styles[title] = style_settings
cy.render(yeast_network, styles['default'], 'preset', 500)
cy.render(yeast_network, styles['Directed'])