[BioPython] Using Bio.PDB to add atoms to a structure?

Thomas Hamelryck thamelry at binf.ku.dk
Mon Oct 23 19:10:35 UTC 2006


Hi,

Adding a chain:

from Bio.PDB.Chain import Chain
chain=Chain('B')
model.add(chain)

You have to make sure that the id (in this case 'B')
is not yet present in the model. Similar for atom, residue
and model.

Best,

-Thomas



More information about the Biopython mailing list