-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRUN_OSORT_NWB.m
37 lines (27 loc) · 1.16 KB
/
RUN_OSORT_NWB.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
%% TO RUN OSORT-NWB
%% Step 1a Make sure matnwb is ON YOUR PATH (all sub-folders)
%% Step 1b Make sure OSort_NWB is ON YOUR PATH (Top Folder)
%% Step 1c Make sure OSort_NWB/osort-v4-rel is ON YOUR PATH (all sub-folders)
%% Step 2 Create a new folder for spike sorting a session
% i.e., C:/Documents/Data/Study1/SpikeSorting/Session1
%% Step 3 Inside NEW folder create an 'nwb' folder
% i.e., C:/Documents/Dat/Study1/SpikeSorting/Session1/nwb
%% Step 4 Copy and past the NWB file of interest from NWB repo folder
% ONLY copy over the RAW version of the NWB to the '\nwb' folder
% For example:
% In your new folder you should have the following:
% -- /MW1_Session_2_raw.nwb
%% Step 5 Change the following input arguments:
% basepath
% -- This should be the outer folder you created in STEP 2
basepath = 'D:\LossAversionHomeTest\CLASE006\NWB-data\Spike_Data\';
patientID = 'CLASE_6';
nwbFname = 'MW12_Session_3_filter.nwb';
% Select wires
channS = 257:264;
%% Step 6 Run the main Function
OSort_RunFun_css("basePath",basepath,...
"patientID",patientID,...
"nwbFILE",nwbFname,...
"chann",channS,...
"defaultAlignM",1)