[chimerax-users] chimerax hbonds batch analysis

Visvaldas K. coyote_v2002 at yahoo.com
Mon Nov 28 14:00:18 PST 2022


Dear ChimeraX wizards,

I was trying to generate hbond analysis via nogui, by issuing "chimerax --nogui --script "myscript.cxc",

where in the script I put the following commands:

open /Users/visvaldas/temp0000.pdbselect /B
hbonds sel saveFile /Users/visvaldas/temp00.hbonds restrict cross batch true
quit
However, something is wrong with hbonds line since I am getting this error:Executing: runscript myscript.cxc
Traceback (most recent call last):
  File "/Applications/ChimeraX-1.4.app/Contents/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/chimerax/core/scripting.py", line 83, in open_python_script
    code = compile(data, stream.name, 'exec')
  File "myscript.cxc", line 4
    hbonds sel saveFile /Users/visvaldas/temp00.hbonds restrict cross batch true
           ^
SyntaxError: invalid syntax

What I am doing wrong? 
(Also, when using GUI, the hbonds line was much longer, so I deleted those reveal, color, etc entities to make it more relevant to batch. (The "long" line 
hbonds sel saveFile /Users/visvaldas/temp00.hbonds color #fffb00 dashes 5 restrict cross reveal true retainCurrent truefrom the GUI  does not work either)
Best wishes,
Visvaldas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.rbvi.ucsf.edu/pipermail/chimerax-users/attachments/20221128/4dfadbfb/attachment.html>


More information about the ChimeraX-users mailing list