'http://www.mothur.org/wiki/Oligos_File
Determines whether the file is a otu (operational taxonomic unit) format
>>> from galaxy.datatypes.sniff import get_test_fname
>>> fname = get_test_fname( \'mothur_datatypetest_true.mothur.oligos\' )
>>> Oligos().sniff( fname )
True
>>> fname = get_test_fname( \'mothur_datatypetest_false.mothur.oligos\' )
>>> Oligos().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) == 2) and (line[0] in ['forward', 'reverse'])):
                count += 1
                continue
            elif ((len(line) == 3) and (line[0] == 'barcode')):
                count += 1
                continue
            else:
                return False
    if (count > 0):
        return True
    return False
