<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">To supplement Elaine’s answer, here is an example of how to do it in Chimera: <a href="https://www.cgl.ucsf.edu/chimera/docs/ProgrammersGuide/basicPrimer.html" class="">Very Basic Chimera Programming Primer</a><div class=""><br class=""></div><div class="">The process in ChimeraX is largely similar. The differences are:</div><div class=""><br class=""></div><div class="">1) ChimeraX is Python 3 whereas Chimera is Python 2. As it turns out, the script is syntactically legal in both Python 2 and 3.</div><div class=""><br class=""></div><div class="">2) Instead of the “chimera” module being automatically imported, a variable named “session” is made available which has much of the state of the current ChimeraX session.</div><div class=""><br class=""></div><div class="">3) The process of running a ChimeraX command from Python is quite similar but has a few differences:</div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>a) The import would be: <font face="Courier" class=""><span style="font-style: normal;" class="">from chimerax.core.commands import run</span></font></div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>b) The call would be: <font face="Courier" class=""><span style="font-style: normal;" class="">run(session, ‘</span></font><i class="">ChimeraX command here</i><font face="Courier" class=""><span style="font-style: normal;" class="">’)</span></font></div><div class=""><br class=""></div><div class=""><div>4) Issuing status messages would be: <font face="Courier" class=""><span style="font-style: normal;" class="">session.logger.status(’</span></font><i class="">status message here</i><font face="Courier" class=""><span style="font-style: normal;" class="">’)</span></font> </div><div><span class="Apple-tab-span" style="white-space:pre"> </span>(and therefore you don’t need [and must remove] the import statement for replyobj)</div><div><br class=""></div><div>—Eric</div><div><br class=""></div><div><div class=""><div class=""><span class="Apple-tab-span" style="white-space: pre;"> </span>Eric Pettersen</div><div class=""><span class="Apple-tab-span" style="white-space: pre;"> </span>UCSF Computer Graphics Lab</div><div class=""><br class=""></div><br class="Apple-interchange-newline"></div><blockquote type="cite" class=""><div class="">On Jan 21, 2020, at 8:13 AM, Elaine Meng <<a href="mailto:meng@cgl.ucsf.edu" class="">meng@cgl.ucsf.edu</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">Hi Jacky,<br class="">It was not clear from your messages whether you are trying to save image files in a completely automated process or viewing interactively. My answer before was about scripting an automated process.<br class=""><br class="">If viewing interactively: for molecular docking results, there is a ViewDockX tool for easily clicking through the list of docked ligands and seeing them one at a time. It can also show the H-bonds between ligand and receptor. To see more information on this tool, use menu: Help… Users Guide and then in the Tools section click the ViewDockX link.<br class=""><br class="">Also, there are icons in the top toolbar “Molecule Display” tab that you can use on any atomic structures, for showing and hiding H-Bonds and showing the molecular surface colored by lipophilicity potential.<br class=""><<a href="http://rbvi.ucsf.edu/chimerax/docs/user/tools/moldisplay.html" class="">http://rbvi.ucsf.edu/chimerax/docs/user/tools/moldisplay.html</a>><br class=""><br class="">For writing command scripts, see commands: hbonds, clashes, contacts, mlp, show/hide, color, …<br class=""><<a href="http://rbvi.ucsf.edu/chimerax/docs/user/commands/usageconventions.html#cxc-files" class="">http://rbvi.ucsf.edu/chimerax/docs/user/commands/usageconventions.html#cxc-files</a>><br class=""><<a href="http://rbvi.ucsf.edu/chimerax/docs/user/index.html#commands" class="">http://rbvi.ucsf.edu/chimerax/docs/user/index.html#commands</a>><br class=""><br class="">Elaine<br class=""><br class=""><blockquote type="cite" class="">On Jan 20, 2020, at 2:46 PM, jacky zhao <<a href="mailto:jackyzhao010@gmail.com" class="">jackyzhao010@gmail.com</a>> wrote:<br class=""><br class="">Hi Elaine,<br class=""> Thank you for your reply. I always generated more than thousands of pdbs in one folder and will analysis the interaction of the complexes. In pymol, we can easy to show the interaction one by one. So I just wonder how to show the interaction of the complexes one by one instantly.<br class=""><br class="">Thanks,<br class=""><br class="">Jacky<br class=""><br class=""><blockquote type="cite" class="">2020年1月20日 上午8:12,Elaine Meng <<a href="mailto:meng@cgl.ucsf.edu" class="">meng@cgl.ucsf.edu</a>> 写道:<br class=""><br class="">Hi Jacky,<br class="">I can’t answer about the batching specifically (maybe others can help on that part), but here are some thoughts about this type of processing.<br class=""><br class="">First, you have to figure out if ChimeraX is the right program — if you open an example structure, can you manually (by trial and error) figure out a set a commands that will do what you want?<br class=""><br class="">If your goal is to save an image for each structure, consider:<br class=""><br class="">(A) Type of display: figure out the commands that will generate the display that you want, including which atoms are shown and which are hidden, their display style, as well as any ribbons and/or molecular surface, and other things like coloring, showing h-bonds, etc.. That is probably the easiest part.<br class=""><br class="">(B) Orientation and view: in general, it is very difficult to get good views of a variety of structures in an automated process. Without interactive positioning by a human looking at the screen, many times a bunch of atoms are stacked on top of each other, or some piece of ribbon or another protein subunit is in the front blocking everything else.<br class=""><br class="">(C) Different chain IDs, ligand names, etc. in different structures. If all of your interfaces are between chain A and chain B, or between the whole protein and a ligand that always has the same residue name, then it is easier. If you are processing a whole bunch of structures where you don’t know ahead of time which chain(s) or ligand(s) are forming the interface, it becomes nearly impossible.<br class=""><br class="">Only if it is possible to come up with a set of commands that works for most of your structures, would you then consider how to make this a batch process.<br class=""><br class="">I speak from experience trying to do this with Chimera, to make active-site images for the enzyme families in the Structure-Function Linkage Database. <br class=""><<a href="http://sfld.rbvi.ucsf.edu/archive/django/index.html" class="">http://sfld.rbvi.ucsf.edu/archive/django/index.html</a>><br class="">I had an extremely elaborate process with a lot of manual work per structure, including entering the specific chain IDs and active-site residue numbers for each structure. For each set of related structures (superfamily), I had a different session with an invisible reference structure, to which I would match the current structure (superimpose with matchmaker) before saving the image. Creating the reference sessions also required manual work. This was the only way I could think of to get a consistent view of a set of related structures.<br class=""><br class="">I hope this helps,<br class="">Elaine<br class="">-----<br class="">Elaine C. Meng, Ph.D. <br class="">UCSF Chimera(X) team<br class="">Department of Pharmaceutical Chemistry<br class="">University of California, San Francisco<br class=""><br class=""><br class=""><blockquote type="cite" class="">On Jan 18, 2020, at 1:48 PM, jacky zhao <<a href="mailto:jackyzhao010@gmail.com" class="">jackyzhao010@gmail.com</a>> wrote:<br class=""><br class="">Hi everyone,<br class="">I have tried to use chimeraX yesterday. It is vey cool! I just wonder how to batch process the structures?<br class=""><br class="">We will generate more than thousands of structures and will analysis the binding interface. Can I use chimeraX to instantly show the interface interactions one by one?<br class=""><br class="">Thank you for your time.<br class="">Jacky<br class=""></blockquote><br class=""></blockquote></blockquote><br class=""><br class="">_______________________________________________<br class="">ChimeraX-users mailing list<br class=""><a href="mailto:ChimeraX-users@cgl.ucsf.edu" class="">ChimeraX-users@cgl.ucsf.edu</a><br class="">Manage subscription:<br class="">http://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users<br class=""><br class=""></div></div></blockquote></div><br class=""></div></body></html>