how do you open a networks file which gets from the Cytoscape by using python package networkx?
1
0
Entering edit mode
5 weeks ago
▴ 20

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?

python Cytoscape networkx • 378 views
ADD COMMENT
0
Entering edit mode

"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.js format 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.

ADD REPLY
0
Entering edit mode
5 weeks ago
Scooter ▴ 280

I would suggest using py4cytoscape which will allow you to pull the network from Cytoscape directly without going through any exports/imports.

ADD COMMENT

Login before adding your answer.

Traffic: 2139 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6