Skip to content

Commit

Permalink
Update test artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmymathews committed Aug 1, 2024
1 parent 0586beb commit 84cf8b2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
3 changes: 1 addition & 2 deletions spatialprofilingtoolbox/workflow/common/squidpy.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,12 +138,11 @@ def ripley_custom(
raise NotImplementedError(f"Mode `{mode.s!r}` is not yet implemented.")

for j in range(obs_arr.shape[0]):
pvalues[j] += stats_i >= obs_arr[j]
pvalues[j] += stats_i < obs_arr[j]
sims[i] = stats_i

pvalues /= n_simulations + 1
# pvalues = np.minimum(pvalues, 1 - pvalues)
pvalues = 1 - pvalues

obs_df = _reshape_res(obs_arr.T, columns=le.classes_, index=bins, var_name=cluster_key)
sims_df = _reshape_res(sims.T, columns=np.arange(n_simulations), index=bins, var_name="simulations")
Expand Down
14 changes: 7 additions & 7 deletions test/apiserver/module_tests/expected_squidpy5.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"values": {
"lesion 0_1": 1.0,
"lesion 0_2": 1.0,
"lesion 0_3": 1.0,
"lesion 6_1": 1.0,
"lesion 6_2": 1.0,
"lesion 6_3": 1.0,
"lesion 6_4": 1.0
"lesion 0_1": 34.1,
"lesion 0_2": 36.5,
"lesion 0_3": 38.3,
"lesion 6_1": 52.4,
"lesion 6_2": 90.9,
"lesion 6_3": 205.5,
"lesion 6_4": 56.6
},
"is_pending": false
}

0 comments on commit 84cf8b2

Please sign in to comment.