[Chimera-users] Sidechain selection in Python

achatz achatz at wzw.tum.de
Wed Mar 10 04:57:25 PST 2021

I want to select a sidechain without CA in Python.
The working command line

select #0:30 & without CA/C1'

is recreated in Python like this:

chimera.selection.OSLSelection("#0:30 & without CA/C1'")

But the lexer complains about an "illegal symbol in identifier" which is the apostrophe after C1.
How do I solve this issue?

More information about the Chimera-users mailing list