[Chimera-users] How to write pdb file by script?

陈品 chenp85 at mail.sysu.edu.cn
Mon Oct 23 23:58:21 PDT 2017


Dear developers,

I use CHIMERA to add charge into protein file from PDB format to mol2 format, i found that the script:

$ cat prep_protein.py
import chimera
from DockPrep import prep
models = chimera.openModels.list(modelTypes=[chimera.Molecule])
prep(models)
from WriteMol2 import writeMol2
writeMol2(models, "10gs_protein_charged.pdb")

$ ~/.local/UCSF-Chimera64-1.12rc/bin/chimera  --nogui 10gs_protein.pdb prep_protein.py

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?

Kind Regards.

Pin.


--------------------------------------------------------------------------------
本邮件及其附件含有发送给特定个人和用于特定目的的保密信息。如果您不是预期的收件人,请立即删除本邮件并通知发件人。严禁任何非预期的收件人使用、传播、分发或复制本邮件或其附件。
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.


More information about the Chimera-users mailing list