sarcgraph.sg.SarcGraph._merge_tracked_zdiscs
- SarcGraph._merge_tracked_zdiscs(tracked_zdiscs, full_track_ratio=0.75)[source]
A post processing step to group related partially tracked zdiscs using the OPTICS algorithm. Increases the robustness of zdisc tracking as well as the number of fully tracked zdiscs.
- Parameters:
tracked_zdiscs (pd.DataFrame) – tracked zdiscs information for all frames
full_track_ratio (float, optional) – If a tracked zdisc appears in enough number of frames defined by this ratio, it is considered a fully tracked zdisc. The default value 0.75 means if a zdisc is tracked in more than 75 percent of all frames it is fully tracked.
- Return type:
pd.DataFrame
Notes
For a detailed description of the OPTICS algorithm check: https://scikit-learn.org/stable/modules/generated/sklearn.cluster.OPTICS.html