bendalab / thunderfish

python scripts for analyzing recordings of efish electric fields.
GNU General Public License v3.0
5 stars 8 forks source link

detection of pulses on waves #87

Closed lizweer closed 4 years ago

lizweer commented 4 years ago

Made some changes on the peak detection algorithm so it doesn't use a fixed width for discarding sidepeaks. Comes in useful when adding eel detection as these pulses are wider. Most results are good, except the ones for the recordings with eel. Also added a similar method as used in thunderfish to discard wavefish prior to merging results, as it influences the delete_moving_fish() part.

  1. extract snippet with 8 times estimated pulse width
  2. do peak detection with threshold = 25% of (max-min) of snippet
  3. discard if number of peaks + number of thresholds > 4. --> still need to make parameters of these numbers