Open stefdoerr opened 2 years ago
From what I can see however there are only names, coordinates and bonds in the DB and no formal charges. Still it might be safer to assume 0 charge.
ipdb> residue.reference.map["HA"].__dict__
{'name': 'HA', 'x': 0.0, 'y': -0.557, 'z': -0.831, 'bonds': ['CA']}
Generally I have a feeling that this templating of atoms is an issue, it has also been in the past. Practically when adding hydrogens you should know their formal charge from the AA database and the only thing which ought to be copied is resname/resid/insertion/chain/segid and nothing else.