pyfim.analysis.peristalsis_efficiency

pyfim.analysis.peristalsis_efficiency(exp)

Calculates the peristalsis efficiency for each object. The unit is depending on the input data: [pixel/peristalsis] or [mm/peristalsis]. This analysis is based on MatLab code by Dimitri Berh (University of Muenster, Germany).

Parameters:exp (pyfim.Experiment) – Experiment holding the raw data.

Notes

This function determines the number of peristalses by performing peak detection of the object’s area in its go-phases. The efficieny is the distance (in pixel or mm) per peristalsis. You can finetune this behaviour using the following parameters in the config file:

  • MIN_GO_PHASE: minimum length of the go phases
  • MIN_PEAK_DIST: minimal distance in frames between peristalses
Returns:Mean peristalsis efficiency [Hz]
Return type:pandas.DataFrame