def load_id_map(id_file):
    """ Load a ids file in to a barcode -> coordinate dictionary.
    """
    id_map = {}
    with open(id_file, "r") as fh:
        for line in fh:
            bc, x, y = line.split("\t")
            id_map[bc] = (int(x), int(y))

    return id_map