"bring to front" or "bring to top" type of functionality?

869 views
Skip to first unread message

Divya Mistry

unread,
Sep 11, 2015, 8:13:52 AM9/11/15
to cytoscape-helpdesk
Is it possible, perhaps via a script, to select a set of edges and bring them to the front so that they are visible above all others? I have a dense circle layout where a set of edges are hidden under other edges. I would like to make sure that those edges get drawn above all the rest, so that when I want to export a graphic with specific selection, they are never hidden. Is it possible to do so? Maybe there's a script I could write to do that? If so, I'd appreciate someone pointing me to the right direction.

Thanks.

Scooter Morris

unread,
Sep 11, 2015, 9:03:15 AM9/11/15
to cytoscape...@googlegroups.com
Hi Divya,
    I'm afraid not.  We added Z ordering for nodes, but not edges.  The only thing I can suggest is to select those edges -- that should cause them (and only them) to be redrawn, so they'll be on top.  When export them as a graphic, though, they will be redrawn, unfortunately.  You might try to set the opacity of all of the other edges so that they are semi-transparent.  That should help to highlight the edges you want.

-- scooter


On 9/10/15 11:56 PM, Divya Mistry wrote:
Is it possible, perhaps via a script, to select a set of edges and bring them to the front so that they are visible above all others? I have a dense circle layout where a set of edges are hidden under other edges. I would like to make sure that those edges get drawn above all the rest, so that when I want to export a graphic with specific selection, they are never hidden. Is it possible to do so? Maybe there's a script I could write to do that? If so, I'd appreciate someone pointing me to the right direction.

Thanks.
--
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 http://groups.google.com/group/cytoscape-helpdesk.
For more options, visit https://groups.google.com/d/optout.

Divya Mistry

unread,
Sep 11, 2015, 7:10:37 PM9/11/15
to cytoscape-helpdesk
Ok. Thanks for the ideas. I'll see what I can produce.

Barry Demchak

unread,
Sep 11, 2015, 8:26:14 PM9/11/15
to cytoscape...@googlegroups.com
Would cyREST be of service here? It enables a python/R application to access Cytoscape data and display model. See cyREST app in app store.


On Fri, Sep 11, 2015 at 4:10 PM, Divya Mistry <divya...@gmail.com> wrote:
Ok. Thanks for the ideas. I'll see what I can produce.
--
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 http://groups.google.com/group/cytoscape-helpdesk.
For more options, visit https://groups.google.com/d/optout.



--
vvvvvvvvvvvvvvvvvvvvvvvvvvvv
: Barry Demchak, PhD
: UC San Diego, Department of Medicine
: https://sosa.ucsd.edu/confluence/display/~bdemchak/Home
: (858) 452-8700
vvvvvvvvvvvvvvvvvvvvvvvvvvvv

Divya Mistry

unread,
Sep 12, 2015, 6:07:27 AM9/12/15
to cytoscape...@googlegroups.com

Barry, I saw the CyREST api. I wondered if I could draw specific edges on top of other ones. Gor example, ask it to select specific edges, then draw all other ones, then draw the selected ones. Might be worth investigation. Nothing in the documentation for CyREST says that the order has to be as user-intended. It might still redraw to its best optimized case when exporting the output. I'll get back to you if that ends up working. My initial gut feeling says that this approach won't make any difference to final image export.

You received this message because you are subscribed to a topic in the Google Groups "cytoscape-helpdesk" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/cytoscape-helpdesk/Gb0iuNZHmuI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to cytoscape-helpd...@googlegroups.com.

Barry Demchak

unread,
Sep 12, 2015, 8:35:30 AM9/12/15
to cytoscape...@googlegroups.com

I think you're right. Scooter, too.

In the end, cyREST affects the data model but not the rendering engine. So, if the rendering engine can't float edges to the top, cyREST can't make it.

Sorry for the diversion.

Barry Demchak -- from my mobile phone

Sathvik

unread,
Dec 25, 2016, 7:30:29 PM12/25/16
to cytoscape-helpdesk
"The only thing I can suggest is to select those edges -- that should cause them (and only them) to be redrawn, so they'll be on top."

Hi Scooter,
I selected the edges but they don't seem to be redrawn at the top of the image. Any suggestions?

Best,
Sathvik


On Friday, September 11, 2015 at 9:03:15 AM UTC-4, Scooter Morris wrote:
Hi Divya,
    I'm afraid not.  We added Z ordering for nodes, but not edges.  The only thing I can suggest is to select those edges -- that should cause them (and only them) to be redrawn, so they'll be on top.  When export them as a graphic, though, they will be redrawn, unfortunately.  You might try to set the opacity of all of the other edges so that they are semi-transparent.  That should help to highlight the edges you want.

-- scooter

On 9/10/15 11:56 PM, Divya Mistry wrote:
Is it possible, perhaps via a script, to select a set of edges and bring them to the front so that they are visible above all others? I have a dense circle layout where a set of edges are hidden under other edges. I would like to make sure that those edges get drawn above all the rest, so that when I want to export a graphic with specific selection, they are never hidden. Is it possible to do so? Maybe there's a script I could write to do that? If so, I'd appreciate someone pointing me to the right direction.

Thanks.
--
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-helpdesk+unsub...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages