forked from macvicab/MITT
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefaQCbuttons.m
111 lines (106 loc) · 4.55 KB
/
makefaQCbuttons.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
function faQC = makefaQCbuttons(ParentPanel,btn,Fsize)
% creates buttons on panel for Classification options
% called from MITT and ClassifyArrayGUI
faQC.Range = uicontrol('Style','checkbox',...
'Parent',ParentPanel,...
'String','set range (Cell number)',...
'Units','centimeters',...
'BackgroundColor','w',...
'FontSize',Fsize,...
'Position',[0 btn.num*btn.height btn.width*2 btn.height]);
faQC.nigood = uicontrol('Style','edit',...
'Parent',ParentPanel,...
'Units','centimeters',...
'FontSize',Fsize,...
'Position',[btn.width*2 btn.num*btn.height btn.width*0.5 btn.height]);
faQC.negood = uicontrol('Style','edit',...
'Parent',ParentPanel,...
'Units','centimeters',...
'FontSize',Fsize,...
'Position',[btn.width*2.5 btn.num*btn.height btn.width*0.45 btn.height]);
% use instrument correlation Data
btn.num = btn.num-1;
faQC.Correlation = uicontrol('Style','checkbox',...
'Parent',ParentPanel,...
'String','Correlation (%)',...
'Units','centimeters',...
'BackgroundColor','w',...
'FontSize',Fsize,...
'Position',[0 btn.num*btn.height btn.width*2 btn.height]);
% value for coherence threshold
faQC.Corthreshold = uicontrol('Style','edit',...
'Parent',ParentPanel,...
'Units','centimeters',...
'FontSize',Fsize,...
'Position',[btn.width*2 btn.num*btn.height btn.width*.95 btn.height]);
% use cross-correlation between adjacent time series
btn.num = btn.num-1;
faQC.xcorr = uicontrol('Style','checkbox',...
'Parent',ParentPanel,...
'String','xcorr adjacent cells (%)',...
'Units','centimeters',...
'BackgroundColor','w',...
'FontSize',Fsize,...
'Position',[0 btn.num*btn.height btn.width*2 btn.height]);
faQC.xcorrthreshold = uicontrol('Style','edit',...
'Parent',ParentPanel,...
'Units','centimeters',...
'FontSize',Fsize,...
'Position',[btn.width*2 btn.num*btn.height btn.width*.95 btn.height]);
% use Hurther Lemmin w1 w2
btn.num = btn.num-1;
faQC.w1w2xcorr = uicontrol('Style','checkbox',...
'Parent',ParentPanel,...
'String','Hurth/Lemm w1w2 noise ratio',...
'Units','centimeters',...
'BackgroundColor','w',...
'FontSize',Fsize,...
'Position',[0 btn.num*btn.height btn.width*2 btn.height]);
faQC.w1w2xcorrthreshold = uicontrol('Style','edit',...
'Parent',ParentPanel,...
'Units','centimeters',...
'FontSize',Fsize,...
'Position',[btn.width*2 btn.num*btn.height btn.width*.95 btn.height]);
% use percentage of Spikes
btn.num = btn.num-1;
faQC.Spikes = uicontrol('Style','checkbox',...
'Parent',ParentPanel,...
'String','Spike threshold (%)',...
'Units','centimeters',...
'BackgroundColor','w',...
'FontSize',Fsize,...
'Position',[0 btn.num*btn.height btn.width*2 btn.height]);
faQC.SpikeThreshold = uicontrol('Style','edit',...
'Parent',ParentPanel,...
'Units','centimeters',...
'FontSize',Fsize,...
'Position',[btn.width*2 btn.num*btn.height btn.width*.95 btn.height]);
% use InertialSlope (Jay)
btn.num = btn.num-1;
faQC.InertialSlope = uicontrol('Style','checkbox',...
'Parent',ParentPanel,...
'String','Slope of inertial subrange',...
'Units','centimeters',...
'BackgroundColor','w',...
'FontSize',Fsize,...
'Position',[0 btn.num*btn.height btn.width*2 btn.height]);
faQC.InertialSlopeThreshold = uicontrol('Style','edit',...
'Parent',ParentPanel,...
'Units','centimeters',...
'FontSize',Fsize,...
'Position',[btn.width*2 btn.num*btn.height btn.width*.95 btn.height]);
% use 3rd order polynomial fit
btn.num = btn.num-1;
faQC.PolyFilt = uicontrol('Style','checkbox',...
'Parent',ParentPanel,...
'String','3rd order Poly fit (z score)',...
'Units','centimeters',...
'BackgroundColor','w',...
'FontSize',Fsize,...
'Position',[0 btn.num*btn.height btn.width*2 btn.height]);
faQC.zscore = uicontrol('Style','edit',...
'Parent',ParentPanel,...
'Units','centimeters',...
'FontSize',Fsize,...
'Position',[btn.width*2 btn.num*btn.height btn.width*.95 btn.height]);
end