From 51c193f0661923a6d4f2b5bd8d7d88ace5b8da0d Mon Sep 17 00:00:00 2001 From: Shareef Dabdoub Date: Mon, 27 Nov 2023 08:26:19 -0600 Subject: [PATCH] Update _SCNIC_methods.py to match signature of filter_correls() `filter_correls()` in SCNIC takes a max_p parameter, but the `build_correlation_network_p()` function in _SCNIC_methods.py specifies a `min_p` parameter when calling `filter_correls()`, resulting in an error when running `qiime SCNIC build-correlation-network-p` --- q2_SCNIC/_SCNIC_methods.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/q2_SCNIC/_SCNIC_methods.py b/q2_SCNIC/_SCNIC_methods.py index 9468c6a..d63c921 100644 --- a/q2_SCNIC/_SCNIC_methods.py +++ b/q2_SCNIC/_SCNIC_methods.py @@ -40,7 +40,7 @@ def build_correlation_network_r(correlation_table: pd.DataFrame, min_val: float= def build_correlation_network_p(correlation_table: pd.DataFrame, max_val: float=.05) -> nx.Graph: - correlation_table_filtered = filter_correls(correlation_table, min_p=max_val) + correlation_table_filtered = filter_correls(correlation_table, max_p=max_val) net = correls_to_net(correlation_table_filtered) return net