[Biopython] writing a PDB----PLEASEEEE HELP

Peter Cock p.j.a.cock at googlemail.com
Mon Oct 25 15:32:37 UTC 2010


On Mon, Oct 25, 2010 at 4:26 PM, martin djokovic
<martin.djokovic at gmail.com> wrote:
> Hi Peter,
> I want a new PDB with structures A and B superimposed so that I can see them
> both at the same in the same file
>
> So at the end of the simulation/run  I would have A and B (original) and the
> 'ans.pdb' with A as it was but B rotated and translated to be superimposed
> on A in the same PDB
> I want to try this first simple superimposition but actually I want to
> connect A and B together to make a longer strand
> The last residue of A and first residue of B are the same so I can use those
> coordinates to rotate/translate B then connect to A
> I can do that manually using SWISS PDB but I want to do it for many
> structures and its time consuing.

Won't that mean there would be a duplicate residue? i.e. The last residue
of A and first residue of B are the same thing, but would be in the file twice.

Anyway - that basic idea is you must create a Bio.PDB structure object
with both A and B in it (perhaps as two chains in the same model), then
write that to the PDB file. The details depend on how you want to do
the combination - there is more than one way to represent  A and B
in the same PDB file (quite separate from how to do it in Biopython).

Peter

P.S. You could trying writing out two separate PDB files and try simply
concatenating them... it might do what you want.




More information about the Biopython mailing list