Skip to content

Commit 23ac32d

Browse files
committed
Updated
1 parent e299a74 commit 23ac32d

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/AnalysisFunctions.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1836,9 +1836,9 @@ def number_of_puncta_per_segmented_cell_with_threshold(
18361836
protein_string (string): will use this to find corresponding files
18371837
imtype (string): image type previously analysed
18381838
aboveT (int): do the calculation above or below threshold
1839-
z_project_first (boolean, boolean): if both True (default), does a z
1839+
z_project_first (boolean, boolean): if both True (default), does a z
18401840
projection before
1841-
thresholding cell size.
1841+
thresholding cell size.
18421842
If both false, does not z project and
18431843
then does the analysis per z plane.
18441844
q1 (float): if float, adds in IQR filter
@@ -1891,7 +1891,11 @@ def number_of_puncta_per_segmented_cell_with_threshold(
18911891
upper_cell_size_threshold=upper_cell_size_threshold,
18921892
z_project=z_project_first,
18931893
)
1894-
image_size = cell_mask.shape if len(cell_mask.shape) < 2 else cell_mask.shape[:-1]
1894+
image_size = (
1895+
cell_mask.shape
1896+
if len(cell_mask.shape) < 2
1897+
else cell_mask.shape[:-1]
1898+
)
18951899

18961900
x_m = centroids[:, 0]
18971901
y_m = centroids[:, 1]

0 commit comments

Comments
 (0)