<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 Pin,<div class=""><span class="Apple-tab-span" style="white-space:pre">  </span>You can replace these lines:</div><div class=""><br class=""></div><div class=""><i class="">from WriteMol2 import writeMol2<br class="">writeMol2(models, "10gs_protein_charged.pdb”)</i></div><div class=""><br class=""></div><div class="">with: </div><div class=""><br class=""></div><div class=""><i class="">from Midas import write</i></div><div class=""><i class="">write(models[0], None, "10gs_protein_charged.pdb”)</i></div><div class=""><br class=""></div><div class="">—Eric</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 class=""><br class=""></div></div>

</div>
<br class=""><div><blockquote type="cite" class=""><div class="">On Oct 23, 2017, at 11:58 PM, 陈品 <<a href="mailto:chenp85@mail.sysu.edu.cn" class="">chenp85@mail.sysu.edu.cn</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">Dear developers,<br class=""><br class="">I use CHIMERA to add charge into protein file from PDB format to mol2 format, i found that the script:<br class=""><br class="">$ cat prep_protein.py<br class="">import chimera<br class="">from DockPrep import prep<br class="">models = chimera.openModels.list(modelTypes=[chimera.Molecule])<br class="">prep(models)<br class="">from WriteMol2 import writeMol2<br class="">writeMol2(models, "10gs_protein_charged.pdb")<br class=""><br class="">$ ~/.local/UCSF-Chimera64-1.12rc/bin/chimera  --nogui 10gs_protein.pdb prep_protein.py<br class=""><br class="">This script works well, but how to write PDB format file. I can not find WriteDPB function. How Can i write the data to PDB format?<br class=""><br class="">Kind Regards.<br class=""><br class="">Pin.<br class=""><br class=""><br class="">--------------------------------------------------------------------------------<br class="">本邮件及其附件含有发送给特定个人和用于特定目的的保密信息。如果您不是预期的收件人,请立即删除本邮件并通知发件人。严禁任何非预期的收件人使用、传播、分发或复制本邮件或其附件。<br class="">This email and its attachments may contain confidential information intended for a specific individual and purpose. If you are not the intended recipient, you should delete this email and notify the sender immediately. Any use, dissemination, distribution, or copying of this email or its attachments by persons other than the intended recipient(s), is strictly prohibited.<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=""><br class=""></div></div></blockquote></div><br class=""></div></body></html>