def find_disulfide_bridges(self, representative_only=True):
        """Run Biopython's disulfide bridge finder and store found bridges.

        Annotations are stored in the protein structure's chain sequence at:
        ``<chain_prop>.seq_record.annotations['SSBOND-biopython']``

        Args:
            representative_only (bool): If analysis should only be run on the representative structure

        """
        if representative_only:
            if self.representative_structure:
                try:
                    self.representative_structure.find_disulfide_bridges()
                except KeyError:
                    log.error('{}: unable to run disulfide bridge finder on {}'.format(self.id, self.representative_structure))
            else:
                log.warning('{}: no representative structure set, cannot run disulfide bridge finder'.format(self.id))
        else:
            for s in self.structures:
                try:
                    s.find_disulfide_bridges()
                except KeyError:
                    log.error('{}: unable to run disulfide bridge finder on {}'.format(self.id, s.id))
def find_disulfide_bridges ( self , representative_only = True ) : if representative_only : if self . representative_structure : try : self . representative_structure . find_disulfide_bridges ( ) except KeyError : log . error ( '{}: unable to run disulfide bridge finder on {}' . format ( self . id , self . representative_structure ) ) else : log . warning ( '{}: no representative structure set, cannot run disulfide bridge finder' . format ( self . id ) ) else : for s in self . structures : try : s . find_disulfide_bridges ( ) except KeyError : log . error ( '{}: unable to run disulfide bridge finder on {}' . format ( self . id , s . id ) )
Run Biopython's disulfide bridge finder and store found bridges.

        Annotations are stored in the protein structure's chain sequence at:
        ``<chain_prop>.seq_record.annotations['SSBOND-biopython']``

        Args:
            representative_only (bool): If analysis should only be run on the representative structure