def get_duplicates(c_dict, th):
    """
    Detect genes which appear in >= th clusters
    :param c_dict: dictionary
    :param th: int
    :return: list of strings
    """
    filtered = []

    for gene in c_dict.keys():
        if c_dict[gene] >= th:
            filtered.append(gene)

    return filtered