I believe this to be a bug with Avogadro
Environment Information
Avogadro version: 1.94
Operating system and version: Windows 10 64 21H1
Expected Behavior
Avogadro can read PDB file created with Avogadro 1.2.0
Actual Behavior
Especially PDB files with crystal structures created with 1.2.0 cannot be read with 1.94.
Error is “Failed to parse chain identifier”.
Other tools can read the PDB files, although they are a bit buggy - say use the same identifier for many atoms.
Steps to Reproduce
E.g. in 1.2.0
File / Import / Crystal C -graphite
Build / Supercell / 2x2x1
Save as PDB
The resul cannot be read in 1.94.
After some more tests I would say that Avogradro 1.94 cannot read any PDB file generated with Avogadro 1.2.0.
Huh. Can you upload the file and send me the link?
Here is one example - it is created in 1.2.0 with the 3 steps I gave in the initial post:
graph_cell_2x2.pdb
1 Like
This patch should fixit. When this finishes building in ~2 hours, it should have a Win64 binary to test added as a comment on GitHub.
OpenChemistry:master
← ghutchis:fix-pdb-reading
opened 06:36PM - 04 Jul 21 UTC
Also add support for reading CRYST1 records
Signed-off-by: Geoff Hutchison <g… eoff.hutchison@gmail.com>
Developer Certificate of Origin
Version 1.1
Copyright (C) 2004, 2006 The Linux Foundation and its contributors.
1 Letterman Drive
Suite D4700
San Francisco, CA, 94129
Everyone is permitted to copy and distribute verbatim copies of this
license document, but changing it is not allowed.
Developer's Certificate of Origin 1.1
By making a contribution to this project, I certify that:
(a) The contribution was created in whole or in part by me and I
have the right to submit it under the open source license
indicated in the file; or
(b) The contribution is based upon previous work that, to the best
of my knowledge, is covered under an appropriate open source
license and I have the right under that license to submit that
work with modifications, whether created in whole or in part
by me, under the same open source license (unless I am
permitted to submit under a different license), as indicated
in the file; or
(c) The contribution was provided directly to me by some other
person who certified (a), (b) or (c) and I have not modified
it.
(d) I understand and agree that this project and the contribution
are public and that a record of the contribution (including all
personal information I submit with it, including my sign-off) is
maintained indefinitely and may be redistributed consistent with
this project or the open source license(s) involved.
1 Like
I can confirm that this works. It now asks which reader to choose (Avogadro vs OpenBabel) which I guess is expected.
1 Like
Yes, at the moment, it will ask if you have a preference for different readers.
system
Closed
July 8, 2021, 4:35pm
9
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.