Entering edit mode
8.5 years ago
simonjean434
▴
70
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
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?
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.
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
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.
sorry I can't find the shape column
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.
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
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.
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
Very useful comment!! Thanks!