'Determines whether the file is otu (operational taxonomic unit) format
label<TAB>count[<TAB>value(1..n)]
>>> from galaxy.datatypes.sniff import get_test_fname
>>> fname = get_test_fname( \'mothur_datatypetest_true.mothur.sabund\' )
>>> Sabund().sniff( fname )
True
>>> fname = get_test_fname( \'mothur_datatypetest_false.mothur.sabund\' )
>>> Sabund().sniff( fname )
False'

def sniff(self, filename):

    headers = iter_headers(filename, sep=' DCTB ')
    count = 0
    for line in headers:
        if (not line[0].startswith('@')):
            if (len(line) < 2):
                return False
            try:
                check = int(line[1])
                if ((check + 2) != len(line)):
                    return False
                for i in range(2, len(line)):
                    int(line[i])
            except ValueError:
                return False
            count += 1
    if (count > 0):
        return True
    return False
