qp.cluster.spheres.scale_hydrogen¶
- qp.cluster.spheres.scale_hydrogen(a, b, scale)[source]¶
Replaces an atom with hydrogen, rescaling the original bond length
- Parameters:
a (Bio.PDB.Atom) – Bonded atom to keep
b (Bio.PDB.Atom) – Bonded atom to replace
scale (float) – Bond length scale
- Returns:
pos – Coordinates of new hydrogen atom
- Return type:
array of float