[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])
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.


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