'Determines whether the file is otu (operational taxonomic unit) format
>>> from galaxy.datatypes.sniff import get_test_fname
>>> fname = get_test_fname( \'mothur_datatypetest_true.mothur.otu\' )
>>> Otu().sniff( fname )
True
>>> fname = get_test_fname( \'mothur_datatypetest_false.mothur.otu\' )
>>> Otu().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
            if (count >= 1):
                try:
                    check = int(line[1])
                    if ((check + 2) != len(line)):
                        return False
                except ValueError:
                    return False
            count += 1
    if (count > 2):
        return True
    return False
