-
Notifications
You must be signed in to change notification settings - Fork 0
/
script_launchGUI.m
166 lines (131 loc) · 4.41 KB
/
script_launchGUI.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
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
% Sessions with linearity test, from Dan:
% DPR_0009 2020-12-01 fullfieldContrastCheckerboard
% ZYE_0019 2020-12-01 fullfieldContrastCheckerboard
% ZYE_0018 2020-11-17 fullfieldContrastCheckerboard
% ZYE_0014 2020-10-28 fullfieldContrastCheckerboard
% DPR_0011 2020-10-28 fullfieldContrastCheckerboard
% ZYE_0012 2020-10-16 fullfieldContrastCheckerboard
% ZYE_0012 2020-10-16 fullfieldContrastCheckerboard
% SM_0001 2020-09-29 fullfieldContrastCheckerboard
% ZYE_0010 2020-09-15 fullfieldContrastCheckerboard
% NS_0005 2020-09-11 fullfieldContrastCheckerboard
% DPR_0009 2020-09-11 fullfieldContrastCheckerboard
% ZYE_0011 2020-09-11 fullfieldContrastCheckerboard
% DPR_0005 2020-09-08 fullfieldContrastCheckerboard
% DPR_0008 2020-09-02 fullfieldContrastCheckerboard
% NS_0005 2020-09-02 fullfieldContrastCheckerboard
% DPR_0008 2020-09-01 fullfieldContrastCheckerboard
% DPR_0008 2020-08-31 fullfieldContrastCheckerboard
% ZYE_0009 2020-08-31 fullfieldContrastCheckerboard
% ZYE_0010 2020-08-30 fullfieldContrastCheckerboard
% ZYE_0009 2020-08-30 fullfieldContrastCheckerboard
% DPR_0008 2020-08-30 fullfieldContrastCheckerboard
% DPR_0008 2020-08-29 fullfieldContrastCheckerboard
% ZYE_0010 2020-08-18 fullfieldContrastCheckerboard
% ZYE_0009 2020-08-18 fullfieldContrastCheckerboard
% ZYE_0010 2020-08-17 fullfieldContrastCheckerboard
% ZYE_0009 2020-08-17 fullfieldContrastCheckerboard
% ZYE_0010 2020-08-16 fullfieldContrastCheckerboard
% ZYE_0009 2020-08-16 fullfieldContrastCheckerboard
% ZYE_0010 2020-08-15 fullfieldContrastCheckerboard
% ZYE_0009 2020-08-15 fullfieldContrastCheckerboard
% DPR_0005 2020-08-12 fullfieldContrastCheckerboard
% DPR_0006 2020-08-05 fullfieldContrastCheckerboard
% DPR_0004 2020-07-28 fullfieldContrastCheckerboard
% DPR_0004 2020-07-28 fullfieldContrastCheckerboard
% DPR_0004 2020-07-28 fullfieldContrastCheckerboard
% DPR_0004 2020-07-28 fullfieldContrastCheckerboard
% DPR_0004 2020-07-20 fullfieldContrastCheckerboard_varSize
% DPR_0004 2020-07-20 fullfieldContrastCheckerboard
% ZYE_0005 2020-07-08 fullfieldContrastCheckerboard
% ZYE_0003 2020-06-26 fullfieldContrastCheckerboard
% ZYE_0003 2020-06-25 fullfieldContrastCheckerboard
% ZYE_0003 2020-06-25 fullfieldContrastCheckerboard
% ZYE_0005 2020-06-24 fullfieldContrastCheckerboard
% ZYE_0005 2020-06-24 fullfieldContrastCheckerboard
% ZYE_0005 2020-06-24 fullfieldContrastCheckerboard
% ZYE_0005 2020-06-24 fullfieldContrastCheckerboard
% ZYE_0005 2020-06-24 fullfieldContrastCheckerboard
% ZYE_0005 2020-06-23 fullfieldContrastCheckerboard
% ZYE_0004 2020-06-23 fullfieldContrastCheckerboard
% ZYE_0003 2020-06-23 fullfieldContrastCheckerboard
% ZYE_0003 2020-06-19 fullfieldContrastCheckerboard
%% paths
addpath(genpath(fullfile(githubDir, 'Pipelines')))
addpath(genpath(fullfile(githubDir, 'widefield')))
addpath(genpath(fullfile(githubDir, 'epileptiformGUI')))
%% load a session
mn = 'ZYE_0018';
td = '2020-11-17';
en = 1;
%%
mn = 'AD_0010';
td = '2020-03-06';
en = 5;
%%
mn = 'AD_0011';
td = '2020-06-03';
en = 2;
serverRoot = expPath(mn, td, en);
colors = {'blue', 'violet'};
computeWidefieldTimestamps(serverRoot, colors);
%%
mn = 'AD_0011';
td = '2020-05-15';
en = 2;
%%
mn = 'NS_0005';
td = '2020-07-23';
en = 1;
% just a couple events
% time 650, vis ctx - this is one
%% AD_0006\2019-12-13\5
mn = 'AD_0006';
td = '2019-12-13';
en = 5;
%% % DPR_0008 2020-09-02 fullfieldContrastCheckerboard
mn = 'DPR_0008';
td = '2020-09-02';
en = 1;
gt = 'Ai195;Snap25-Cre;Slc17a7-FlpO';
%% %
mn = 'ZYE_0009';
td = '2020-08-17';
en = 1;
gt = 'Ai195;Snap25-Cre;Slc17a7-FlpO';
%% %
mn = 'ZYE_0010';
td = '2020-08-17';
en = 1;
gt = 'Ai195;Snap25-Cre;Slc17a7-FlpO';
%% % ZYE_0019 2020-12-01 fullfieldContrastCheckerboard
mn = 'ZYE_0019';
td = '2020-12-01';
en = 2;
gt = 'Slc17a7-Cre;PHP-flex-jGCaMP7f';
%% ZYE_0012 2020-10-16 fullfieldContrastCheckerboard
mn = 'ZYE_0012';
td = '2020-10-16';
en = 1;
gt = 'Ai210;Slc17a7-Cre;PHP-syn-FlpO';
%% ZYE_0003 2020-06-26 fullfieldContrastCheckerboard
mn = 'ZYE_0003';
td = '2020-06-19';
en = 1;
gt = 'Ai162;Slc17a7-Cre';
%% ZYE_0018 2020-11-17
mn = 'ZYE_0018';
td = '2020-11-17';
en = 1;
gt = 'Ai203;Slc17a7-Cre';
%% DPR_0011 2020-10-28 fullfieldContrastCheckerboard
mn = 'DPR_0011';
td = '2020-10-28';
en = 2;
gt = 'Ai210;Slc17a7-Cre;PHP-syn-FlpO';
%% call the GUI
nSV = 200;
serverRoot = expPath(mn, td, en);
title = [mn ' ' td ' ' num2str(en) ' ' gt];
[U, V, t, mimg] = loadUVt(serverRoot, nSV);
epileptiformGUI(U, V, t, mimg, title);