how do you open a networks file which gets from the Cytoscape by using python package networkx?
hi, everyone, I am new for network analyse. Now, I get a trouble which I don't know how to analyse a graph from cytoscape by using the python. I can export some files such as cx JSON,cx2 JSON, cytoscape.js JSON et. But how can I import them to python? even I can't read the data. I try using the networkx package to do that,but I failed. can anyone give some advice?
• 1,310 views
•
link
1 answer
I would suggest using py4cytoscape which will allow you to pull the network from Cytoscape directly without going through any exports/imports.
• 0 views
•
link
Log in to answer this question.
"i try using the networkx package to do that,but I failed. " This statement isn't providing much detail for us to go on as to where your issues are. Do you have a very simple file such as in
cytoscape.jsformat that you can share and demonstrate what you aren't following from the documentation like the NetworkX documentation for 'cytoscape_graph'? See How do I ask a good question? as a good guide. In particular there is a section 'Help others reproduce the problem'. It makes it a solid foundation to discuss if you can try to include a minimal reproducible example.