Auerbach-Lab/Behavior-autoanalysis

Gap detection files can now be correctly named based on gap depth and range.

Closed this issue · 1 comments

Issue

Gap detection files can now be correctly named based on gap depth and range, due to notes in stim - para - stim_note in the malab file.

Expected Behavior

Naming scheme:
gap_

  • if changes to background range (i.e. comment on BG_freq: in stim - para - stim_note) then range (8-32kHz-)
    Note currently an issue in naming with the files having a hyphen - instead of an underscore _
  • Background intensity (40dB_)
  • depth of gap (from comment on gap_depth: in stim - para - stim_note) (40dB_)
  • duration_range
  • lockout

Example file name / Reproduce

Red3_gap_8-32kHz-40dB_40dB_1-100ms_12s_20231104-114310_BOX#001 should be gap_2-8kHz-40dB_40dB_1-100ms_12s
Red3_gap_8-32kHz-40dB_40dB_1-100ms_12s_20231102-112626_BOX#001 is an old style file to show the changes in matlab files.
Matlab file changes example.zip

Notes

  • Changes need stim - para - stim_note added to run_properties during matlab import
    Location of Gap Detection file name creation: ( )
  • Change will require a has_modified_BG check around line 908
  • update computed_file_name around line 911

Gap depth will be standard in all cases except in analysis_type "Training - Gap" where it will be left out since it should be full depth.

Current Issue gap_depth is not in the notes for training files. Xiaopeng has been contacted to fix this.