cluster_focus_peaks

shampoo.cluster_focus_peaks(xyz, eps=5, min_samples=3)[source] [edit on github]

Use DBSCAN to identify single particles through multiple focus planes.

Parameters:

xyz : ndarray

Matrix of (x, y, z) positions for each peak detected

eps : float

Passed to the eps argument of DBSCAN

min_samples : int

Passed to the min_samples argument of DBSCAN

Returns:

labels : ndarray

List of cluster labels for each peak. Labels of -1 signify noise points.