Skip to content

Commit

Permalink
Merge pull request #45 from grst/patch-1
Browse files Browse the repository at this point in the history
Fix issue with diff_nhood_enrichment when more than two conditions are present
  • Loading branch information
marcovarrone authored Jul 2, 2024
2 parents 734f014 + 8462cc4 commit e279ce8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cellcharter/gr/_nhood.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e279ce8

Please sign in to comment.