Hi Dustin.
Unfortunately, Cytoscape Desktop version does not support import/export
compound node from/to Cytoscape.js.
However, you can use Groups instead in desktop version to create nodes with
parent-child relationships.
I've added a new feature request to the issue tracker.
http://code.cytoscape.org/redmine/issues/4194
Thanks,
Kei
2018年5月8日(火) 11:59 <dustin....@gmail.com>:
> Hey,
> cytoscape.js supports a feature called 'compound nodes', as shown in this
demo: http://js.cytoscape.org/demos/compound-nodes/
> Does the desktop version of cytoscape support this sort of thing? And
more importantly, what's the best file format to use to import a compound
graph? Thanks!
> Dustin
> --
> 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
It seems that the XGMML file format allows importing/exporting groups. However, the documentation seems to have disappeared from the internet. Digging through the examples and the source code is slightly helpful... I guess we'll see how it goes.
Dustin
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/d22b23c7-5db3-4d45-8d3c-af1c790892b4%40googlegroups.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/22d46e23-ac5c-4dc6-8130-a75806a81553%40googlegroups.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/22d46e23-ac5c-4dc6-8130-a75806a81553%40googlegroups.com.
Hey Scooter,
Thanks for digging into this! I'm using 3.6.1 on OSX.
For some reason, I had thought that XGMML didn't care which graph the edges are located in... but I'm not 100% sure where I had found that, maybe that's a graphml thing.
Good to know though. According to Google, it seems like the 'old' wiki had information about XGMML, but that seems to be lost to time... which is sad, since it seems to be the best import format to use if one cares about grouping.
-- scooter
Dustin
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/b8803ead-7192-481e-bb35-4b263d7485e4%40googlegroups.com.
Interesting. I did get the group node back (looks just like the network you are showing), but for some reason it was no longer a group when it got back to Cytoscape. What's more, looking at the CX file, I don't see any content that shows the group relationships...Hi Scooter, Dustin,
(I’ve cc’d Jing and Barry. Jing is leading the development efforts for Cytoscape - NDEx integration)
CX does support cytoscape groups. (Note that the NDEx cytoscape.js-based visualizer only partially handles their display)
I also tried a round trip and got a good result. I’m not sure why you would see different behavior if you have the latest versions of everything. (Jing, any ideas?) But I did notice one problem: the names of the groups were lost. The rows for the groups are present in the node table but the names are blank.
I’ve attached the session file that has two collections:- the manually created network with two groups.- the network after round-trip through NDEx
Here is the network on our development server: http://dev.ndexbio.org/#/network/22148da5-53ad-11e8-8efd-525400c25d22?accesskey=067fb90e42e56e62cb91e74460731a0f2149835377790c2ecbd5d58b5831cdd1
You can download the CX from that network page.
Dexter
Looks like there are couple of problems in cyNDEx2.
Thanks,
Jing
email to cytoscape-helpd...@googlegroups.com.
> To post to this group, send email to cytoscape...@googlegroups.com.
> Visit this group at
> To view this discussion on the web visit
https://groups.google.com/d/msgid/cytoscape-helpdesk/5fe893c0-3296-4fbb-a441-90f507d29338%40googlegroups.com
.
> For more options, visit https://groups.google.com/d/optout.
--
===================================
Keiichiro Ono
http://keiono.github.io/
===================================
--
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
To view this discussion on the web visit
--
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
To view this discussion on the web visit
On May 9, 2018, at 12:07 PM, Scooter Morris <sco...@cgl.ucsf.edu> wrote:
Caused by: java.lang.NullPointerException
at org.cytoscape.group.internal.view.ViewUtils.moveNode(ViewUtils.java:296)
at org.cytoscape.group.internal.view.ViewUtils.moveNodes(ViewUtils.java:238)
To post to this group, send email to cytoscap...@googlegroups.com.
Hi,
I ended up spending way too much time looking into this, and though I got something working, unfortunately I didn't quite end up with the results I was hoping.
Not quite the case, but I certainly understand how you came to that conclusion -- our groups support originally did not support the compound node visualization. Initially we only supported an expand/contract visualization approach.I spent the better part of yesterday playing with XGMML, and I think the conclusion that I reached is that using XGMML depends way too much on internal details of cytoscape, and because of various bugs that seem to exist with the group support and rendering them (can't render compound nodes without including a graphics element), it didn't seem worth going that route unless I wanted to do my own graphics rendering and output that to xgmml.
Instead of pursing that, I spent today modifying the graphml file input plugin to add subgraphs to groups. It took awhile to figure out how all the pieces went together and how avoid triggering various exceptions, but I finally got something to work. One of the problems is that I'm only able to add groups to the root network. I created a variation that added groups at all subgraphs, but it fails in various ways when trying to trigger the compound node display code (if someone is interested in that, I can push it to a separate branch).
I created a branch on github based on the 3.6.1 release that fixes a bug in the graphml ingest, and also takes graphml subgraphs and adds them to groups, and causes them to be rendered as compound nodes: https://github.com/virtuald/cytoscape-impl/commits/graphml-groups
I'm sure I need to RTFM, but looking through the github repos it's not really clear if/how one actually submits patches and/or bug reports to cytoscape. Redmine doesn't seem to allow creating an account (recaptcha is broken), and there aren't any pull requests on github so I suspect that isn't the right way either.
Finally, one really annoying bug that I keep running into is this one:
Caused by: java.lang.NullPointerException
at org.cytoscape.group.internal.view.ViewUtils.moveNode(ViewUtils.java:296)
at org.cytoscape.group.internal.view.ViewUtils.moveNodes(ViewUtils.java:238)
There's something somewhere that is supposed to add the node to the (current?) view, and it seems like there's a magical sequence of things that have to happen otherwise it doesn't get added and this NPE occurs. I suspect if someone addressed whatever that is, some of these group ingest problems might go away.
Another bug that I ran into is that if you have a set of nested groups, the innermost group doesn't seem to follow its node if you drag the outermost group around. That's fairly easy to duplicate, and I imagine it's also probably pretty easy to fix.
Thanks!! Excited to get your graphml improvement!
Dustin
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/63de13b7-3afb-46a8-8519-b6a4cebe4210%40googlegroups.com.