Closed RMeli closed 3 years ago
Fix hopefully coming soon since I really need this working. =)
I just realised this is a duplicate of #2423 and that there is already an open PR (#2442), sorry.
Then you might have to reopen #2423?
cc @kaceyreidy – you might also be interested in the problem of correct element handling in MDAnalysis (see also https://github.com/MDAnalysis/mdanalysis/projects/9)
@RMeli this should be fixed now with #3001 I'm going to close. Please do re-open if needed.
Expected behavior
I expect
PDBWriter
to correctly write C and N atoms.Actual behavior
Some C atoms are written as Ca and some N atoms are written as Na. I think the writer is using the old instead of the new elements attribute (see #2647 and #2648).
Code to reproduce the behavior
The following PDB file is the ligand in
3MXF
Some C atoms have an atom type that contains CA and some N atoms have an atom type that contains NA (see #1808).
The PDB file written out by the following code is wrong:
Wrong output:
Current version of MDAnalysis
0.20.2-dev0
python -V
)?3.7.
macOS 10.15.5
/Ubuntu 18.04