2006-06-29
shige
16
104
20000
20
1000
0
1250
0
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
0
1
2
3
4
5
6
7
32
16
3
8
9
10
11
12
13
14
15
32
16
3
16
17
18
19
20
21
22
23
32
16
3
24
25
26
27
28
29
30
31
32
16
3
32
33
34
35
36
37
38
39
32
16
3
40
41
42
43
44
45
46
47
32
16
3
48
49
50
51
52
53
54
55
32
16
3
56
57
58
59
60
61
62
63
32
16
3
64
65
66
67
68
69
70
71
32
16
3
72
73
74
75
76
77
78
79
32
16
3
80
81
82
83
84
85
86
87
32
16
3
88
89
90
91
92
93
94
95
32
16
3
96
97
98
99
100
101
102
103
32
16
3
2
2
2
3
2
4
2
5
2
6
2
7
2
8
2
9
2
10
2
11
2
12
2
13
2
14
2
15
2
16
2
17
2
18
2
19
2
20
2
21
2
22
2
23
2
24
2
25
2
26
2
27
2
28
2
29
2
30
2
31
2
32
2
33
2
34
2
35
2
36
2
37
2
38
2
39
2
40
2
41
----
----
----
----
2
42
2
43
2
44
2
45
2
46
2
47
--
--
--
--
2
48
4
2
4
3
4
4
4
5
4
6
4
7
4
8
4
9
4
10
4
11
4
12
4
13
4
14
4
15
4
16
4
17
4
18
4
19
4
20
4
21
4
22
4
23
4
24
4
25
4
26
4
27
4
28
6
2
6
3
6
4
6
5
6
6
6
7
6
8
6
9
6
10
6
11
6
12
6
13
6
14
6
15
6
16
6
17
6
18
6
19
6
20
6
21
6
22
6
23
6
24
6
25
6
26
6
27
--
--
--
--
--
6
28
7
2
7
3
7
4
7
5
7
6
7
7
7
8
7
9
7
10
7
11
7
12
7
13
7
14
7
15
7
16
7
17
7
18
7
19
7
20
--
--
--
--
--
7
21
9
2
9
3
9
4
9
5
9
6
9
7
9
8
9
9
9
10
9
11
9
12
9
13
9
14
9
15
9
16
9
17
9
18
9
19
9
20
9
21
9
22
9
23
9
24
9
25
9
26
9
27
9
28
9
29
10
2
10
3
10
4
10
5
10
6
10
7
10
8
10
9
10
10
10
11
10
12
10
13
10
14
10
15
10
16
10
17
10
18
10
19
10
20
10
21
10
22
10
23
10
24
10
25
10
26
10
27
10
28
10
29
10
30
10
31
10
32
10
33
10
34
10
35
10
36
10
37
10
38
----------------
----------------
----------------
----------------
----------------
12
2
12
3
12
4
12
5
12
6
12
7
12
8
12
9
12
10
12
11
12
12
12
13
12
14
12
15
12
16
12
17
12
18
12
19
12
20
12
21
12
22
12
23
12
24
12
25
12
26
--
--
--
--
--
12
27
12
28
12
29
12
30
12
31
12
32
12
33
11
2
11
3
11
4
11
5
11
6
11
7
11
8
11
9
11
10
11
11
11
12
11
13
11
14
11
15
11
16
11
17
11
18
11
19
11
20
11
21
11
22
11
23
11
24
11
25
11
26
11
27
11
28
11
29
11
30
11
31
11
32
11
33
11
34
11
35
11
36
11
37
11
38
11
39
11
40
11
41
11
42
11
43
11
44
11
45
11
46
11
47
11
48
11
49
11
50
11
51
11
52
11
53
11
54
----------------------------
----------------------------
----------------------------
----------------------------
----------------------------
1
2
1
3
1
4
1
5
1
6
----
----
----
----
1
7
--
--
--
--
1
8
--
--
--
--
1
9
--
--
--
--
1
10
--
--
--
--
1
11
--
--
--
--
1
12
------
------
------
------
1
13
--
--
--
--
1
14
--
--
--
--
1
15
--
--
--
--
1
16
1
17
1
18
1
19
1
20
1
21
1
22
1
23
1
24
1
25
3
2
3
3
3
4
3
5
3
6
3
7
3
8
3
9
3
10
3
11
3
12
3
13
3
14
3
15
3
16
3
17
3
18
3
19
3
20
3
21
3
22
3
23
3
24
3
25
3
26
------------------
------------------
------------------
------------------
3
27
3
28
3
29
--
--
--
--
--
5
2
5
3
5
4
5
5
5
6
5
7
5
8
5
9
5
10
5
11
------------
------------
------------
------------
5
12
--
--
--
--
5
13
--
--
--
--
5
14
5
15
0.2
32
16
0
#ca5fff
#0080ff
#0080ff
0
0
1
#ca5fff
#0080ff
#0080ff
1
0
2
#ca5fff
#0080ff
#0080ff
2
0
3
#ca5fff
#0080ff
#0080ff
3
0
4
#ca5fff
#0080ff
#0080ff
4
0
5
#ca5fff
#0080ff
#0080ff
5
0
6
#ca5fff
#0080ff
#0080ff
6
0
7
#ca5fff
#0080ff
#0080ff
7
0
8
#945fff
#0080ff
#0080ff
8
0
9
#945fff
#0080ff
#0080ff
9
0
10
#945fff
#0080ff
#0080ff
10
0
11
#945fff
#0080ff
#0080ff
11
0
12
#945fff
#0080ff
#0080ff
12
0
13
#945fff
#0080ff
#0080ff
13
0
14
#945fff
#0080ff
#0080ff
14
0
15
#945fff
#0080ff
#0080ff
15
0
16
#5f5fff
#0080ff
#0080ff
16
0
17
#5f5fff
#0080ff
#0080ff
17
0
18
#5f5fff
#0080ff
#0080ff
18
0
19
#5f5fff
#0080ff
#0080ff
19
0
20
#5f5fff
#0080ff
#0080ff
20
0
21
#5f5fff
#0080ff
#0080ff
21
0
22
#5f5fff
#0080ff
#0080ff
22
0
23
#5f5fff
#0080ff
#0080ff
23
0
24
#5f94ff
#0080ff
#0080ff
24
0
25
#5f94ff
#0080ff
#0080ff
25
0
26
#5f94ff
#0080ff
#0080ff
26
0
27
#5f94ff
#0080ff
#0080ff
27
0
28
#5f94ff
#0080ff
#0080ff
28
0
29
#5f94ff
#0080ff
#0080ff
29
0
30
#5f94ff
#0080ff
#0080ff
30
0
31
#5f94ff
#0080ff
#0080ff
31
0
32
#5fcaff
#0080ff
#0080ff
32
0
33
#5fcaff
#0080ff
#0080ff
33
0
34
#5fcaff
#0080ff
#0080ff
34
0
35
#5fcaff
#0080ff
#0080ff
35
0
36
#5fcaff
#0080ff
#0080ff
36
0
37
#5fcaff
#0080ff
#0080ff
37
0
38
#5fcaff
#0080ff
#0080ff
38
0
39
#5fcaff
#0080ff
#0080ff
39
0
40
#5fffff
#0080ff
#0080ff
40
0
41
#5fffff
#0080ff
#0080ff
41
0
42
#5fffff
#0080ff
#0080ff
42
0
43
#5fffff
#0080ff
#0080ff
43
0
44
#5fffff
#0080ff
#0080ff
44
0
45
#5fffff
#0080ff
#0080ff
45
0
46
#5fffff
#0080ff
#0080ff
46
0
47
#5fffff
#0080ff
#0080ff
47
0
48
#5fff94
#0080ff
#0080ff
48
0
49
#5fff94
#0080ff
#0080ff
49
0
50
#5fff94
#0080ff
#0080ff
50
0
51
#5fff94
#0080ff
#0080ff
51
0
52
#5fff94
#0080ff
#0080ff
52
0
53
#5fff94
#0080ff
#0080ff
53
0
54
#5fff94
#0080ff
#0080ff
54
0
55
#5fff94
#0080ff
#0080ff
55
0
56
#94ff5f
#0080ff
#0080ff
56
0
57
#94ff5f
#0080ff
#0080ff
57
0
58
#94ff5f
#0080ff
#0080ff
58
0
59
#94ff5f
#0080ff
#0080ff
59
0
60
#94ff5f
#0080ff
#0080ff
60
0
61
#94ff5f
#0080ff
#0080ff
61
0
62
#94ff5f
#0080ff
#0080ff
62
0
63
#94ff5f
#0080ff
#0080ff
63
0
64
#ff4b4b
#0080ff
#0080ff
64
0
65
#ff4b4b
#0080ff
#0080ff
65
0
66
#ff4b4b
#0080ff
#0080ff
66
0
67
#ff4b4b
#0080ff
#0080ff
67
0
68
#ff4b4b
#0080ff
#0080ff
68
0
69
#ff4b4b
#0080ff
#0080ff
69
0
70
#ff4b4b
#0080ff
#0080ff
70
0
71
#ff4b4b
#0080ff
#0080ff
71
0
72
#ff964b
#0080ff
#0080ff
72
0
73
#ff964b
#0080ff
#0080ff
73
0
74
#ff964b
#0080ff
#0080ff
74
0
75
#ff964b
#0080ff
#0080ff
75
0
76
#ff964b
#0080ff
#0080ff
76
0
77
#ff964b
#0080ff
#0080ff
77
0
78
#ff964b
#0080ff
#0080ff
78
0
79
#ff964b
#0080ff
#0080ff
79
0
80
#ffe14b
#0080ff
#0080ff
80
0
81
#ffe14b
#0080ff
#0080ff
81
0
82
#ffe14b
#0080ff
#0080ff
82
0
83
#ffe14b
#0080ff
#0080ff
83
0
84
#ffe14b
#0080ff
#0080ff
84
0
85
#ffe14b
#0080ff
#0080ff
85
0
86
#ffe14b
#0080ff
#0080ff
86
0
87
#ffe14b
#0080ff
#0080ff
87
0
88
#d2ff4b
#0080ff
#0080ff
88
0
89
#d2ff4b
#0080ff
#0080ff
89
0
90
#d2ff4b
#0080ff
#0080ff
90
0
91
#d2ff4b
#0080ff
#0080ff
91
0
92
#d2ff4b
#0080ff
#0080ff
92
0
93
#d2ff4b
#0080ff
#0080ff
93
0
94
#d2ff4b
#0080ff
#0080ff
94
0
95
#d2ff4b
#0080ff
#0080ff
95
0
96
#ff1904
#0080ff
#0080ff
96
0
97
#fff703
#0080ff
#0080ff
97
0
98
#000026
#0080ff
#0080ff
98
0
99
#000026
#0080ff
#0080ff
99
0
100
#beb4ff
#0080ff
#0080ff
100
0
101
#4c4cff
#0080ff
#0080ff
101
0
102
#000026
#0080ff
#0080ff
102
0
103
#ffffff
#0080ff
#0080ff
103
0
process_calcThreshold
executeScriptBool
1
Mandatory
rmsWindowLength
2
Mandatory
useage:
process_calcThreshold fileBaseName electrodeNumber
This script calculates the spike detection threshold and puts it in the file fileBaseName.threshold.electrodeNumber
parameters:
- executeScriptBool determines whether the script should be run with the next batch process.
- rmsWindowLength represents the root mean square (rms) integration window for detection.
process_detectSpikes
executeScriptBool
1
Mandatory
thresholdFactor
7
Mandatory
refractoryPeriod
8
Mandatory
rmsWindowLength
2
Mandatory
peakWindowLength
10
Mandatory
windowPeakAlign
5
Mandatory
This script does the following:
* detects the spikes (creates the .res.# file),
* aligns the peaks,
* gets the waveforms (creates the .spk.# file),
The variables used by the different programs called in this script depend on the sampling rate. The default is for a sampling rate of 10khz.
All the script parameters are multiplifaction factor of 10khz except the thresholdFactor.
parameters:
- executeScriptBool determines whether the script should be run with the next batch process.
- refractoryPeriod represents the after detection, how many samples to skip before detecting a new spike if one is detected.
- rmsWindowLength represents the root mean square (rms) integration window for detection.
- peakWindowLength represents the window (number of samples to test) to search for spike peak, seams to be used for eigen calculation or finding of the true spike peak.
- windowPeakAlign represents the middle of the peakWindowLength, where to take the spike peak in peakWindowLength.
- thresholdFactor is a factor to compute the detection threshold:
threshold = thresholdFactor * baseline
process_findCommonThreshold
executeScriptBool
1
Mandatory
maxThreshold
Mandatory
useage:
process_findCommonThreshold fileBaseName [fileBaseName ...]
for each electrodeGroup in fileBaseName.xml
the value in fileBaseName.threshold.electrodeGroup is replaced by the minimum threshold value across passed fileBaseNames.
parameters:
- executeScriptBool determines whether the script should be run with the next batch process.
- maxThreshold default = 500
process_merge
executeScriptBool
1
Mandatory
mergeBaseName
EE0627fm
Mandatory
process_merge
usage:
process_merge -n $mergeBaseName $fileBaseNames
merges .spk .res etc for multi-file clustering.
parameters:
- executeScriptBool determines whether the script should be run with the next batch process.
- mergeBaseName designates the fileBaseName of the merged files.
*** Requirements ***
* calls process_pca_light : to do pca without presence of .fil file
* calls pproc
* each fileBaseName.* must be in a directory fileBaseName - which can be performed by process_dirFiles
process_mhipass
executeScriptBool
1
Mandatory
frequency
800
Mandatory
libraryPath
/u16/local/matlab6.5/extern/lib/glnx86:/u16/local/matlab6.5/bin/glnx86:/u16/local/matlab6.5/sys/os/glnx86
Mandatory
This script does the high-pass filtering for subsequent spike extraction. The .fil file is created by the program called in this script.
The frequency parameter is the lowest frequency cut off.
The highest frequency is computed based on the sampling rate as 0.95 % of the Nyquist frequency:
sampling rate * 0.5 * 0.95
The program called in this script is currently a matlab program, therefore this part of the process relies on Matlab until this program is rewritten.
parameters:
- executeScriptBool determines whether the script should be run with the next batch process.
- libraryPath is the path for Matlab.
process_mlopass
executeScriptBool
1
Mandatory
libraryPath
/u16/local/matlab6.5/extern/lib/glnx86:/u16/local/matlab6.5/bin/glnx86:/u16/local/matlab6.5/sys/os/glnx86
Mandatory
This script does the low-pass filtering (for local field potentials). The .eeg file is created by the program called in this script.
It calls a resampling program which first apply an anti aliasing low pass filter to the data and then samples down to the local field potential sampling rate provided in the parameter file.
The resampling program is currently a matlab program, therefore this part of the process relies on Matlab until this program is rewritten.
parameters:
- executeScriptBool determines whether the script should be run with the next batch process.
- libraryPath is the path for Matlab.
process_multi_start
cpFirstXmlBool
1
Mandatory
rmFilFileBool
1
Optional
This script starts eeg and spike data processing on a list of input fileBaseNames
This script is called by:
process_multi_start fileBaseName [fileBaseNames]
Parameters:
- rmFilFileBool
1 = remove the high pass filtered .fil file to save space
- cpFirstXmlBool
1 = copy the xml file from the first fileBaseName to all other fileBaseNames to save time
* Note that ideally the common threshold would be for single channels rather than single electrodes (may be a problem of process_baseline)
process_mvFiles2Dirs
executeScriptBool
1
Mandatory
This script organizes files in preparation for process_merge by moving fileBaseName.* into a directory fileBaseName
useage:
process_mvFiles2Dirs fileBaseName
parameters:
- executeScriptBool determines whether the script should be run with the next batch process.
process_pca
executeScriptBool
1
Mandatory
beforePeak
4
Mandatory
afterPeak
4
Mandatory
nSamplesInPCA
16
Mandatory
This script performs the principle component analysis (PCA ). It computes the variance (creates the .m1m2.# file) and creates the .fet.# and .mm.# files.
The variables used to compute the PCA depend on the sampling rate. The default is for a sampling rate of 10khz.
The parameters in the parameter file are multiplifaction factor of 10khz.
parameters:
- executeScriptBool determines whether the script should be run with the next batch process.
- beforePeak represents the number of samples before peak to be used for the PCA. There is one value for all the electrodes.
- afterPeak represents the number of samples after peak to be used for the PCA. There is one value for all the electrodes.
- nSamplesInPCA represents the number of samples used for PCA. There is one value for all the electrodes.
updateParFile
executeScriptBool
1
Mandatory
samplesInWaveform
16
Mandatory
peakSample
8
Mandatory
This script updates the parameter file.
It adds for each spike group, the number of samples in each waveform, the sample index of the peak in a waveform and the number of feaures to use to do the PCA.
The variables used by the different programs depend on the sampling rate. The default is for a sampling rate of 10khz.
All the script parameters are multiplifaction factor of 10khz.
parameters:
- executeScriptBool determines whether the script should be run with the next batch process.
- The parameter samplesInWaveform represents the number of samples in each waveform .
- The parameter peakSample represents the sample index of the peak in a waveform.
1
EE.080
EE.081
EE.082
EE.083
EE.084
EE.085
EE.086
EE.087
EE.088
EE.089