[BioPython] Bio.PDB - adding 'dummy atoms'

Peter biopython at maubp.freeserve.co.uk
Mon Jan 7 18:55:57 UTC 2008


Christian Meesters wrote:
> I'd like to add 'dummy atoms' to a Bio.PDB Structure object. So far, I
> have this approach:
> ...
> new = Atom('OX', array([x, y, z]), 0, 1, 0, " OX ", serial_number)
> TypeError: object of type 'module' is not callable
>
> Does anyone have a hint for me, how actually add an atom or what's wrong
> here?

I would infer from the error that "Atom" refers to the Bio.PDB.Atom
module, rather than the Bio.PDB.Atom.Atom class.  How did you do your
imports?  Try this:

from Bio.PDB.Atom import Atom

Peter



More information about the Biopython mailing list