filter_tracks

lumicks.pylake.filter_tracks

filter_tracks(tracks, minimum_length=1, *, minimum_duration=0)

Remove tracks shorter than specified criteria from the list.

This can be used to enforce a minimum number of frames a spot has to be detected in order to be considered a valid track.

Parameters
  • tracks (List[KymoTrack]) – Detected tracks on a kymograph.

  • minimum_length (int, optional) – Minimum number of tracked points for the track to be accepted (default: 1).

  • minimum_duration (seconds, optional) – Minimum duration in seconds for a track to be accepted (default: 0).