PeakCallerRecursiveMasking.call_peaks#

PeakCallerRecursiveMasking.call_peaks(scores, rotation_matrix, mask=None, minimum_score=None, rotation_space=None, rotation_mapping=None, **kwargs)[source]#

Call peaks in the score space.

Parameters:
scoresBackendArray

Data array of scores.

rotation_matrixBackendArray

Rotation matrix.

maskBackendArray, optional

Mask array, by default None.

rotation_spaceBackendArray, optional

Rotation space array, by default None.

rotation_mappingDict optional

Dictionary mapping values in rotation_space to Euler angles. By default None

minimum_scorefloat

Minimum score value to consider. If provided, superseeds limit given by PeakCaller.number_of_peaks.

Returns:
Tuple[BackendArray, BackendArray]

Array of peak coordinates and peak details.

Notes

By default, scores are masked using a box with edge length self.min_distance. If mask is provided, elements around each peak will be multiplied by the mask values. If rotation_space and rotation_mapping is provided, the respective rotation will be applied to the mask, otherwise rotation_matrix is used.