recording.params 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. ### Note that depending on the file format selected, the parameters in the data section can vary
  2. ### You should refer to the documentation to know what are the needed parameters for a given
  3. ### file format. Otherwise, launch the code and a message will tell you what is needed
  4. [data]
  5. file_format = numpy # Can be raw_binary, openephys, hdf5, ... See >> spyking-circus help -i for more info
  6. sampling_rate = 32000.0
  7. stream_mode = None # None by default. Can be multi-files, or anything depending to the file format
  8. mapping = /net/bs-filesvr01/export/group/hierlemann/Temp/Alessio/make_test_sorted_data/sorting_output/spykingcircus/probe.prb # Mapping of the electrode (see http://spyking-circus.rtfd.ord)
  9. suffix = # Suffix to add to generated files
  10. global_tmp = True # should be False if local /tmp/ has enough space (better for clusters)
  11. overwrite = True # Filter or remove artefacts on site (if write access is possible). Data are duplicated otherwise
  12. parallel_hdf5 = True # Use the parallel HDF5 feature (if available)
  13. [detection]
  14. radius = auto # Radius [in um] (if auto, read from the prb file)
  15. N_t = 3 # Width of the templates [in ms]
  16. spike_thresh = 6 # Threshold for spike detection
  17. peaks = negative # Can be negative (default), positive or both
  18. [filtering]
  19. cut_off = 300, auto # Min and Max (auto=nyquist) cut off frequencies for the band pass butterworth filter [Hz]
  20. filter = True # If True, then a low-pass filtering is performed
  21. remove_median = False # If True, median over all channels is substracted to each channels (movement artifacts)
  22. [triggers]
  23. trig_file = # External stimuli to be considered as putative artefacts [in trig units] (see documentation)
  24. trig_windows = # The time windows of those external stimuli [in trig units]
  25. trig_unit = ms # The unit in which times are expressed: can be ms or timestep
  26. clean_artefact = False # If True, external artefacts induced by triggers will be suppressed from data
  27. dead_file = # Portion of the signals that should be excluded from the analysis [in dead units]
  28. dead_unit = ms # The unit in which times for dead regions are expressed: can be ms or timestep
  29. ignore_times = False # If True, any spike in the dead regions will be ignored by the analysis
  30. make_plots = # Generate sanity plots of the averaged artefacts [Nothing or None if no plots]
  31. [whitening]
  32. spatial = True # Perform spatial whitening
  33. max_elts = 1000 # Max number of events per electrode (should be compatible with nb_elts)
  34. nb_elts = 0.8 # Fraction of max_elts that should be obtained per electrode [0-1]
  35. output_dim = 5 # Can be in percent of variance explain, or num of dimensions for PCA on waveforms
  36. [clustering]
  37. extraction = median-raw # Can be either median-raw (default) or mean-raw
  38. sub_dim = 10 # Number of dimensions to keep for local PCA per electrode
  39. max_elts = 10000 # Max number of events per electrode (should be compatible with nb_elts)
  40. nb_elts = 0.8 # Fraction of max_elts that should be obtained per electrode [0-1]
  41. nb_repeats = 3 # Number of passes used for the clustering
  42. smart_search = True # Activate the smart search mode
  43. merging_method = nd-bhatta # Method to perform local merges (distance, dip, folding, nd-folding, bhatta, nd-bhatta)
  44. merging_param = default # Merging parameter (see doc) (3 if distance, 0.5 if dip, 1e-3 if folding, 2 if bhatta)
  45. sensitivity = 3 # Single parameter for clustering sensitivity. The lower the more sensitive
  46. cc_merge = 0.95 # If CC between two templates is higher, they are merged
  47. dispersion = (5, 5) # Min and Max dispersion allowed for amplitudes [in MAD]
  48. make_plots = # Generate sanity plots of the clustering [Nothing or None if no plots]
  49. [fitting]
  50. amp_limits = (0.3, 5) # Amplitudes for the templates during spike detection [if not auto] (0.3, 5)
  51. amp_auto = True # True if amplitudes are adjusted automatically for every templates
  52. collect_all = False # If True, one garbage template per electrode is created, to store unfitted spikes
  53. ratio_thresh = 0.9 # Ratio of the spike_threshold used while fitting [0-1]. The lower the slower
  54. [merging]
  55. cc_overlap = 0.75 # Only templates with CC higher than cc_overlap may be merged
  56. cc_bin = 2 # Bin size for computing CC [in ms]
  57. default_lag = 5 # Default length of the period to compute dip in the CC [ms]
  58. auto_mode = 0.75 # Between 0 (aggressive) and 1 (no merging). If empty, GUI is launched
  59. remove_noise = True # If True, meta merging will remove obvious noise templates (weak amplitudes)
  60. noise_limit = 0.75 # Amplitude at which templates are classified as noise
  61. sparsity_limit = 0 # Sparsity level (in percentage) for selecting templates as putative noise (in [0, 1])
  62. time_rpv = 5 # Time [in ms] to consider for Refraction Period Violations (RPV) (0 to disable)
  63. rpv_threshold = 0.02 # Percentage of RPV allowed while merging
  64. merge_drifts = True # Try to automatically merge drifts, i.e. non overlapping spiking neurons
  65. drift_limit = 1 # Distance for drifts. The higher, the more non-overlapping the activities should be
  66. [converting]
  67. erase_all = True # If False, a prompt will ask you to export if export has already been done
  68. export_pcs = prompt # Can be prompt [default] or in none, all, some
  69. export_all = False # If True, unfitted spikes will be exported as the last Ne templates
  70. sparse_export = False # For recent versions of phy, and large number of templates/channels
  71. [validating]
  72. nearest_elec = auto # Validation channel (e.g. electrode closest to the ground truth cell)
  73. max_iter = 200 # Maximum number of iterations of the stochastic gradient descent (SGD)
  74. learning_rate = 1.0e-3 # Initial learning rate which controls the step-size of the SGD
  75. roc_sampling = 10 # Number of points to estimate the ROC curve of the BEER estimate
  76. test_size = 0.3 # Portion of the dataset to include in the test split
  77. radius_factor = 0.5 # Radius factor to modulate physical radius during validation
  78. juxta_dtype = uint16 # Type of the juxtacellular data
  79. juxta_thresh = 6 # Threshold for juxtacellular detection
  80. juxta_valley = False # True if juxta-cellular spikes are negative peaks
  81. juxta_spikes = # If none, spikes are automatically detected based on juxta_thresh
  82. filter = True # If the juxta channel need to be filtered or not
  83. make_plots = png # Generate sanity plots of the validation [Nothing or None if no plots]
  84. [extracting]
  85. safety_time = 1 # Temporal zone around which spikes are isolated [in ms]
  86. max_elts = 1000 # Max number of collected events per templates
  87. output_dim = 5 # Percentage of variance explained while performing PCA
  88. cc_merge = 0.975 # If CC between two templates is higher, they are merged
  89. noise_thr = 0.8 # Minimal amplitudes are such than amp*min(templates) < noise_thr*threshold
  90. [noedits]
  91. filter_done = True #!! AUTOMATICALLY EDITED: DO NOT MODIFY !!
  92. artefacts_done = False # Will become True automatically after removing artefacts
  93. median_done = False # Will become True automatically after removing common median