Skip to content

Instantly share code, notes, and snippets.

View GeauxEric's full-sized avatar

GeauxEric GeauxEric

  • Nvidia
  • CA USA
  • 14:50 (UTC -07:00)
View GitHub Profile
@GeauxEric
GeauxEric / dockedpose.py
Last active February 7, 2022 03:46 — forked from baoilleach/dockedpose.py
Using Open Babel to calculate the symmetry-corrected RMSD of a docked pose from a crystal structure
import math
import pybel
def squared_distance(coordsA, coordsB):
"""Find the squared distance between two 3-tuples"""
sqrdist = sum((a - b)**2 for a, b in zip(coordsA, coordsB))
return sqrdist