sidechainnet/structure/StructureBuilder.py
def _build_first_two_residues(self):
        """Construct the first two residues of the protein."""
        resname_ang_iter = self._iter_resname_angs()
        first_resname, first_ang = next(resname_ang_iter)
        second_resname, second_ang = next(resname_ang_iter)
        first_res = ResidueBuilder(first_resname, first_ang, prev_res=None, next_res=None)
        second_res = ResidueBuilder(second_resname,
                                    second_ang,
                                    prev_res=first_res,
                                    next_res=None)

        # After building both backbones use the second residue's N to build the first's CB
        first_res.build_bb()
        second_res.build()
        first_res.next_res = second_res
        first_res.build_sc()

        return first_res, second_res
Construct the first two residues of the protein.
Construct the first two residues of the protein.
Construct the first two residues of the protein .
def _build_first_two_residues(self):
        resname_ang_iter = self._iter_resname_angs()
        first_resname, first_ang = next(resname_ang_iter)
        second_resname, second_ang = next(resname_ang_iter)
        first_res = ResidueBuilder(first_resname, first_ang, prev_res=None, next_res=None)
        second_res = ResidueBuilder(second_resname,
                                    second_ang,
                                    prev_res=first_res,
                                    next_res=None)
        first_res.build_bb()
        second_res.build()
        first_res.next_res = second_res
        first_res.build_sc()
        return first_res, second_res
def _build_first_two_residues ( self ) : resname_ang_iter = self . _iter_resname_angs ( ) first_resname , first_ang = next ( resname_ang_iter ) second_resname , second_ang = next ( resname_ang_iter ) first_res = ResidueBuilder ( first_resname , first_ang , prev_res = None , next_res = None ) second_res = ResidueBuilder ( second_resname , second_ang , prev_res = first_res , next_res = None ) first_res . build_bb ( ) second_res . build ( ) first_res . next_res = second_res first_res . build_sc ( ) return first_res , second_res
Construct the first two residues of the protein.
Construct the first two residues of the protein .
"""Construct the first two residues of the protein.""" # After building both backbones use the second residue's N to build the first's CB
self