'Determines whether the file is a quantiles tabular format for chimera analysis
1       0       0       0       0       0       0
2       0.309198        0.309198        0.37161 0.37161 0.37161 0.37161
3       0.510982        0.563213        0.693529        0.858939        1.07442 1.20608
>>> from galaxy.datatypes.sniff import get_test_fname
>>> fname = get_test_fname( \'mothur_datatypetest_true.mothur.quan\' )
>>> Quantile().sniff( fname )
True
>>> fname = get_test_fname( \'mothur_datatypetest_false.mothur.quan\' )
>>> Quantile().sniff( fname )
False'

def sniff(self, filename):

    headers = iter_headers(filename, sep=' DCTB ')
    count = 0
    for line in headers:
        if ((not line[0].startswith('@')) and (not line[0].startswith('#'))):
            if (len(line) != 7):
                return False
            try:
                int(line[0])
                float(line[1])
                float(line[2])
                float(line[3])
                float(line[4])
                float(line[5])
                float(line[6])
            except Exception:
                return False
            count += 1
    if (count > 0):
        return True
    return False
