Skip to content

Commit

Permalink
detect_foci returns clustered_spots
Browse files Browse the repository at this point in the history
  • Loading branch information
Henley13 committed May 5, 2020
1 parent 73aa119 commit 973e15c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion bigfish/detection/foci_detection.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ def detect_foci(spots, voxel_size_z=None, voxel_size_yx=100, radius=350,
Returns
-------
clustered_spots : np.ndarray, np.int64
Coordinates of the detected spots with shape (nb_spots, 4) or
(nb_spots, 3). One coordinate per dimension (zyx or yx coordinates)
plus the index of the cluster assigned to the spot. If no cluster was
assigned, value is -1.
foci : np.ndarray, np.int64
Array with shape (nb_foci, 5) or (nb_foci, 4). One coordinate per
dimension for the foci centroid (zyx or yx coordinates), the number of
Expand Down Expand Up @@ -71,7 +76,7 @@ def detect_foci(spots, voxel_size_z=None, voxel_size_yx=100, radius=350,
# extract and shape foci information
foci = _extract_information(clustered_spots)

return foci
return clustered_spots, foci


def _convert_spot_coordinates(spots, voxel_size_z, voxel_size_yx):
Expand Down

0 comments on commit 973e15c

Please sign in to comment.