Protool/flags.py
def is_hydrogen_bond(self,atom1,atom2,low_cutoff=2.2,high_cutoff=3.5):
        """Returns 1 or 2 if there is a potential hydrogen bond between these two atoms.
        Returns None otherwise. Returns 1 if the first atom is the donor, and 2
        if the second atom is the donor"""
        #
        # INCLUDE ANGLE REQUIREMENTS!
        #
        if self.is_hbond_donor(atom1) and self.is_hbond_acceptor(atom2):
            if self.dist(atom1,atom2)>low_cutoff and self.dist(atom1,atom2)<=high_cutoff:
                return 1
        if self.is_hbond_acceptor(atom1) and self.is_hbond_donor(atom2):
            if self.dist(atom1,atom2)>low_cutoff and self.dist(atom1,atom2)<=high_cutoff:
                return 2
        return None
Returns 1 or 2 if there is a potential hydrogen bond between these two atoms.
        Returns None otherwise. Returns 1 if the first atom is the donor, and 2
        if the second atom is the donor
Returns 1 or 2 if there is a potential hydrogen bond between these two atoms.
Returns None otherwise. Returns 1 if the first atom is the donor, and 2
if the second atom is the donor
Returns 1 or 2 if there is a potential hydrogen bond between these two atoms . Returns None otherwise . Returns 1 if the first atom is the donor and 2 if the second atom is the donor
def is_hydrogen_bond(self,atom1,atom2,low_cutoff=2.2,high_cutoff=3.5):
         INCLUDE ANGLE REQUIREMENTS!
        if self.is_hbond_donor(atom1) and self.is_hbond_acceptor(atom2):
            if self.dist(atom1,atom2)>low_cutoff and self.dist(atom1,atom2)<=high_cutoff:
                return 1
        if self.is_hbond_acceptor(atom1) and self.is_hbond_donor(atom2):
            if self.dist(atom1,atom2)>low_cutoff and self.dist(atom1,atom2)<=high_cutoff:
                return 2
        return None
def is_hydrogen_bond ( self , atom1 , atom2 , low_cutoff = 2.2 , high_cutoff = 3.5 ) : if self . is_hbond_donor ( atom1 ) and self . is_hbond_acceptor ( atom2 ) : if self . dist ( atom1 , atom2 ) > low_cutoff and self . dist ( atom1 , atom2 ) <= high_cutoff : return 1 if self . is_hbond_acceptor ( atom1 ) and self . is_hbond_donor ( atom2 ) : if self . dist ( atom1 , atom2 ) > low_cutoff and self . dist ( atom1 , atom2 ) <= high_cutoff : return 2 return None
Returns 1 or 2 if there is a potential hydrogen bond between these two atoms.
Returns 1 or 2 if there is a potential hydrogen bond between these two atoms .
"""Returns 1 or 2 if there is a potential hydrogen bond between these two atoms.
        Returns None otherwise. Returns 1 if the first atom is the donor, and 2
        if the second atom is the donor""" # # INCLUDE ANGLE REQUIREMENTS! #
self
atom1
atom2
low_cutoff
high_cutoff