Closed gmhhope closed 1 year ago
Hi --
Fair question ...
I think the problem you're running into is that some nodes have the bypass and some don't. And when Cytoscape is asked to clear a bypass that doesn't exist, it gives an error.
Both py4cytoscape and RCy3 require a list of nodes for the bypass clear. It loops through the nodes, but if there's an error, it terminates the loop.
So, it will clear bypasses until it finds one that doesn't exist.
One could argue that Cytoscape shouldn't throw an error, as the end state is what the caller intends.
One could make the same point about py4cytoscape and RCy3.
At this point, though, you have two choices:
1) attempt to clear only bypasses you have set
2) get this behavior changed in py4cytoscape and RCy3
If #1 is convenient, I'd take it.
If you'd rather take #2, I can float this to the group, but can't guarantee the result or time frame. If the group can quickly agree, I can make this change in hours. However, on a Labor Day weekend, I'm not sure that agreement would be quick.
Sorry that I can't give a better answer, but it's actionable at least.
Hi Barry,
I have to reopen this as I still want to figure out how to clear the bypass of node label...
Trying to reset the wrongly assigned rotation/label. See the following screenshot:
Here is my command:
But this gives me an error:
I just have some crunching time and cannot plunge myself to look for answers from what you told me about all the other alternatives.
Hope you can help!
Best, Minghao
Originally posted by @gmhhope in https://github.com/cytoscape/py4cytoscape/issues/111#issuecomment-1699922286