This is a test version of Biostars. For the public version, visit https://www.biostars.org.
How to show an attribute next to the label in Cytoscape

The label shown on the node in Cytoscape is the name of that node. Can I also show an attribute next to the label?

The context is: in my network, each node is a gene. When I originally import the network, the used name is the gene symbol which will be shown on the network as the label of that node. But I also want to put gene ID (it's an attribute column in the node table) next to the node, so that in the figure you have both gene symbol and gene ID for each node.

cytoscape

1 answer

I suppose the easiest way to display gene symbol + gene ID together is to prepare an input table that has 1 extra column with both IDs next to each other. Load this table into Cytoscape, go to "Style" and choose "Label", click on the three little dots and select the column of your own making.

Log in to answer this question.