How to change a property in several styles in Cytoscape?
1
0
Entering edit mode
7.4 years ago

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.4k views
ADD COMMENT
0
Entering edit mode
7.4 years ago

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 COMMENT
0
Entering edit mode

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 REPLY

Login before adding your answer.

Traffic: 2514 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6