'Determines whether the file is a lane mask filter:  1 line consisting of zeros and ones.
>>> from galaxy.datatypes.sniff import get_test_fname
>>> fname = get_test_fname( \'mothur_datatypetest_true.mothur.filter\' )
>>> LaneMask().sniff( fname )
True
>>> fname = get_test_fname( \'mothur_datatypetest_false.mothur.filter\' )
>>> LaneMask().sniff( fname )
False'

def sniff(self, filename):

    headers = get_headers(filename, sep=' DCTB ', count=2)
    if ((len(headers) != 1) or (len(headers[0]) != 1)):
        return False
    if (not re.match('^[01]+$', headers[0][0])):
        return False
    return True
