Link Search Menu Expand Document

Preferences

The processing module allows you to adjust the default preferences or create your own. The preferences are located in preferences_ProcessCellMetrics.m. You may edit the default preferences or provide your own preferences in a separate file. To use your own, specify the path to your preferences as an analysis tag in the session struct:

% Specifying my_preference.m from the folder +user_preferences
session.analysisTags.preferences_ProcessCellMetrics = 'user_preferences.my_preferences';

user_preferences example file

You must follow the example file below when generating your own preference file:

function preferences = my_preferences(preferences,session)
% This is an example file for generating your own preferences for ProcessCellMetrics part of CellExplorer
% Please follow the structure of preferences_ProcessCellMetrics.m

% e.g.:

% Waveform
% preferences.waveform.nPull = 600;               % number of spikes to pull out (default: 600)
% preferences.waveform.wfWin_sec = 0.004;         % Larger window of the waveform for filtering (to avoid edge effects). Total width in seconds [default 4ms]
% preferences.waveform.wfWinKeep = 0.0008;        % half width of the waveform. In seconds [default 0.8ms]
disp('User preferences loaded successfully')

end

The example file is located i the +user_preferences folder.