Skip to content
Snippets Groups Projects
Verified Commit de75ff1d authored by Xavier Robin's avatar Xavier Robin
Browse files

fix: SCHWED-6070 cleanup Deuteriums too

parent 3341779f
No related branches found
No related tags found
No related merge requests found
......@@ -23,8 +23,9 @@ structures in PDB format.
Polymer/oligomeric ligands (saccharides, peptides, nucleotides) are not
supported.
Only minimal cleanup steps are performed (remove hydrogens, and for structures
of polymers only, remove unknown atoms and cleanup element column).
Only minimal cleanup steps are performed (remove hydrogens and deuteriums,
and for structures of polymers only, remove unknown atoms and cleanup element
column).
Ligands in mmCIF and PDB files must comply with the PDB component dictionary
definition, and have properly named residues and atoms, in order for
......@@ -299,8 +300,8 @@ def _LoadStructure(structure_path, format="auto", fault_tolerant=False):
f"file {structure_path}.")
# Remove hydrogens
cleaned_entity = ost.mol.CreateEntityFromView(entity.Select("ele != H"),
include_exlusive_atoms=False)
cleaned_entity = ost.mol.CreateEntityFromView(entity.Select(
"ele != H and ele != D"), include_exlusive_atoms=False)
cleaned_entity.SetName(structure_path)
return cleaned_entity
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment