PeakCallerRecursiveMasking.call_peaks#

PeakCallerRecursiveMasking.call_peaks(scores, rotation_matrix, mask=None, min_score=None, rotations=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.

rotationsBackendArray, optional

Rotation space array, by default None.

rotation_mappingDict optional

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

min_scorefloat

Minimum score value to consider. If provided, superseeds limit given by PeakCaller.num_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 rotations and rotation_mapping is provided, the respective rotation will be applied to the mask, otherwise rotation_matrix is used.