networkcommons.methods.reduce_solution_network
- networkcommons.methods.reduce_solution_network(moon_res, meta_network, cutoff, sig_input, rna_input=None)
Reduces the solution network based on MOON score cutoffs and returns the reduced network and attribute table.
- Parameters:
moon_res (pandas.DataFrame) – The solution MOON df.
meta_network (networkx.DiGraph) – The original network.
cutoff (float) – The cutoff value for filtering edges.
sig_input (dict) – Dictionary containing the significant input scores.
rna_input (dict, optional) – Dictionary containing the RNA input scores.
None. (Defaults to)
- Returns:
The reduced network. att (pandas.DataFrame): The attribute table containing the relevant attributes of the nodes in the reduced network.
- Return type:
res_network (networkx.DiGraph)