Skip to content
Snippets Groups Projects
Commit 29a04f35 authored by Alán Muñoz's avatar Alán Muñoz
Browse files

outcomment foci fun

parent aa57200d
No related branches found
No related tags found
No related merge requests found
...@@ -84,13 +84,13 @@ def std(cell_mask, trap_image): ...@@ -84,13 +84,13 @@ def std(cell_mask, trap_image):
## Specialised extraction functions ## Specialised extraction functions
def foci_area_otsu(cell_mask, trap_image): # def foci_area_otsu(cell_mask, trap_image):
# Use otsu threshold to calculate the are of high-expression blobs inside a cell. # # Use otsu threshold to calculate the are of high-expression blobs inside a cell.
cell_pixels = trap_image[cell_mask] # cell_pixels = trap_image[cell_mask]
cell_pixels = cell_pixels[~np.isnan(cell_pixels)] # cell_pixels = cell_pixels[~np.isnan(cell_pixels)]
threshold = threshold_otsu(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): def k2_top_median(cell_mask, trap_image):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment