Question: Color nodes based on attribute(column in data table) in cytoscape
0
gravatar for rickbeeloo13
2.8 years ago by
rickbeeloo130 wrote:

I merged to networks (MPK3 and MPK6 regulated proteins) and uploaded this in Cytoscape. Know I have a column for these two called source which is MPK3 for the MPK3 proteins and MPK6 for the MPK6 proteins. I want to color the proteins based on the value in this "source" column(attribute) I saw some answers on this site but these were from old versions (and I'm just new using cytoscape) so I hope someone can help me out with this. to summarize:

  • MPK3 in source --> color red
  • MPK6 in source --> color green
  • BOTH(not sure If I have to determine this in front or if cytoscape can figure this out if I have one protein and two rows which each have a different value for the "source") --> blue

update
I figured out how to do it, but I can't figure out how to fix it when there is both a red and blue color to give it a green color for example? enter image description here

ADD COMMENTlink modified 2.8 years ago by Jean-Karim Heriche20k • written 2.8 years ago by rickbeeloo130
0
gravatar for Jean-Karim Heriche
2.8 years ago by
EMBL Heidelberg, Germany
Jean-Karim Heriche20k wrote:

You can easily have nodes with two colors: assign one color source to the node rim (using style > border paint) and the other to the inside (style > fill color). You may need to increase the size of the rim (style > border width).

ADD COMMENTlink written 2.8 years ago by Jean-Karim Heriche20k
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 1114 users visited in the last hour