mmcci.an.get_network_diff
- mmcci.an.get_network_diff(network1: DataFrame, network2: DataFrame, perm_test: bool = True, num_perms: int = 100000)[source]
Calculates the difference between two networks. If perm_test is True, also performs permutation testing to assess the significance of the differences.
- Parameters:
network1 (pd.DataFrame) – Two matrices to compare (as DataFrames).
network2 (pd.DataFrame) – Two matrices to compare (as DataFrames).
- Returns:
A dictionary containing the difference between the two networks and p-values if perm_test is True.
- Return type:
dict