Protool/structure.py
def hasChainBreak(self):
        """Check if the soup contains chains with chain breaks"""
        for chain in self.chains.keys():
            residues=sorted(self.chains[chain])
            Cterms=0
            Nterms=0
            for residue in residues:
                if not self.isaa(residue):
                    continue
                try:
                    nextres=self.NextResidue(residue)
                except Cterm:
                    Cterms=Cterms+1
                try:
                    prevres=self.PreviousResidue(residue)
                except Nterm:
                    Nterms=Nterms+1
            if Nterms>1 or Cterms>1:
                return True
        return False
Check if the soup contains chains with chain breaks
Check if the soup contains chains with chain breaks
Check if the soup contains chains with chain breaks
def hasChainBreak(self):
        for chain in self.chains.keys():
            residues=sorted(self.chains[chain])
            Cterms=0
            Nterms=0
            for residue in residues:
                if not self.isaa(residue):
                    continue
                try:
                    nextres=self.NextResidue(residue)
                except Cterm:
                    Cterms=Cterms+1
                try:
                    prevres=self.PreviousResidue(residue)
                except Nterm:
                    Nterms=Nterms+1
            if Nterms>1 or Cterms>1:
                return True
        return False
def hasChainBreak ( self ) : for chain in self . chains . keys ( ) : residues = sorted ( self . chains [ chain ] ) Cterms = 0 Nterms = 0 for residue in residues : if not self . isaa ( residue ) : continue try : nextres = self . NextResidue ( residue ) except Cterm : Cterms = Cterms + 1 try : prevres = self . PreviousResidue ( residue ) except Nterm : Nterms = Nterms + 1 if Nterms > 1 or Cterms > 1 : return True return False
Check if the soup contains chains with chain breaks
Check if the soup contains chains with chain breaks
"""Check if the soup contains chains with chain breaks"""
self