Question: How to change a property in several styles in Cytoscape?
gravatar for Ludo Cottret
10 months 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 • 285 views
ADD COMMENTlink modified 10 months ago by Jean-Karim Heriche15k • written 10 months ago by Ludo Cottret0
gravatar for Jean-Karim Heriche
10 months ago by
EMBL Heidelberg, Germany
Jean-Karim Heriche15k 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 10 months ago by Jean-Karim Heriche15k

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 10 months 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: 1166 users visited in the last hour