BaderLab / EnrichmentMapApp

The EnrichmentMap Cytoscape App allows you to visualize the results of gene-set enrichment as a network.
http://apps.cytoscape.org/apps/enrichmentmap
GNU Lesser General Public License v2.1
31 stars 12 forks source link

EM 3.3.5: force directed layout does not work on hidden edges (but organic layout does) #505

Closed veroniquevoisin closed 11 months ago

veroniquevoisin commented 1 year ago

This is related to an issue that I had mentioned previously. When I adjust the number of edges using the enrichmentmap slidebar , and reapply the layout, the layout does not change (it was working in the past years). I could see that the organic layout is working and this is only with the force directed layout that it is not working (on whole network or on subnetwork). Sorry if this is a duplicated ticket.

formike.cys.zip

mikekucera commented 1 year ago

Hi Veronique. You are right that hiding just edges does not change the results of the prefuse force directed layout. However, this appears to have been the case for some time, as I'm getting the same results in Cytoscape 3.8. Looking at the code it appears that the layout takes hidden nodes into account, but not hidden edges. Perhaps you were hiding nodes in the past when you got different results?

veroniquevoisin commented 1 year ago

I'm quite sure it was working but it must have been a while ago. I remember adjusting the edges and then clicking on the icon to redo the layout. It makes the edge sliding bar less useful as it was. Except maybe for users who can get the idea to perform the organic layout which is not a default layout algorithm. I'm not sure what to suggest here (send a note to the Cytoscape team, dialog box to say to apply the organic layout,...). It is not for me but for users in general.