cytoscape / RCy3

New version of RCy3, redesigned and collaboratively maintained by Cytoscape developer community
MIT License
50 stars 20 forks source link

subscript and superscript cytoscape #64

Closed eagomezc closed 5 years ago

eagomezc commented 5 years ago

I've been using RCy3 lately and I've found it a very useful tool. Thanks for keeping it updated.

I haven't found thou if it's possible, through RCy3, creates labels with subscript or superscript. I've been working with some lipidomics data and it's very important for me to keep the names of each lipid as it is shown in the literature.

Is there a way to apply subscript to the labels in cytoscape using RCy3?

Thanks for the answer you can give me.

AlexanderPico commented 5 years ago

If it is something you can do in Cytoscape directly, then we can probably do it in RCy3. Do you know if this is supported by Cytoscape? Can you provide an example?

AlexanderPico commented 5 years ago

Well, I learned something new today! You can enter subscripted numbers into labels in Cytoscape (and RCy3). In order to do it on the mac, I had to add Unicode to my keyboard input sources. Then pressing Option while entering Unicode values will generate special characters like subscripts. The subscripted 2, e.g., is

openSession() #to open sample session file
setNodeLabelBypass('YNL216W','RAP₂')  #to change label of "RAP1" to "RAP₂"
eagomezc commented 5 years ago

Thank you for the info!!! I've been working in Windows and Ubuntu lately so I will have to figure it out in those systems... Hope it´s not too different.

Thanks again.

AlexanderPico commented 5 years ago

I think Alt works in Windows for Unicode entry, without any system changes.