From 7e1c8961441a0287cffede6fd19ae053215ac701 Mon Sep 17 00:00:00 2001 From: tanliwei Date: Wed, 1 Nov 2023 16:35:11 +0800 Subject: [PATCH] update for coo, open ms_co_occur_integrate to be used. --- stereo/algorithm/co_occurrence.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/stereo/algorithm/co_occurrence.py b/stereo/algorithm/co_occurrence.py index e1341912..e92d311d 100644 --- a/stereo/algorithm/co_occurrence.py +++ b/stereo/algorithm/co_occurrence.py @@ -285,7 +285,8 @@ def co_occurrence( ret[ret_key] = pd.DataFrame(tmp, index=group_codes).T return ret - def ms_co_occur_integrate(self, ms_data, scope, use_col, res_key='co_occurrence'): + @staticmethod + def ms_co_occur_integrate(ms_data, scope, use_col, res_key='co_occurrence'): from collections import Counter if use_col not in ms_data.obs: tmp_list = []