Question: Color nodes based on attribute(column in data table) in cytoscape
gravatar for rickbeeloo13
4.3 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

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 4.3 years ago by Jean-Karim Heriche24k • written 4.3 years ago by rickbeeloo130
gravatar for Jean-Karim Heriche
4.3 years ago by
EMBL Heidelberg, Germany
Jean-Karim Heriche24k 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 4.3 years ago by Jean-Karim Heriche24k
Please log in to add an answer.


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