Open fwaibl opened 1 year ago
Thanks for flagging this - atomium 2.0.0 is nearing completion, so I will fix this issue for that release (likely next month) if it isn't already fixed there. I've overhauled the way saving is done generally.
Ok. Thanks for the info, I'm looking forward to the new version. Until then, I can work around it.
Hi. I am using atomium to extract molecules from mmCIF files and write them into PDB format. Generally, this works really well, but I encountered an issue with structures where the chain ID is a number instead of a letter.
Expected behaviour
The chain ID should not be written as part of the residue number, but only in the column reserved for the chain ID.
Actual behaviour
When the chain ID is a number, it is written into the PDB string twice (once as chain ID and once as part of the residue number). The resulting files are too broad for the PDB specification and are parsed badly by many other programs.
Example code to reproduce
Output (truncated):
Note that the chain ID ("13") is written twice.
Python Version/Operating System
I am using atomium 1.0.11 (from conda-forge) on Python 3.10 / Linux
Thanks in advance for your support, and thanks for publishing atomium as open-source :-)