3
$\begingroup$

I need to color different categories of the proteins in the interaction network automatically. Is there any way to color each category with a different color in cytoscape? or R?

My input is 2 column interaction protein ID. I have different categories of proteins in CSV format separately only with protein ID.

$\endgroup$
3
  • $\begingroup$ Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking. $\endgroup$
    – Community Bot
    Commented May 5, 2022 at 15:37
  • $\begingroup$ In protein -protein interaction network, I need to color the proteins of the different categories with different colors. I have four categories of proteins. $\endgroup$
    – user14023
    Commented May 6, 2022 at 6:27
  • $\begingroup$ stackoverflow.com/questions/15999877/…, manual.cytoscape.org/en/stable/Styles.html $\endgroup$ Commented May 6, 2022 at 22:05

1 Answer 1

2
$\begingroup$

Answering this (2 years later) in case others stumble upon it.

Yes! You can certainly color your proteins by category. This is a very common use of Cytoscape. I'd recommend the data visualization tutorials at tutorials.cytoscape.org. In brief, you load your network (the 2-column input you have works fine via File>Import>Network from File). Next you load your category data via File>Import>Table from File). Then you go to the "Style" tab and set a discrete mapping for the Node Fill color based on your imported category data. Voila!

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.