'>>> from galaxy.datatypes.sniff import get_test_fname
>>> fname = get_test_fname(\'test_tab.bed\')
>>> PlantTribesKsComponents().sniff(fname)
False
>>> fname = get_test_fname(\'1.ptkscmp\')
>>> PlantTribesKsComponents().sniff(fname)
True'

def sniff(self, filename):

    try:
        line_item_str = get_headers(filename, '\\t', 1)[0][0]
        return (line_item_str == 'species DCTB n DCTB number_comp DCTB lnL DCTB AIC DCTB BIC DCTB mean DCTB variance DCTB porportion')
    except Exception:
        return False
