How to show an attribute next to the label in Cytoscape
1
0
Entering edit mode
5.1 years ago
Xiaokang ▴ 80

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 • 2.3k views
ADD COMMENT
1
Entering edit mode
5.1 years ago
Wietje ▴ 240

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.

ADD COMMENT

Login before adding your answer.

Traffic: 1915 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6