Dear Colleagues,
I would like to do some visualization of my network in Cytoscape. My file contains genes and their expression values in normal and tumor samples. The visualization of interest would be the same network colored according to A) expression in normal samples and B) expression in tumor samples.
Honestly, I completely do not know how should be prepared the input file with such annotation. Basic input file to create network in Cytoscape looks like:
Gene A - Gene B (and some additional annotations).
Some example of such analysis shown in Cytoscape tutorial indicates that such input file should look like this:
GENE COMMON gal1RG gal1RG gal80R
YHR051W COX6 -0.034 -0.034 -0.304
YHR124W NDT80 -0.090 -0.090 -0.348
YKL181W PRS1 -0.167 -0.167 0.112
YGR072W UPF3 0.245 0.245 0.787
(unfortunately, it is not described how the values were obtained).
The above arises in my question: what these values are related to? If in my file I will put expression values for genes only in first columns, then I won't be able to color genes from second column. Moreover, in Cytoscape I can use only one column as such annotation, so there is no chance to provide two columns with expression values for both nodes (start and end).
I would appreciate any suggestion how to solve such issue. Maybe there is some mathematical solution how to calculate "something" that I could possibly use as representation of expression or maybe there is some other software that would be able to do something like this?
Thanks in advance.
Best regards!
The best are the easiest solutions, but the hardest to find. Dziękuję ;)
Hi, do you know if it is possible to extract the assigned color code in RGB (or whatever format)?
Hi,
Aside of each color in the panel there are RGB values. You can write them down.
Best regards!
-------- Wiadomość oryginalna --------
Temat: [biostar] How to color nodes in Cytoscape according to expression of genes? How should the input file look like?
Od: Buffo on Biostar mailer@biostars.org
Do: orzechowska.mag@wp.pl
DW:
Ok this great however does anyone know how to assign a color say grey to a node with no value ( NA ) the issue I have is the value is not availaible cytoscape will just color it with the maximum color!
Maybe you can replace NAs with a number that is not found in your dataset and assign that number a color.
This link might also help in terms of assigning colors to node attributes. Coloring nodes according to attribute value in Cytoscape 3