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
ifelement=="H":
ifatom.GetNeighbors():
nei_idx=atom.GetNeighbors()[0].GetIdx()
ifnei_idxinmapping_inv:
result[element]["excess"].append(mapping_inv[nei_idx])
else:
result[element]["excess"].append(-1)
else: # lone hydrogenraiseValueError(f"Lone hydrogen {atom.GetMonomerInfo().GetName()} found from input structure")
If we allow the lone hydrogens to pass, the bad residue with lone hydrogens will be deleted silently (no template match results printed) from the result structure.
But alternatively, lone hydrogens can be detected at an earlier point than template matching.
The text was updated successfully, but these errors were encountered:
rwxayheee
changed the title
Report (raise warning or error) lone hydrogens from bad input PDB
Report (raise warning or error for) lone hydrogens from bad input PDB
Nov 11, 2024
When input PDB has lone hydrogens (from a strained structure),
atom.GetNeighbors()
becomes an empty tuple and an error will occur from here:Meeko/meeko/polymer.py
Lines 2519 to 2524 in c938ebd
To raise an error:
If we allow the lone hydrogens to pass, the bad residue with lone hydrogens will be deleted silently (no template match results printed) from the result structure.
But alternatively, lone hydrogens can be detected at an earlier point than template matching.
The text was updated successfully, but these errors were encountered: