postprocessor.core.functions.tracks.get_joinable

get_joinable(tracks, smooth=False, tol=0.1, window=5, degree=3)[source]

Get the pair of track (without repeats) that have a smaller error than the tolerance. If there is a track that can be assigned to two or more other ones, it chooses the one with a lowest error.

Parameters
  • tracks – (m x n) dataframe where rows are cell tracks and columns are timepoints

  • tol – float or int threshold of average (prediction error/std) necessary to consider two tracks the same. If float is fraction of first track, if int it is absolute units.

  • window – int value of window used for savgol_filter

  • degree – int value of polynomial degree passed to savgol_filter

Return type

dict