Page 1 of 1

PDB File doesnt properly turn into topology with app.PDBFile

Posted: Thu Apr 18, 2024 7:36 am
by dpierre
Hello,

i am new to OpenMM, so if the fix is obvious please don't go too hard on me.
I created a PDB file with Avogadro, which works perfectly fine in VMD or PyMOL, but when i try to open it with app.PDBFile(), it somehow only loads two of the 33 Atoms??
I attached a screenshot of the python code which shows the problem, and also the PDB File i am talking about (only not saved as .pdb, since you cant upload that here)

Thank you very much, and best regards,
Dominik

Re: PDB File doesnt properly turn into topology with app.PDBFile

Posted: Thu Apr 18, 2024 12:18 pm
by peastman
Every atom in a residue is required to have a unique name. Because your atoms are all named either "H" or "C", it assumes they are alternate locations for the same two atoms rather than different atoms.

Re: PDB File doesnt properly turn into topology with app.PDBFile

Posted: Sun Apr 21, 2024 11:59 am
by dpierre
Thank you so much!!!