<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi James,<div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>First, if you want to save images without showing the Chimera GUI then you have to use the “headless” version of Chimera, available on the download page. To do the other things you want, just put the equivalent commands in a file that ends in “.cmd” and just add that file to your invocation of Chimera, e.g.:</div><div class=""><br class=""></div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>chimera $pdb script.cmd</div><div class=""><br class=""></div><div class="">The easiest way to handle the image file name is probably to used a fixed name in the Chimera “copy” command, and then in your bash script move that file to the final name you want. Also, "preset” is the command to apply presets — “help preset” in Chimera for more info.</div><div class=""><br class=""></div><div class="">Hope this helps.</div><div class=""><br class=""></div><div class="">—Eric</div><div class=""><br class=""></div><div class=""><br class=""><div class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" 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><br class="Apple-interchange-newline">
</div>
<br class=""><div><blockquote type="cite" class=""><div class="">On Aug 30, 2017, at 8:40 AM, James Starlight <<a href="mailto:jmsstarlight@gmail.com" class="">jmsstarlight@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">Dear Chimera Users!<br class=""><br class="">My simple bash script loops the folder with the pdbs and open it in Chimera<br class=""><br class="">for pdb in ${output}/xtc_proc/*.pdb ; do<br class="">name=$(basename "$pdb")<br class="">echo "I am sending ${name} to Chimera!"<br class="">chimera $pdb<br class="">done<br class=""><br class="">My question - can I use with chimera some batch file which will<br class="">apply the following commands to each of the loaded pdbs without<br class="">opening of Chimera GUI:<br class=""><br class="">1- Apply "publications-2" preset<br class=""><br class="">2 - rangecolor bfactor key 2 blue 30 red 50 yellow # color pdb<br class="">according to b-factor provided in the pdb file<br class=""><br class="">3- make a screen-shot of the colored cartoon figure in the selected<br class="">output folder.<br class=""><br class=""><br class="">I thanks so much for the example of batch file and the syntax accepted<br class="">by chimera from the linux shell.<br class=""><br class="">James<br class="">_______________________________________________<br class="">Chimera-users mailing list: <a href="mailto:Chimera-users@cgl.ucsf.edu" class="">Chimera-users@cgl.ucsf.edu</a><br class="">Manage subscription: <a href="http://plato.cgl.ucsf.edu/mailman/listinfo/chimera-users" class="">http://plato.cgl.ucsf.edu/mailman/listinfo/chimera-users</a><br class=""></div></div></blockquote></div><br class=""></div></body></html>