Skip to content

Commit b32a71b

Browse files
bug fix localmax detection
1 parent 6c4d9b6 commit b32a71b

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

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)