networkcommons.methods.decompress_moon_result

networkcommons.methods.decompress_moon_result(moon_res, node_signatures, duplicated_parents, meta_network_graph)

Decompresses the moon_res dataframe by mapping the compressed nodes to their corresponding original source using the provided meta_network_compressed_list and the filtered meta_network.

Parameters:
  • moon_res (pandas.DataFrame) – The compressed moon_res dataframe.

  • node_signatures (dict) – The node signatures dictionary.

  • duplicated_parents (dict) – The duplicated parents dictionary.

  • meta_network_graph (nx.DiGraph) – The compressed meta_network.

Returns:

The decompressed moon_res dataframe with the source column mapped to its corresponding original source.

Return type:

pandas.DataFrame