[Biopython] Xpdb error

Peter Cock p.j.a.cock at googlemail.com
Mon May 23 14:57:26 UTC 2016


Almost certainly the script is missing an import, try adding:

from Bio.PDB import Residue

If that works can you try updating the (former wiki) page?:

http://biopython.org/wiki/Reading_large_PDB_files

Thanks,

Peter

On Mon, May 23, 2016 at 3:02 PM, Dries Van Rompaey
<dries.vanrompaey at gmail.com> wrote:
> Hi everyone,
>
> I'm using biopython to parse some MD files for further processing. I'm
> using the SloppyStructureBuilder from xpdb.py (as described in
> http://biopython.org/wiki/Reading_large_PDB_files), as I have quite a lot
> of residues and the standard class doesn't support that very well.
> Unfortunately, I get the following error:
>
> File "/Users/dvr/Dropbox/Work/xpdb.py", line 76, in init_residue
>     residue = Residue(res_id, resname, self.segid)
> NameError: global name 'Residue' is not defined
>
> Does anyone know what's going on here?
>
> Thanks,
> Kind regards,
>
> Dries
>
>
>
> _______________________________________________
> Biopython mailing list  -  Biopython at mailman.open-bio.org
> http://mailman.open-bio.org/mailman/listinfo/biopython


More information about the Biopython mailing list