This is a test version of Biostars. For the public version, visit https://www.biostars.org.
How to change a property in several styles in Cytoscape?

Hi,

I have several styles in my Cytoscape session. I would like to change the default node size for all of them. Is there another way than doing it manually for each of them ?

Ludo

cytoscape

1 answer

There's probably no easy direct way because this would defeat the purpose of having different styles. One way to do it would be to save the styles as xml files (File > Export > Style...) and then use a script to make the modifications through the files then re-import the styles (File > Import > Style...) or you could try locating the styles in the .cys session file (it's a zip archive, I think the styles should be in the file named session_vizmap.xml inside the archive) and do the modifications there.

Thanks Jean-Karim for the xml solution ! The purpose is to have different styles that share common properties and that differ on other properties.

Log in to answer this question.