def __contains__(self, query):
        '''Defines `query in sequence` operator.

        :param query: query string or DNA sequence
        :type query: str or coral.DNA

        '''
        if query in self.top or query in self.bottom:
            return True
        else:
            return False
def __contains__ ( self , query ) : if query in self . top or query in self . bottom : return True else : return False
Defines `query in sequence` operator.

        :param query: query string or DNA sequence
        :type query: str or coral.DNA