-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPPC_init.m
More file actions
274 lines (248 loc) · 8.2 KB
/
Copy pathPPC_init.m
File metadata and controls
274 lines (248 loc) · 8.2 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
% PPC_init
%% used for cluster runs of the PPC_comparison script. Paths and parameters are put into a cfg struct here.
% addpath('/dartfs-hpc/rc/home/r/f00287r/Code/EC_NVHL')
% addpath(genpath('/dartfs-hpc/rc/home/r/f00287r/Code/vandermeerlab/code-matlab/shared'))
% addpath('/dartfs-hpc/rc/home/r/f00287r/Code/fieldtrip')
if isunix
addpath(genpath('/Users/jericcarmichael/Documents/GitHub/vandermeerlab/code-matlab/shared'))
addpath('/Users/jericcarmichael/Documents/GitHub/fieldtrip')
ft_defaults
addpath(genpath('/Users/jericcarmichael/Documents/GitHub/EC_Multisite'))
ft_defaults
% data_root =
else
addpath(genpath('D:\Users\mvdmlab\My_Documents\GitHub\vandermeerlab\code-matlab\shared'))
addpath('D:\Users\mvdmlab\My_Documents\GitHub\fieldtrip')
ft_defaults
addpath(genpath('D:\Users\mvdmlab\My_Documents\GitHub\EC_Multisite'))
ft_defaults
data_root = 'G:\Multisite\temp\';
mkdir(data_root, 'PPC_figs')
end
%% R108
cfg_in = [];
cfg_in.dataset = {'CSC4.ncs'};
cfg_in.data_dir = 'R108-2017-08-04_post';
cfg_in.inter_dir = 'R108-2017-08-04_post';
cfg_in.phase = 1; % corresponds to the first recording phase ('pre'). 2 = 'task', 3 = 'post'.
cfg_in.shuffle = 100;
cfg_in.plot = 1;
cfg_in.min_nSpikes = 500;
cfg_in.spike_id = 'ST3_cut';
PPC_comparison_CG(cfg_in);
%%
% disp('108 ST3 ...')
% cfg_in = [];
% cfg_in.dataset = {'CSC5.ncs'};
% cfg_in.data_dir = '/Users/jericcarmichael/Documents/Multisite/R108-2017-08-04_pre';
% cfg_in.inter_dir = '/Users/jericcarmichael/Documents/MultisiteR108-2017-08-04_pre';
% cfg_in.phase = 1; % corresponds to the first recording phase ('pre'). 2 = 'task', 3 = 'post'.
% cfg_in.shuffle = 100;
% cfg_in.plot = 1;
% cfg_in.min_nSpikes = 500;
% cfg_in.spike_id = 'ST3_cut';
% PPC_comparison_CG(cfg_in);
% disp('complete')
% %% R112
%
% disp('112 ST1 ...')
% cfg_in = [];
% cfg_in.dataset = {'CSC1.ncs'};
% cfg_in.data_dir = [data_root '/R112-2017-07-31_post'];
% cfg_in.inter_dir = [data_root '/PPC_figs'];
% cfg_in.phase = 1; % corresponds to the first recording phase ('pre'). 2 = 'task', 3 = 'post'.
% cfg_in.shuffle = nShuffle;
% cfg_in.plot = 1;
% cfg_in.min_nSpikes = 500;
% cfg_in.spike_id = 'ST1_SS';
% PPC_comparison_CG(cfg_in);
% disp('complete')
% %%
% disp('112 St1 ...')
% cfg_in = [];
% cfg_in.dataset = {'CSC1.ncs'};
% cfg_in.data_dir = [data_root 'R112-2017-08-01_post'];
% cfg_in.inter_dir = [data_root 'PPC_figs'];
% cfg_in.phase = 1; % corresponds to the first recording phase ('pre'). 2 = 'task', 3 = 'post'.
% cfg_in.shuffle = nShuffle;
% cfg_in.plot = 1;
% cfg_in.min_nSpikes = 500;
% cfg_in.spike_id = 'ST1_cut';
% PPC_comparison_CG(cfg_in);
% disp('complete')
%
% %%
% disp('112 ST6 ...')
% cfg_in = [];
% cfg_in.dataset = {'CSC12.ncs'};
% cfg_in.data_dir = [data_root '/R112-2017-08-01_post'];
% cfg_in.inter_dir = [data_root '/PPC_figs'];
% cfg_in.phase = 1; % corresponds to the first recording phase ('pre'). 2 = 'task', 3 = 'post'.
% cfg_in.shuffle = nShuffle;
% cfg_in.plot = 1;
% cfg_in.min_nSpikes = 500;
% cfg_in.spike_id = 'ST6_cut';
%% Complete
disp('112 ST1 ...') %IL
cfg_in = [];
cfg_in.dataset = {'CSC1_2k.ncs'};
cfg_in.data_dir = [data_root 'R112-2017-07-31_post'];
cfg_in.inter_dir = [data_root 'PPC_figs'];
cfg_in.phase = 1; % corresponds to the first recording phase ('pre'). 2 = 'task', 3 = 'post'.
cfg_in.shuffle = 100;
cfg_in.plot = 1;
cfg_in.min_nSpikes = 500;
cfg_in.spike_id = 'ST1_SS*.t';
PPC_comparison_CG(cfg_in);
disp('complete')
close all
%% Complete
disp('112 ST2 ...') %PL
cfg_in = [];
cfg_in.dataset = {'CSC3_2k.ncs'};
cfg_in.data_dir = [data_root 'R112-2017-07-31_post'];
cfg_in.inter_dir = [data_root 'PPC_figs'];
cfg_in.phase = 1; % corresponds to the first recording phase ('pre'). 2 = 'task', 3 = 'post'.
cfg_in.shuffle = 100;
cfg_in.plot = 1;
cfg_in.min_nSpikes = 500;
cfg_in.spike_id = 'ST2_SS*.t';
PPC_comparison_CG(cfg_in);
disp('complete')
close all
%% Complete
disp('112 TT7 ...') %CG
cfg_in = [];
cfg_in.dataset = {'CSC14_2k.ncs'};
cfg_in.data_dir = [data_root 'R112-2017-07-31_post'];
cfg_in.inter_dir = [data_root 'PPC_figs'];
cfg_in.phase = 1; % corresponds to the first recording phase ('pre'). 2 = 'task', 3 = 'post'.
cfg_in.shuffle = 100;
cfg_in.plot = 1;
cfg_in.min_nSpikes = 500;
cfg_in.spike_id = 'TT7_SS*.t';
PPC_comparison_CG(cfg_in);
disp('complete')
close all
%%
disp('112 ST1 ...') % IL
cfg_in = [];
cfg_in.dataset = {'CSC1.ncs'};
cfg_in.data_dir = [data_root 'R112-2017-08-04_post'];
cfg_in.inter_dir = [data_root 'PPC_figs'];
cfg_in.phase = 1; % corresponds to the first recording phase ('pre'). 2 = 'task', 3 = 'post'.
cfg_in.shuffle = 100;
cfg_in.plot = 1;
cfg_in.min_nSpikes = 500;
cfg_in.spike_id = 'ST1_SS*.t';
PPC_comparison_CG(cfg_in);
disp('complete')
close all
%% Complete
disp('107 TT2 ...') %OFC
cfg_in = [];
cfg_in.dataset = {'CSC7_2k.ncs'};
cfg_in.data_dir = [data_root 'R107-2017-07-31_pre'];
cfg_in.inter_dir = [data_root 'PPC_figs'];
cfg_in.phase = 1; % corresponds to the first recording phase ('pre'). 2 = 'task', 3 = 'post'.
cfg_in.shuffle = 100;
cfg_in.plot = 1;
cfg_in.min_nSpikes = 500;
cfg_in.spike_id = 'TT2_SS*.t';
PPC_comparison_CG(cfg_in);
disp('complete')
close all
%% Complete
disp('122 TT1 ...') % Piri_OFC
cfg_in = [];
cfg_in.dataset = {'CSC1.ncs'};
cfg_in.data_dir = [data_root 'Spikes_R122-2017-02-26_SPIKES'];
cfg_in.inter_dir = [data_root 'PPC_figs'];
cfg_in.phase = 1; % corresponds to the first recording phase ('pre'). 2 = 'task', 3 = 'post'.
cfg_in.shuffle = 100;
cfg_in.plot = 1;
cfg_in.min_nSpikes = 500;
cfg_in.spike_id = 'TT1_SS*.t';
PPC_comparison_CG(cfg_in);
disp('complete')
close all
%% Complete
disp('40262 TT2 ...') % OFC
cfg_in = [];
cfg_in.dataset = {'CSC6_2k.ncs'};
cfg_in.data_dir = [data_root 'R40262-2017-12-02_trk'];
cfg_in.inter_dir = [data_root 'PPC_figs'];
cfg_in.phase = 1; % corresponds to the first recording phase ('pre'). 2 = 'task', 3 = 'post'.
cfg_in.shuffle = 100;
cfg_in.plot = 1;
cfg_in.min_nSpikes = 500;
cfg_in.spike_id = 'TT2_SS*.t';
PPC_comparison_CG(cfg_in);
disp('complete')
%%
disp('40264 TT2 ...') % OFC
cfg_in = [];
cfg_in.dataset = {'CSC7_2k.ncs'};
cfg_in.data_dir = [data_root 'R40264-2017-12-02_trk'];
cfg_in.inter_dir = [data_root 'PPC_figs'];
cfg_in.phase = 1; % corresponds to the first recording phase ('pre'). 2 = 'task', 3 = 'post'.
cfg_in.shuffle = 100;
cfg_in.plot = 1;
cfg_in.min_nSpikes = 500;
cfg_in.spike_id = 'TT2_SS*.t';
PPC_comparison_CG(cfg_in);
disp('complete')
%%
disp('112 ST6 ...') %Piri_NAc*
cfg_in = [];
cfg_in.dataset = {'CSC12.ncs'};
cfg_in.data_dir = [data_root 'R112-2017-08-01_post'];
cfg_in.inter_dir = [data_root 'PPC_figs'];
cfg_in.phase = 1; % corresponds to the first recording phase ('pre'). 2 = 'task', 3 = 'post'.
cfg_in.shuffle = 100;
cfg_in.plot = 1;
cfg_in.min_nSpikes = 500;
cfg_in.spike_id = 'ST6_SS*.t';
PPC_comparison_CG(cfg_in);
disp('complete')
%% complete
disp('112 TT7 ...') %CG
cfg_in = [];
cfg_in.dataset = {'CSC14.ncs'};
cfg_in.data_dir = [data_root 'R112-2017-07-31_post'];
cfg_in.inter_dir = [data_root 'PPC_figs'];
cfg_in.phase = 1; % corresponds to the first recording phase ('pre'). 2 = 'task', 3 = 'post'.
cfg_in.shuffle = 100;
cfg_in.plot = 1;
cfg_in.min_nSpikes = 500;
cfg_in.spike_id = 'TT7_SS*.t';
PPC_comparison_CG(cfg_in);
disp('complete')
%% Complete
disp('108 ST3 ...') % OFC
cfg_in = [];
cfg_in.dataset = {'CSC5.ncs'};
cfg_in.data_dir = [data_root 'R108-2017-08-04_post'];
cfg_in.inter_dir = [data_root 'PPC_figs'];
cfg_in.phase = 1; % corresponds to the first recording phase ('pre'). 2 = 'task', 3 = 'post'.
cfg_in.shuffle = 100;
cfg_in.plot = 1;
cfg_in.min_nSpikes = 500;
cfg_in.spike_id = 'ST3_SS*.t';
PPC_comparison_CG(cfg_in);
disp('complete')
%% complete
disp('123 TT1 ...') %Piri_OFC
cfg_in = [];
cfg_in.dataset = {'CSC1.ncs'};
cfg_in.data_dir = [data_root 'R123-2017-02-26_post_trk'];
cfg_in.inter_dir = [data_root 'PPC_figs'];
cfg_in.phase = 1; % corresponds to the first recording phase ('pre'). 2 = 'task', 3 = 'post'.
cfg_in.shuffle = 100;
cfg_in.plot = 1;
cfg_in.min_nSpikes = 500;
cfg_in.tstart = 78*2000; % saturations will yield NaNs. This trims the first half of the sessions since it contains saturations.
cfg_in.tstop = (578*2000)-cfg_in.tstart; % same as above
cfg_in.spike_id = 'TT1_SS*.t';
PPC_comparison_CG(cfg_in);
disp('complete')