def read_counts(counts_filename):
    """Reads counts file into dict of counts"""
    with open(counts_filename) as f:
        lines = f.read().splitlines()
    lines.pop(0)
    lines_proc = dict( (line.split()[1] , float(line.split()[8])) for line in lines if '*' not in line.split()[1] )

    return lines_proc