Skip to content

Commit 2454ca0

Browse files
Merge pull request #27 from HiDiHlabs/dev-clean
Dev clean, updated notebook and bug fixes
2 parents 6c4d9b6 + c981500 commit 2454ca0

File tree

3 files changed

+220
-231
lines changed

3 files changed

+220
-231
lines changed

docs/source/tutorials/xenium_brain.ipynb

Lines changed: 215 additions & 229 deletions
Large diffs are not rendered by default.

ovrlpy/_ovrlp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1468,7 +1468,7 @@ def run(
14681468

14691469
print("Running vertical adjustment")
14701470
_assign_xy(df)
1471-
_assign_z_mean_message_passing(df, rounds=4)
1471+
_assign_z_mean_message_passing(df, rounds=20)
14721472

14731473
vis = Visualizer(
14741474
KDE_bandwidth=KDE_bandwidth,

ovrlpy/_utils.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,10 @@ def _determine_localmax_and_sample(distribution, min_distance=3, min_expression=
7878
7979
"""
8080

81-
rois_x, rois_y = find_local_maxima(distribution, min_distance, min_expression)
81+
rois = find_local_maxima(distribution, min_distance, min_expression)
82+
83+
rois_x = rois[:, 0]
84+
rois_y = rois[:, 1]
8285

8386
return rois_x, rois_y, distribution[rois_x, rois_y]
8487

0 commit comments

Comments
 (0)