Open gmhhope opened 9 months ago
Hi, Minghao ... Glad to see you working on this. I see the screenshot. Is this a circular layout? If so, what column did you use as the key, and how would you like for this to look instead?
Thanks for the prompt response Barry!
I want this to be ordered by Factor #. I would like to make it work both using Circular layout or Group Attribute layout. Both based on two groups (being HC, shown in the screenshot as well as other groups). So the column I used here is anything like "group", "tag" or whatever with character-type string
Hope that clarify.
Best, Minghao Gong
Hi, Minghao Gong -
I have a question into the developers about this ... they haven't answered yet. When they do, I'll relay the information I get.
Thanks!
@gmhhope
Hi Minghao Gong,
I noticed this question is from a while back, but if you’re still looking for a solution or if it might help others, I wanted to share a potential approach!
https://github.com/user-attachments/assets/8bbb487c-35e9-4ef3-8584-738b86d1c739 Here’s a step-by-step breakdown of how you can arrange nodes in a fixed order:
Export the Node Table:
Add the 'Order' Column:
order
, and fill in the values according to the desired node sequence. For large networks, automating this process programmatically might be more efficient.Import the Updated Table Back into Cytoscape:
File → Import → Table from File...
.order
column).Target Table Data
section, choose where to import the data (e.g., your existing network).Use the 'Order' Column for Layout:
order
column to guide the layout arrangement of your nodes.Bonus: You can further refine the layout using the Layout → Layout Tools options for scaling, aligning, distributing, stacking, and rotating the network and selected nodes.
Hope this helps!
Best,
Harsh Sharma
cc: @bdemchak
Hi Barry,
Trying to use group attribute to do layout, at the same time ordering the members in the group with a fixed order? What might be a good way to do that? How the order was settled in cytoscape?
I am in very urgent need for this settled. Thanks for any input you can provide!
Thanks very much! Happy holiday!
Best, Minghao Gong