Visual Styles - Continuous mapping - End points from a node attribute ?

19 views
Skip to first unread message

lindfo...@gmail.com

unread,
Sep 8, 2016, 8:32:01 AM9/8/16
to cytoscape-helpdesk
Hi all,

So far I have seen only hard coded values at the min and max endpoints of continuous mapping in Cytoscape's visual styles.

For example at
http://wiki.cytoscape.org/Cytoscape_3/UserManual/Styles -> Tutorial 3: Creating a New Style with a Continuous Mapping
they are hard coded to:
min = 1.00 and max = 18.00

I am wondering if it is possible to map these values from a node attribute.

More specifically I have several networks (each saved in a separate cys-file).
Each network contains a log2Fc node attribute.

In ideal case, I would like to have one visual style in which the end point would defined in the following way:
min = min(log2Fc) and max(log2Fc)

Is this possible Cytoscape's core?
If not, then I think I have to create a separate visual style for each network - a bit inelegant but doable.

Thanks,
Erno Lindfors

Mike Kucera

unread,
Sep 8, 2016, 2:33:19 PM9/8/16
to cytoscape-helpdesk
Hi Erno,

There is no way to get the endpoints to automatically adapt the the min/max values for an attribute. So you will need a separate visual style for each network.

There is a way to set the min/max values without having to sort the attribute. 
- Double-click the continuous mapping to bring up the Mapping Editor dialog. 
- Click the "Set min/max" button to bring up the Set Range dialog.
- Click the "Reset" button.

lindfo...@gmail.com

unread,
Sep 9, 2016, 3:00:34 AM9/9/16
to cytoscape-helpdesk
Thanks Mike, good to know the "Reset" button can be used for this purpose.
Erno
Reply all
Reply to author
Forward
0 new messages