-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello Andrew--
> Everyone has been a great help with the questions I had about final
> structures, thank you. Now I need to convert the xplor format to pdb
> format. I need to change the atom names, add a chainID etc.
The atom renaming *should* work fine. Please see below. Unfortunately,
the released version of Xplor-NIH will not write into the chainID
field. You could wait until December for the next release, or request a
prerelease version from me.
Please see below for the name conversion.
best regards--
Charles
>
> xplor.parseArguments()
> psffile="sh3.psf"
>
> import protocol
> protocol.initParams("protein")
> protocol.initStruct(psffile)
> from pdbTool import PDBTool
> PDBTool("ave.pdb").read()
for atom in AtomSel("known"):
atom.setSegmentName("A")
outfile=PDBTool("out.pdb")
outfile.useIupacNames()
outfile.addRemark("a string")
# this works in the next version of Xplor-NIH:
# outfile.setWriteChainID(1)
outfile.write()
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.8+ <http://mailcrypt.sourceforge.net/>
iD8DBQFHK4nOPK2zrJwS/lYRAu40AJ0VOG+yxrUqUM3n/K7kDH59/rSnNQCggA5z
vNuLdjRIAl8sILvIQEhaYXM=
=hoz5
-----END PGP SIGNATURE-----