<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi Thu,<div class=""><br class=""></div><div class=""> ChimeraX and Chimera both include Python in the application. You can open a Python file in either program and it will be run. You can also use a Python shell in either program, in ChimeraX the shell is shown by menu Tools / General / Shell, and in Chimera it is shown with menu Tools / General Controls / IDLE. Neither program is setup to be used as a Python module in your own Python. We plan to make such a module available through Conda or PyPi for ChimeraX in the next year. There is a project called pychimera that tries to do this with Chimera, I have not used it,</div><div class=""><br class=""></div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span><a href="https://github.com/insilichem/pychimera" class="">https://github.com/insilichem/pychimera</a><br class=""><div><br class=""></div><div>You can run Python code without the Chimera or ChimeraX gui from the command line, for example,</div><div><br class=""></div><div><span class="Apple-tab-span" style="white-space:pre"> </span>chimerax --nogui myscript.py</div><div><br class=""></div><div>We encourage you to use ChimeraX instead of Chimera because we have not developed Chimera for about 6 years and eventually Chimera will not work on new operating systems and your code will not longer work. ChimeraX is also more capable than Chimera in many ways.</div><div><br class=""></div><div> Tom</div><div><br class=""></div><div><br class=""><blockquote type="cite" class=""><div class="">On Jul 28, 2022, at 12:49 PM, Thu Nguyen via Chimera-users <chimera-users@cgl.ucsf.edu> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Thank you very much. My initial goal actually is to use ChimeraX commands. I was writing a python script that utilizes ChimeraX commands to chop individual chains from emdb map and its corresponding pdb structures. However, I've just noticed that ChimeraX modules can only be used within the ChimeraX application, I cannot use those commands in my python script and run it like a regular python code. So I decided to stay with Chimera. <div class="">If there is a way to do it in ChimeraX, please let me know.</div><div class="">Thank you so much.</div><div class=""><br class=""></div><div class="">Best,</div><div class="">Thu</div></div><br class=""><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jul 28, 2022 at 3:31 PM Elaine Meng <<a href="mailto:meng@cgl.ucsf.edu" class="">meng@cgl.ucsf.edu</a>> wrote:<br class=""></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">For the other steps, you could use "open" to open the data, and "volume" command "save":<br class="">
<br class="">
open emdbID:12554<br class="">
open 7ns0<br class="">
vop cover #0 atomBox #1:.A1 pad 1.0<br class="">
volume #2 save ~/Desktop/12554_A1.mrc<br class="">
<br class="">
<<a href="https://www.rbvi.ucsf.edu/chimera/docs/UsersGuide/midas/open.html#fetch" rel="noreferrer" target="_blank" class="">https://www.rbvi.ucsf.edu/chimera/docs/UsersGuide/midas/open.html#fetch</a>><br class="">
<<a href="https://www.rbvi.ucsf.edu/chimera/docs/UsersGuide/midas/vop.html#cover" rel="noreferrer" target="_blank" class="">https://www.rbvi.ucsf.edu/chimera/docs/UsersGuide/midas/vop.html#cover</a>><br class="">
<<a href="https://www.rbvi.ucsf.edu/chimera/docs/UsersGuide/midas/volume.html#output" rel="noreferrer" target="_blank" class="">https://www.rbvi.ucsf.edu/chimera/docs/UsersGuide/midas/volume.html#output</a>><br class="">
<br class="">
Is there a specific reason you want to use Chimera instead of ChimeraX? I'm just curious -- if it's because of some Chimera feature, maybe I can suggest how to do it in ChimeraX.<br class="">
<br class="">
Elaine<br class="">
<br class="">
> On Jul 28, 2022, at 12:20 PM, Elaine Meng via Chimera-users <<a href="mailto:chimera-users@cgl.ucsf.edu" target="_blank" class="">chimera-users@cgl.ucsf.edu</a>> wrote:<br class="">
> <br class="">
> Hi Thu,<br class="">
> Chimera "vop cover" is basically the same as ChimeraX "volume cover":<br class="">
> <br class="">
> <<a href="https://www.rbvi.ucsf.edu/chimera/docs/UsersGuide/midas/vop.html#cover" rel="noreferrer" target="_blank" class="">https://www.rbvi.ucsf.edu/chimera/docs/UsersGuide/midas/vop.html#cover</a>><br class="">
> <<a href="https://rbvi.ucsf.edu/chimerax/docs/user/commands/volume.html#cover" rel="noreferrer" target="_blank" class="">https://rbvi.ucsf.edu/chimerax/docs/user/commands/volume.html#cover</a>><br class="">
> <br class="">
> However, ChimeraX is the newer program, faster on big data, with fancier display options (among many other advantages), so we generally recommend it over Chimera when both have the feature(s) you need.<br class="">
> <br class="">
> <<a href="https://www.rbvi.ucsf.edu/chimerax/docs/user/advantages.html" rel="noreferrer" target="_blank" class="">https://www.rbvi.ucsf.edu/chimerax/docs/user/advantages.html</a>><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="">
>> On Jul 28, 2022, at 11:47 AM, Thu Nguyen via Chimera-users <<a href="mailto:chimera-users@cgl.ucsf.edu" target="_blank" class="">chimera-users@cgl.ucsf.edu</a>> wrote:<br class="">
>> <br class="">
>> Good afternoon,<br class="">
>> I want to ask if we have any command in Chimera that is similar to the command "volume cover" in ChimaraX. My goal is to create a map and pdb file of individual chains from the whole structure. For example: <br class="">
>>> open 12554 from emdb <br class="">
>>> open 7ns0 <br class="">
>>> volume cover #1 atomBox #2/A1 pad 1.0 <br class="">
>>> save 12554_A1.mrc models #3 <br class="">
>> Could you tell me how I can do this using Chimera commands? <br class="">
>> Thank you very much.<br class="">
>> Best regards,<br class="">
>> Thu<br class="">
<br class="">
</blockquote></div>
_______________________________________________<br class="">Chimera-users mailing list: Chimera-users@cgl.ucsf.edu<br class="">Manage subscription: https://www.rbvi.ucsf.edu/mailman/listinfo/chimera-users<br class=""></div></blockquote></div><br class=""></div></body></html>