biochem-fan / GLmol

A molecular viewer written in Javascript and WebGL
74 stars 28 forks source link

TypeError when loading a pdb #8

Closed benbro closed 9 years ago

benbro commented 10 years ago

I'm trying to load pdb files from: https://github.com/mrdoob/three.js/tree/master/examples/models/molecules

Some models like the aspirin.pdb gives an error https://github.com/mrdoob/three.js/blob/master/examples/models/molecules/aspirin.pdb

TypeError: a is undefined Three49custom.js (line 14, col 127)

biochem-fan commented 9 years ago

Hi,

This is not a proper PDB file. In a PDB file, non-protein/non-nucleic acid atoms must be specified in HETATM records, not ATOM records. http://deposit.rcsb.org/adit/docs/pdb_atom_format.html#ATOM