Color nodes based on attribute(column in data table) in cytoscape
1
0
Entering edit mode
7.6 years ago

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

cytoscape proteins protein network • 2.5k views
ADD COMMENT
0
Entering edit mode
7.6 years ago

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 COMMENT

Login before adding your answer.

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