Skip to content

Commit

Permalink
update for coo, open ms_co_occur_integrate to be used.
Browse files Browse the repository at this point in the history
  • Loading branch information
tanliwei-genomics-cn committed Nov 1, 2023
1 parent 53b1fbc commit 7e1c896
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion stereo/algorithm/co_occurrence.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = []
Expand Down

0 comments on commit 7e1c896

Please sign in to comment.