gcell.dna.track.Track.get_local_iqr_peak

gcell.dna.track.Track.get_local_iqr_peak#

Track.get_local_iqr_peak(label, min_length=100, merge_length=100, iqr_factor=1.2)[source]#

Get local IQR peaks for a specific track.

Parameters:
label str

The label of the track to get the local IQR peaks for, or ‘agg’ for the aggregated track.

min_length int, optional

The minimum length of a peak. Defaults to 100.

merge_length int, optional

The maximum distance to merge consecutive peaks. Defaults to 100.

return_indices bool, optional

Whether to return the indices of the peaks. Defaults to True.

Returns:

np.ndarray: An array of local IQR peaks.