You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've started working on a Cytoscape Web app that integrates with EnrichmentMap.org. I've managed to get them to talk to each other (locally) but now I'm not sure how to create a network in Cytoscape Web from EM. EM stores the network in cytoscape.js json format, how do I import that into Cytoscape Web. (Note, I'm not worried about styles, just the network and data.)
The text was updated successfully, but these errors were encountered:
Basically, this function receives a list of 'CX2Network object' and tries to extract necessary information(like table, viewModel, visualStyle) out of them and add these networks to the current workspace.
In summary, you can just mimic this function. The only difference might be
Get rid of the for loop, since I guess in your use case there is only one network to add
You can treat the object called item (like here) as the json-format object from EM because
item here is a CX2Network object
CX2Network object is also in JSON format
By the end of the function I try to set the first network in the list as the current network, you can just set your target network as the current network
You might also tweak the error handling. The original function is an experimental example for the service app function so I didn't do a lot of error handling work.
Let me know if this can solve your problem or you encounter any other issues.
Hi guys,
I've started working on a Cytoscape Web app that integrates with EnrichmentMap.org. I've managed to get them to talk to each other (locally) but now I'm not sure how to create a network in Cytoscape Web from EM. EM stores the network in cytoscape.js json format, how do I import that into Cytoscape Web. (Note, I'm not worried about styles, just the network and data.)
The text was updated successfully, but these errors were encountered: