localpdb/plugins/utils/MakeMultimer.py
def testHetatm(self, hetatm_line):
        '''
        determine whether or not a hetatm line should be kept.
        we could extend this to filter out water for example.
        Two conditions:
        - chain identifier must be present
        - depending on nowater option, water will be stripped
        '''
        if self.options['nohetatm']:
            return False
        orig_chain = hetatm_line[21:22].strip()
        if not orig_chain:
            return False
        hetatm_type = hetatm_line[17:20].upper()
        if self.options['nowater'] and hetatm_type in ("HOH", "DOD", "WAT"):
            return False

        return True

        determine whether or not a hetatm line should be kept.
        we could extend this to filter out water for example.
        Two conditions:
        - chain identifier must be present
        - depending on nowater option, water will be stripped
        
determine whether or not a hetatm line should be kept.
we could extend this to filter out water for example.
Two conditions:
chain identifier must be present
depending on nowater option, water will be stripped
determine whether or not a hetatm line should be kept . we could extend this to filter out water for example . Two conditions : chain identifier must be present depending on nowater option water will be stripped
def testHetatm(self, hetatm_line):
        if self.options['nohetatm']:
            return False
        orig_chain = hetatm_line[21:22].strip()
        if not orig_chain:
            return False
        hetatm_type = hetatm_line[17:20].upper()
        if self.options['nowater'] and hetatm_type in ("HOH", "DOD", "WAT"):
            return False
        return True
def testHetatm ( self , hetatm_line ) : if self . options [ 'nohetatm' ] : return False orig_chain = hetatm_line [ 21 : 22 ] . strip ( ) if not orig_chain : return False hetatm_type = hetatm_line [ 17 : 20 ] . upper ( ) if self . options [ 'nowater' ] and hetatm_type in ( "HOH" , "DOD" , "WAT" ) : return False return True
determine whether or not a hetatm line should be kept.
determine whether or not a hetatm line should be kept .
'''
        determine whether or not a hetatm line should be kept.
        we could extend this to filter out water for example.
        Two conditions:
        - chain identifier must be present
        - depending on nowater option, water will be stripped
        '''
self
hetatm_line