Need help to size nodes

952 views
Skip to first unread message

mbro...@gmail.com

unread,
Sep 23, 2015, 6:55:48 PM9/23/15
to cytoscape-helpdesk
I can change Nodes size in Cytoscape 2.x, but could not get it to work in 3.2.1.  Attached is an example v3 session file, where I set node size to 200.  No matter what number I set, the nodes size does not change in the plot.  I don't know what I did was wrong, I simply import an xgmml, in style, Properties, choose size and adjust it.

Also, if I try to set node size by "#Size" attribute column, pick continous map, I try to change size corresponding to min/max handle, but those fields are always grayed out (see attached snapshot), so I guess that probably indicates why I have problem with size.  (I also try to unlock size and change width and height individually, no success).  Currently I have to adjust node size in Cytoscape 2.x, save and open in Cytoscape 3.2.1 in order to further edit the network, which is a huge pain.

I am using win7+Java 1.8.0_40.  Any help will be greatly appreciated, as this keeps me going back to version 2.x.  Thanks!
SizeByCytoscape3.cys
9-23-2015 2-38-24 PM.png

Scooter Morris

unread,
Sep 23, 2015, 9:11:33 PM9/23/15
to cytoscape...@googlegroups.com
The node width and height were locked in the session file you sent.  If you uncheck "Lock node width and height", then select all of the nodes, you'll see that a "?" shows up in the "Byp." column.  This indicates that these values are locked.  Just right-click on the cell and select "Remove Bypass".

-- scooter
--
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.

mbro...@gmail.com

unread,
Sep 24, 2015, 8:34:26 AM9/24/15
to cytoscape-helpdesk
Thanks a lot. That gives me enough hints to find the cause.
Attached is the xgmml network I imported in.  The nodes have attributes with "h" and "w" specified, therefore it's considered locked in Cytoscape3.  However, we have been using the same format in Cytoscape 2.x and the node size were not locked and free to resize. Is this a feature or a bug? Thanks!
test.xgmml

mbro...@gmail.com

unread,
Sep 24, 2015, 9:00:14 AM9/24/15
to cytoscape-helpdesk
I still have trouble with sizing.  I now remove "h" and "w" attribute from the test.xgmml file (see new file attached).  I open Cytoscape 3.x, import this network.  First, why the default node size is oval, with height 30 and width 70 (is it the settings of my Cytoscape somewhere) (see snapshot)?  Now I try to size node by "#Size" attribute using Map, Continous Mapping Editor. It is great that I can drag the handles to resize the node, but the Node Size field is read-only (see snapshot) I cannot get an exact value by mouse dragging).  Thanks a lot!
test.xgmml
9-24-2015 5-52-29 AM.png
9-24-2015 5-51-40 AM.png

Scooter Morris

unread,
Sep 24, 2015, 9:34:18 AM9/24/15
to cytoscape-helpdesk
The default style uses a width of 70 and a height of 30.  You can change that by either creating your own style or changing the default width and height (the left-hand column) in the Style tab.  As far the disabled positions and values, click on the Triangle rather than the Square and they should enable...

-- scooter

mbro...@gmail.com

unread,
Sep 24, 2015, 10:05:17 AM9/24/15
to cytoscape-helpdesk
Thanks a lot for the quick reply! That works.  (I have always been using the open square in Cytoscape 2.x,)
Reply all
Reply to author
Forward
0 new messages