On Jan 28, 2019, at 3:22 PM, mgruz...@pagerduty.com wrote:software:
cytoscape: 3.7.1
python: 3.7.1 (default, Dec 14 2018, 13:28:58)
py2cytoscape: downloaded 1/28/2019 w/ pip install py2cytoscape
code:
from py2cytoscape import cyrest
cytoscape = cyrest.cyclient()
cytoscape.network.load_file("FILENAME.cyjs")
cytoscape.vizmap.apply(styles="default")
cytoscape.network.set_current(network="FILENAME")
cytoscape.layout.apply_preferred()
cytoscape.view.set_current(network="FILENAME")
cytoscape.view.fit_content()
cytoscape.network.deselect(nodeList='all', edgeList='all')
cytoscape.view.export(options="PDF", OutputFile="FILENAME")
error:
ValueError: {'status': 500, 'type': 'urn:cytoscape:ci:cyrest-core:v1:handle-json-command:errors:2', 'message': 'java.lang.NullPointerException', 'link': 'file:/Users/mgruzynski/CytoscapeConfiguration/3/framework-cytoscape.log'}
--
You received this message because you are subscribed to the Google Groups "cytoscape-helpdesk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cytoscape-helpd...@googlegroups.com.
To post to this group, send email to cytoscape...@googlegroups.com.
Visit this group at https://groups.google.com/group/cytoscape-helpdesk.
To view this discussion on the web visit https://groups.google.com/d/msgid/cytoscape-helpdesk/b19684af-af0c-47cf-91f9-c89e34a2f310%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/cytoscape-helpdesk/f289dd51-f576-4b35-8ae5-351495358e0e%40googlegroups.com.
Assuming you get the error on the last line, exporting. Can you try providing a full path to a directory you know you have permission to write to as the OutputFile parameter? I suspect it’s trying to write to where you have Cytoscape installed and that is problematic for some reason (e.g., permissions).
- Alex
On Jan 28, 2019, at 3:22 PM, mgruz...@pagerduty.com wrote:
software:
cytoscape: 3.7.1
python: 3.7.1 (default, Dec 14 2018, 13:28:58)
py2cytoscape: downloaded 1/28/2019 w/ pip install py2cytoscape
code:
from py2cytoscape import cyrest
cytoscape = cyrest.cyclient()
cytoscape.network.load_file("FILENAME.cyjs")
cytoscape.vizmap.apply(styles="default")
cytoscape.network.set_current(network="FILENAME")
cytoscape.layout.apply_preferred()
cytoscape.view.set_current(network="FILENAME")
cytoscape.view.fit_content()
cytoscape.network.deselect(nodeList='all', edgeList='all')
cytoscape.view.export(options="PDF", OutputFile="FILENAME")
error:
ValueError: {'status': 500, 'type': 'urn:cytoscape:ci:cyrest-core:v1:handle-json-command:errors:2', 'message': 'java.lang.NullPointerException', 'link': 'file:/Users/mgruzynski/CytoscapeConfiguration/3/framework-cytoscape.log'}
--
You received this message because you are subscribed to the Google Groups "cytoscape-helpdesk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cytoscape-helpdesk+unsub...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to cytoscape-helpd...@googlegroups.com.
To post to this group, send email to cytoscape...@googlegroups.com.
Visit this group at https://groups.google.com/group/cytoscape-helpdesk.
To view this discussion on the web visit https://groups.google.com/d/msgid/cytoscape-helpdesk/83502cce-8429-4f5b-9e8a-24714f870423%40googlegroups.com.