Skip to content

Commit

Permalink
corr: ccc uses use_ari_numba=True by default
Browse files Browse the repository at this point in the history
use_ari_numba=True should be safe in GTEx
  • Loading branch information
miltondp committed Sep 7, 2023
1 parent 32890b0 commit dc17ff9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion libs/ccc/corr.py
Original file line number Diff line number Diff line change
Expand Up @@ -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).
"""
Expand All @@ -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)
Expand Down

0 comments on commit dc17ff9

Please sign in to comment.