agora.utils.kymograph.bidirectional_retainment_filter

bidirectional_retainment_filter(df, mothers_thresh=0.8, daughters_thresh=7)[source]

Retrieve families where mothers are present for more than a fraction of the experiment, and daughters for longer than some number of time-points.

Parameters
df: pd.DataFrame

Data

mothers_thresh: float

Minimum fraction of experiment’s total duration for which mothers must be present.

daughters_thresh: int

Minimum number of time points for which daughters must be observed

:rtype: :py:class:`~pandas.core.frame.DataFrame`