How to show an attribute next to the label in Cytoscape
1
0
Entering edit mode
18 months ago
Xiaokang ZH ▴ 50

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.0k views
ADD COMMENT
1
Entering edit mode
18 months ago
Wietje ▴ 220

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: 2421 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