def read(inputfile):
    """Read prediction results and ground truth. Expects a file where each line
    is a pair of sequence identifier and value, separated by ':'

    Parameters
    ----------
    inputfile: file
        Input text file

    Returns
    -------
    dict
    """
    results = dict()
    with open(inputfile, 'r') as f:
        for line in f:
            line = line.strip()
            if line.startswith('#'):
                continue
            id, value = line.strip().split(':')
            results[int(id)] = int(value)
    return results