how to add node and edge attributes in network file.

30 views
Skip to first unread message

Jaichand Patel

unread,
Jan 3, 2017, 4:44:24 AM1/3/17
to cytoscape-helpdesk
I want to add node size attributes and edge thickness attribute to a network. How can i add node size and edge thickness score in SIF file. if there is any plugin to do this kind og task. actually i have a large network so annotation of size and thickness of node & edge will take a lot of time using vizmapper or styles.

please help
Best regards

alex.pico

unread,
Jan 5, 2017, 3:15:11 PM1/5/17
to cytoscape-helpdesk
Hi Jaichand,

You don't need an app to do this, but the process does depend on the format of you data. If you have a spreadsheet with something like this...

 | node A | node B | node A size | node B size | edge thickness |

Then you can perform the import in a single step using File>Import>Network>File...  The dialog lets you specify which column is which and then you can use Styles to map the data vlues to the visual properties you'd like (without having to do it one-by-one using bypass values).

If instead you have two files, e.g., a SIF file
 | node A | node B | edge thickness |

and a node attribute file
 | node A | node A size |
 | node B | node B size |

Then you'll have to import the SIF first and then the node attribute file second (using File>Import>Table>File...) and then use Styles in the same way as above.

You might also review this tutorial:
http://opentutorials.cgl.ucsf.edu/index.php/Tutorial:Introduction_to_Cytoscape_3.1-part2#Visualizing_Data_on_Networks

Cheers,
 - Alex
Reply all
Reply to author
Forward
0 new messages