networkcommons.eval.run_ora

networkcommons.eval.run_ora(graph, net, metric='ora_Combined score', ascending=False, **kwargs)

Run over-representation analysis on a custom set of genes.

Parameters:
  • graph (nx.Graph, nx.DiGraph) – A (contextualised) graph.

  • net (pd.DataFrame) – A DataFrame containing source (gene set name) and

  • columns (target)

  • interest. (and containing the gene sets of)

  • **kwargs – Additional keyword arguments to pass to the function

  • decoupler.get_ora_df().

Returns:

The results of the over-representation analysis.

Return type:

pd.DataFrame