sidechainnet/structure/StructureBuilder.py
def add_hydrogens(self):
        """Add Hydrogen atom coordinates to coordinate representation (re-apply PADs)."""
        if self.coords is None or not len(self.coords):
            raise ValueError("Cannot add hydrogens to a structure whose heavy atoms have"
                             " not yet been built.")
        self.hb = HydrogenBuilder(self.seq_as_str, self.coords)
        self.coords = self.hb.build_hydrogens()
        self.has_hydrogens = True
        self.atoms_per_res = NUM_COORDS_PER_RES_W_HYDROGENS
        self.terminal_atoms = self.hb.terminal_atoms
Add Hydrogen atom coordinates to coordinate representation (re-apply PADs).
Add Hydrogen atom coordinates to coordinate representation (re-apply PADs).
Add Hydrogen atom coordinates to coordinate representation ( re - apply PADs ) .
def add_hydrogens(self):
        if self.coords is None or not len(self.coords):
            raise ValueError("Cannot add hydrogens to a structure whose heavy atoms have"
                             " not yet been built.")
        self.hb = HydrogenBuilder(self.seq_as_str, self.coords)
        self.coords = self.hb.build_hydrogens()
        self.has_hydrogens = True
        self.atoms_per_res = NUM_COORDS_PER_RES_W_HYDROGENS
        self.terminal_atoms = self.hb.terminal_atoms
def add_hydrogens ( self ) : if self . coords is None or not len ( self . coords ) : raise ValueError ( "Cannot add hydrogens to a structure whose heavy atoms have" " not yet been built." ) self . hb = HydrogenBuilder ( self . seq_as_str , self . coords ) self . coords = self . hb . build_hydrogens ( ) self . has_hydrogens = True self . atoms_per_res = NUM_COORDS_PER_RES_W_HYDROGENS self . terminal_atoms = self . hb . terminal_atoms
Add Hydrogen atom coordinates to coordinate representation (re-apply PADs).
Add Hydrogen atom coordinates to coordinate representation ( re - apply PADs ) .
"""Add Hydrogen atom coordinates to coordinate representation (re-apply PADs)."""
self