def _get_anns_to_remove(in_file):
    """Find larger annotations, if present in VCF, that slow down processing.
    """
    to_remove = ["ANN", "LOF"]
    to_remove_str = tuple(["##INFO=<ID=%s" % x for x in to_remove])
    cur_remove = []
    with utils.open_gzipsafe(in_file) as in_handle:
        for line in in_handle:
            if not line.startswith("#"):
                break
            elif line.startswith(to_remove_str):
                cur_id = line.split("ID=")[-1].split(",")[0]
                cur_remove.append("INFO/%s" % cur_id)
    return ",".join(cur_remove)
Find larger annotations, if present in VCF, that slow down processing.