config_LENS|macrodim9.yaml 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. # Config file for Stage 2 - Processing
  2. # Name of stage, must be identical with folder name
  3. STAGE_NAME: 'stage02_processing'
  4. # The profile name is the key for this parameter configuration. Results are stored in output_path/<PROFILE>/ (output_path is defined in settings.py)
  5. PROFILE: 'LENS|macrodim9'
  6. # Name of the output file
  7. STAGE_OUTPUT: "processed_data.nix"
  8. # File format in which all intermediate neo objects are stored
  9. NEO_FORMAT: 'nix'
  10. # If True (default), the output file of a stage is created as symbolic link
  11. # to the last block output. If False, a duplicate is created (e.g. for cloud
  12. # application, where sym-links are not supported).
  13. USE_LINK_AS_STAGE_OUTPUT: True
  14. # Plotting parameters
  15. PLOT_TSTART: 0 # in s
  16. PLOT_TSTOP: 10 # in s
  17. PLOT_CHANNELS: [11, 33, 55] # int or None. default 'None' -> randomly selected
  18. PLOT_FORMAT: 'png'
  19. # The block order determines which processing steps (blocks) will be applied
  20. # and in which order. Execution order is from first to last entry.
  21. # The available blocks are:
  22. # 'background_subtraction', 'frequency_filter', 'normalization', 'detrending',
  23. # 'roi_selection', 'logMUA_estimation', 'phase_transform', 'zscore', 'spatial_downsampling'
  24. BLOCK_ORDER: ['spatial_downsampling', 'roi_selection', 'background_subtraction', 'detrending',
  25. 'normalization', 'frequency_filter', 'zscore']
  26. # To make sure that the processing blocks are always executed in the correct
  27. # order that results from previous runs don't confound the workflow, all blocks
  28. # are rerun upon each execution. To turn this off, e.g., because the block order
  29. # didn't change, set to False (do with care!).
  30. RERUN_MODE: False
  31. # BLOCK - background_subtraction
  32. #################################
  33. # No parameters needed
  34. # BLOCK - spatial_downsampling
  35. #################################
  36. MACRO_PIXEL_DIM: 9
  37. # BLOCK - normalization
  38. #######################
  39. # Normalize the data (devide channels-wise) by either:
  40. # 'mean', 'median', 'max'
  41. NORMALIZE_BY: 'max'
  42. # BLOCK - frequency_filter
  43. ##########################
  44. # parameters to be passed to the butterworth frequency filter
  45. # function by elephant
  46. HIGHPASS_FREQUENCY: 0.1 # in Hz
  47. LOWPASS_FREQUENCY: 5 # in Hz
  48. FILTER_ORDER: 2
  49. # filter function used in scipy backend.
  50. # options: ‘filtfilt’, 'lfilter’, ‘sosfiltfilt’
  51. FILTER_FUNCTION: 'sosfiltfilt'
  52. # Plotting parameters for the power spectrum
  53. PSD_FREQUENCY_RESOLUTION: 5 # in Hz
  54. PSD_OVERLAP: 0.5
  55. # BLOCK - detrending
  56. ####################
  57. # Detrending: 0 - mean detrending;
  58. # 1 - mean and slope detrending (linear): this should be the default.
  59. DETRENDING_ORDER: 1
  60. # BLOCK - subsampling
  61. #####################
  62. TARGET_RATE: 200 # in Hz
  63. # BLOCK - img_roi_selection
  64. ###########################
  65. # Threshold below which the pixels are discarded (set to nan).
  66. # Given in percent of the range between minimum and maximum intensity.
  67. INTENSITY_THRESHOLD: 0.5
  68. CROP_TO_SELECTION: True
  69. # BLOCK - logMUA_estimation
  70. ########################
  71. MUA_HIGHPASS_FREQUENCY: 200 # in Hz
  72. MUA_LOWPASS_FREQUENCY: 1500 # in Hz
  73. # Rate of the logMUA signal. Must be <= the original sampling rate
  74. # in Hz (default: 'None', takes highpass_freq)
  75. logMUA_RATE: 100
  76. # Length of time slice (in s) to estimate the local power spectrum
  77. # default 'None', takes minimum number of samples determined
  78. # by the lower bound of the frequency band
  79. FFT_SLICE: 0.1
  80. # PSD_OVERLAP: determined by setting in block frequency_filter