Hi all
I am using cytoscape to evaluate the overlaps between multiple PPi networks.
After importing the networks from a txt file I used the "merge" tool using the "union" option to create the merged network. This part works well but ideally I would like to color differently each network and highlight the overlapping nodes with different colors/shapes, but I can't seem to find the way to do it. I tried to google the various "visualize/color overlapping nodes", someone suggested a plugin here but I can't find any indications that this was actually done.
Any suggestions/workarounds?
Thanks :)
Jean, thanks for the reply. I was able to create the mapping file and it looks like this:
columns 1 and 2 are the genes, col 3 is the interaction (unique or shared) and the last one should be the key made by concatenating the two node/gene names.
however, I can't find the way to pass those info to Cytoscape. what I did was: 1) import this file as network, use column 3 as interaction type, 2) import the same file as table and use as key column 1. in "where to import data" I select "to selected networks only", I pick my network, then I "import data as" "Node Table Column" but it tells me "types of keys selected for tables are not matching". if I use the 4th column as key it adds three empty columns to the Node Table, probably because it doesn't really match the keys...I think that the problem are the keys but I can't seem to be able to fix it...even if I use the IDs in the first col as key, it still doesn't give me the column with the "unique" "shared" values
Your question was about showing shared nodes but if you select column 3 as interaction type, it means you're interested in shared edges. Could you then clarify ?
Assuming, you're still interested in showing shared nodes and assuming you already have your networks merged in cytoscape, my suggestion was a way to add the unique/shared attribute to the nodes. The mapping file I suggested is of the form
which you upload with File > Import > Table > File then in the menu select gene ID as key column for network and import data as node table columns. This adds a column category with unique/shared associated with each node, not with an edge as in your table above. In the control panel, select the style tab and the node style tab then Fill color; in column, select "category" (or whatever you've called the new attribute), and select discrete mapping and assign a color to each category.
If you're interested in shared edges, you could go about it the same way selecting the edge style tab and mapping colors using the interaction type.
Jean, yes, I wanted to see the common nodes. the data I have are organized in paired nodes, retrieved from interactome data and they look like the first two columns of my data above. it seems I created and imported the mapping file in the wrong way, I'll follow your latest directions...I'm omw to a meeting now, I'll work on it as soon as I'm back. thanks for the suggestions, I'll post the updates!
---EDITED----
now it is working
alright...it's still not really working...so,I'm not sure what happened but I re-did it from scratch and this time it worked...thanks for the help!!