Question: How to change a property in several styles in Cytoscape?
gravatar for Ludo Cottret
3.6 years ago by
Ludo Cottret0 wrote:


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 ?


cytoscape • 709 views
ADD COMMENTlink modified 3.6 years ago by Jean-Karim Heriche24k • written 3.6 years ago by Ludo Cottret0
gravatar for Jean-Karim Heriche
3.6 years ago by
EMBL Heidelberg, Germany
Jean-Karim Heriche24k wrote:

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.

ADD COMMENTlink written 3.6 years ago by Jean-Karim Heriche24k

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

ADD REPLYlink written 3.6 years ago by Ludo Cottret0
Please log in to add an answer.


Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 2070 users visited in the last hour