nichecompass.utils.get_unique_genes_from_gp_dict
- nichecompass.utils.get_unique_genes_from_gp_dict(gp_dict, retrieved_gene_entities=['sources', 'targets'], retrieved_gene_categories=None)
Return all unique genes of a gene program dictionary.
- Parameters:
gp_dict (
dict) – The gene program dictionary from which to retrieve the unique genes.retrieved_gene_entities (
list(default:['sources', 'targets'])) – A list that contains all gene entities (“sources”, “targets”) for which unique genes of the gene program dictionary should be retrieved.retrieved_gene_categories (
Optional[list] (default:None)) – A list that contains all gene categories for which unique genes of the gene program dictionary should be retrieved. IfNone, all gene categories are included.
- Return type:
- Returns:
unique_genes: A list of unique genes used in the gene program dictionary.