From 29a04f3505cea8c95a7220753def0325795c5d7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Al=C3=A1n=20Mu=C3=B1oz?= <amuoz@ed.ac.uk> Date: Wed, 9 Feb 2022 11:14:15 +0000 Subject: [PATCH] outcomment foci fun --- extraction/core/functions/cell.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/extraction/core/functions/cell.py b/extraction/core/functions/cell.py index f8b48a11..c6e7425b 100644 --- a/extraction/core/functions/cell.py +++ b/extraction/core/functions/cell.py @@ -84,13 +84,13 @@ def std(cell_mask, trap_image): ## Specialised extraction functions -def foci_area_otsu(cell_mask, trap_image): - # Use otsu threshold to calculate the are of high-expression blobs inside a cell. - cell_pixels = trap_image[cell_mask] - cell_pixels = cell_pixels[~np.isnan(cell_pixels)] - threshold = threshold_otsu(cell_pixels) +# def foci_area_otsu(cell_mask, trap_image): +# # Use otsu threshold to calculate the are of high-expression blobs inside a cell. +# cell_pixels = trap_image[cell_mask] +# cell_pixels = cell_pixels[~np.isnan(cell_pixels)] +# threshold = threshold_otsu(cell_pixels) - return np.sum(cell_pixels > threshold) +# return np.sum(cell_pixels > threshold) def k2_top_median(cell_mask, trap_image): -- GitLab