From 8462cc46a96e8ce97477aed468b76c1c642b46e7 Mon Sep 17 00:00:00 2001 From: Gregor Sturm Date: Fri, 28 Jun 2024 11:52:58 +0200 Subject: [PATCH] Update _nhood.py --- src/cellcharter/gr/_nhood.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cellcharter/gr/_nhood.py b/src/cellcharter/gr/_nhood.py index e13c6e6..e8fb824 100644 --- a/src/cellcharter/gr/_nhood.py +++ b/src/cellcharter/gr/_nhood.py @@ -344,8 +344,8 @@ def diff_nhood_enrichment( pbar.update(1) expected = np.stack(expected, axis=0) - pvalues = _empirical_pvalues(observed, expected) - result[result_key]["pvalue"] = pvalues + tmp_pvalues = _empirical_pvalues(observed, expected) + result[result_key]["pvalue"] = tmp_pvalues if copy: return result