From dc17ff93ab3ff4c8fc7c11d3aea725dfa2504f30 Mon Sep 17 00:00:00 2001 From: Milton Pividori Date: Wed, 6 Sep 2023 20:50:18 -0600 Subject: [PATCH] corr: ccc uses use_ari_numba=True by default use_ari_numba=True should be safe in GTEx --- libs/ccc/corr.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libs/ccc/corr.py b/libs/ccc/corr.py index 1ee9e966..6dac2631 100644 --- a/libs/ccc/corr.py +++ b/libs/ccc/corr.py @@ -78,7 +78,9 @@ def mic(data: pd.DataFrame, estimator="mic_approx", n_jobs=None) -> pd.DataFrame ) -def ccc(data: pd.DataFrame, internal_n_clusters=None, n_jobs=1) -> pd.DataFrame: +def ccc( + data: pd.DataFrame, internal_n_clusters=None, n_jobs=1, use_ari_numba=True +) -> pd.DataFrame: """ Compute the Clustermatch Correlation Coefficient (CCC). """ @@ -89,6 +91,7 @@ def ccc(data: pd.DataFrame, internal_n_clusters=None, n_jobs=1) -> pd.DataFrame: data.to_numpy(), internal_n_clusters=internal_n_clusters, n_jobs=n_jobs, + use_ari_numba=use_ari_numba, ) corr_mat = squareform(corr_mat)