cytoscape: change shape of target
1
0
Entering edit mode
5.3 years ago
simonjean434 ▴ 50

Hello,

I loaded a network in cytoscape 3.4 and would like to change the shape of subset of nodes. I selected some nodes and changed the shape style but when I applied this modification the shape of all nodes in the network changed.

could you please help me with this ?

Thanks S

RNA-Seq • 3.2k views
ADD COMMENT
1
Entering edit mode
5.3 years ago

You need to do this with discrete mapping to a node attribute (i.e. column of the node table). In the style control panel, click on the little triangle next to Shape to expand the selector, then select a column, select discrete mapping as mapping type then select a shape for each category of nodes.

ADD COMMENT
0
Entering edit mode

sorry I exactly performed as you described but all of network changing when I am trying to change the shape of selected nodes. then what to do please?

ADD REPLY
1
Entering edit mode

If you did as explained but all nodes are changing, it's likely because you have assigned the same attribute to all nodes. Create an attribute for the nodes that reflects the distinction you're trying to make between the nodes then apply the mapping using this attribute. If you already did so, then make sure that you've selected the right attribute when doing the shape mapping.

ADD REPLY
0
Entering edit mode

thank you

my network is like below (33 nodes and 56 edges)

TF gene

AHR SGIP1

AHR CDC42

AP-2gamma CDC42

AP-2gamma LPPR4

AP-2gamma ARID1A

I imported txt file of network via import=network=file in Cytoscape 3.4.0. then in preview window I set TFs as source node and genes as target node. when network uploaded I selected TFs by select option=nodes=from ID list file. when TFs hilighted in network, in style in column i chose selected and in mapping type I set discrete mapping. but whole of network changed

ADD REPLY
0
Entering edit mode

You haven't done as described. You need to add an attribute that can be mapped to the shape. This can simply be a column called "shape" that, for each node, tells which shape it should be. You then apply the discrete mapping as already explained.

ADD REPLY
0
Entering edit mode

enter image description here

sorry I can't find the shape column

ADD REPLY
0
Entering edit mode

It's your data. You decide which node should have which shape so you have to tell Cytoscape where this information is. You have to add it yourself.

ADD REPLY
0
Entering edit mode

sorry, I want to re-shape TFs which I highlighted them in network by select option but I can't merely change them yet because I don't know how to tell Cytoscape to only change them. shape option in style seems deactivated

https://r76i.imgup.net/shapee838.png

ADD REPLY
0
Entering edit mode

Yes I understood your question but you don't seem to understand my answer. The answer is: add a column to your data node table with the information about node shape. The node table is in the table panel, which is the panel normally found below the graph drawing area.

ADD REPLY
0
Entering edit mode

thank you, I added column, for node information I added a shape name (diamon) to entire the column but ..

I am sorry

https://e46i.imgup.net/shape44b6.png

ADD REPLY
0
Entering edit mode

Very useful comment!! Thanks!

ADD REPLY

Login before adding your answer.

Traffic: 1682 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