You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As a first step, default to writing ATOM records if atoms belong to a residue that is included in the standard, otherwise write a HETATM record. Then we could expand to expand to the suggestions in #1753?
Describe alternatives you've considered
The alternative is that we use one of the converters downstream, but it would be nice to have a standard compliant PDB writer.
The text was updated successfully, but these errors were encountered:
You can try to use chemfiles PDB writer instead (using format='CHEMFILES'), which should deal with this specific issue. If you do try it, let me know how it goes!
Thanks @Luthaf. I did try chemfiles unfortunately there's a deeper issue with NamedStream objects that I haven't been able to get to the bottom of yet. i.e. the following will fail:
Either way, I think the MDA PDB writer needs fixing. Indeed the fact that chemfiles' writer differs in behaviour is an even bigger reason. In my opinion, any way that a user tries to write out a given file format with MDA should yield the same answer.
Yes, since chemfiles uses its own C++ code to write to files and not standard python file objects, I would expect such code to fail. This is something I might be able to fix with the next release which introduces in-memory reading/writing.
Related to #1753
Is your feature request related to a problem?
Currently the PDB writer will always write out every single residue with an
ATOM
record type.This is causing some issues downstream where we pass PDB files written by MDA to propka (Becksteinlab/propkatraj#24)
My interpretation of the PDBv3 standard is that standard amino acids and nucleotides are written as
ATOM
records, everything else is aHETATM
(https://www.wwpdb.org/documentation/file-format-content/format33/sect9.html).Describe the solution you'd like
As a first step, default to writing
ATOM
records if atoms belong to a residue that is included in the standard, otherwise write aHETATM
record. Then we could expand to expand to the suggestions in #1753?Describe alternatives you've considered
The alternative is that we use one of the converters downstream, but it would be nice to have a standard compliant PDB writer.
The text was updated successfully, but these errors were encountered: