qp.cluster.spheres_bad.build_hydrogen

qp.cluster.spheres_bad.build_hydrogen(parent: Bio.PDB.Residue.Residue, template: Bio.PDB.Residue.Residue | None, atom: Literal['N', 'C'])[source]

Cap with hydrogen, building based on the upstream or downstream residue

Parameters:
  • chain (Bio.PDB.Chain) – Chain with desired residue

  • parent (Bio.PDB.Residue) – Residue to cap

  • template (Bio.PDB.Residue) – Upstream or downstream residue

  • atom (str) – Flag for adding to the ‘N’ or ‘C’ side of the residue

Returns:

res – Residue containing added hydrogen

Return type:

Bio.PDB.Residue