'Color-space sequence:
>2_15_85_F3
T213021013012303002332212012112221222112212222
>>> from galaxy.datatypes.sniff import get_test_fname
>>> fname = get_test_fname( \'sequence.fasta\' )
>>> csFasta().sniff( fname )
False
>>> fname = get_test_fname( \'sequence.csfasta\' )
>>> csFasta().sniff( fname )
True'

def sniff(self, filename):

    try:
        fh = open(filename)
        while True:
            line = fh.readline()
            if (not line):
                break
            line = line.strip()
            if (line and (not line.startswith('#'))):
                if line.startswith('>'):
                    line = fh.readline().strip()
                    if ((line == '') or line.startswith('>')):
                        break
                    elif (line[0] not in string.ascii_uppercase):
                        return False
                    elif ((len(line) > 1) and (not re.search('^[\\d.]+$', line[1:]))):
                        return False
                    return True
                else:
                    break
        fh.close()
    except:
        pass
    return False
