netmap.downstream.markers.get_grn_targets

netmap.downstream.markers.get_grn_targets(keep_edges, cluster, source_genes)[source]

Extract target genes for specific sources from the filtered edge object.

Parameters:
  • keep_edges (dict) – Nested dict returned by select_top_edges(), structured as {'unique': {cluster: {'edges': pd.DataFrame, 'summary': ...}, ...}, 'all': ...}. The edges DataFrame must contain source and target columns.

  • cluster – The cluster identifier used to look up the relevant edge DataFrame within keep_edges['unique'].

  • source_genes (iterable) – Source gene names whose target genes should be retrieved.

Returns:

Target gene names (strings) regulated by any of the genes in source_genes within the specified cluster.

Return type:

list