2014-03-10
Adrien Peyrache
Recording in the anterior thalamus and the post-subiculum, left hemisphere.
Postsubiculum:
Electrode groups 1-7.
6 shank probe, Neuronexus Buz64sp design. Shank #1 is the most medial, #6 the most lateral, group #7 made of the four sites located above 4th shank (see design).
Approx depth from surface: 1.28mm
Anterior thalamus:
Electrode groups 8-11.
4 shank probe, Neuronexus Buz32 design. Shank #8 is the most lateral, #11 the most medial.
Approx depth from surface: 2.56mm
16
96
20000
20
1000
0
1250
33
40
32
41
35
38
34
39
37
36
43
20
42
18
45
17
44
16
47
46
21
27
22
31
24
30
25
29
26
28
23
11
19
8
13
6
9
7
5
4
10
53
12
52
15
51
14
50
48
49
54
63
55
62
56
61
57
60
58
59
0
3
2
1
80
83
82
81
84
92
88
90
85
86
89
94
91
87
93
95
72
75
64
71
73
69
65
67
77
78
79
76
66
74
68
70
33
40
32
41
35
38
34
39
37
36
32
16
3
43
20
42
18
45
17
44
16
47
46
32
16
3
21
27
22
31
24
30
25
29
26
28
32
16
3
23
11
19
8
13
6
9
7
5
4
32
16
3
10
53
12
52
15
51
14
50
48
49
32
16
3
54
63
55
62
56
61
57
60
58
59
32
16
3
0
3
2
1
32
16
3
80
83
82
81
84
92
88
90
32
16
3
85
86
89
94
91
87
93
95
32
16
3
72
75
64
71
73
69
65
67
32
16
3
77
78
79
76
66
74
68
70
32
16
3
1
2
1
3
--
--
--
--
--
1
4
----
----
----
----
----
2
2
2
3
2
4
2
5
--------
--------
--------
--------
--------
2
6
----------
----------
----------
----------
----------
2
7
----------------------------
----------------------------
----------------------------
----------------------------
----------------------------
2
8
--
--
--
--
--
2
9
----
----
----
----
----
3
2
3
3
3
4
3
5
--
--
--
--
--
4
2
4
3
4
4
4
5
--
--
--
--
--
6
2
6
3
6
4
6
5
6
6
----
----
----
----
----
7
2
9
2
9
3
----
----
----
----
----
9
4
--------
--------
--------
--------
--------
9
5
----
----
----
----
----
9
6
----
----
----
----
----
9
7
----------------
----------------
----------------
----------------
----------------
9
8
------
------
------
------
------
8
2
8
3
--------
--------
--------
--------
8
4
--
--
--
--
8
5
----
----
----
----
0.2
32
16
0
#ffd1d2
#ffd1d2
#0080ff
0
0
1
#ffd1d2
#ffd1d2
#0080ff
1
0
2
#ffd1d2
#ffd1d2
#0080ff
2
0
3
#ffd1d2
#ffd1d2
#0080ff
3
0
4
#ff03f2
#ff03f2
#ff03f2
4
0
5
#ff03f2
#ff03f2
#ff03f2
5
0
6
#ff03f2
#ff03f2
#ff03f2
6
0
7
#ff03f2
#ff03f2
#ff03f2
7
0
8
#ff03f2
#ff03f2
#ff03f2
8
0
9
#ff03f2
#ff03f2
#ff03f2
9
0
10
#ff0004
#0080ff
#0080ff
10
0
11
#ff03f2
#ff03f2
#ff03f2
11
0
12
#ff0004
#0080ff
#0080ff
12
0
13
#ff03f2
#ff03f2
#ff03f2
13
0
14
#ff0004
#0080ff
#0080ff
14
0
15
#ff0004
#0080ff
#0080ff
15
0
16
#05e2ff
#05e2ff
#05e2ff
16
0
17
#05e2ff
#05e2ff
#05e2ff
17
0
18
#05e2ff
#05e2ff
#05e2ff
18
0
19
#ff03f2
#ff03f2
#ff03f2
19
0
20
#05e2ff
#05e2ff
#05e2ff
20
0
21
#6e07ff
#6e07ff
#6e07ff
21
0
22
#6e07ff
#6e07ff
#6e07ff
22
0
23
#ff03f2
#ff03f2
#ff03f2
23
0
24
#6e07ff
#6e07ff
#6e07ff
24
0
25
#6e07ff
#6e07ff
#6e07ff
25
0
26
#6e07ff
#6e07ff
#6e07ff
26
0
27
#6e07ff
#6e07ff
#6e07ff
27
0
28
#6e07ff
#6e07ff
#6e07ff
28
0
29
#6e07ff
#6e07ff
#6e07ff
29
0
30
#6e07ff
#6e07ff
#6e07ff
30
0
31
#6e07ff
#6e07ff
#6e07ff
31
0
32
#00ff84
#00ff84
#00ff84
32
0
33
#00ff84
#00ff84
#00ff84
33
0
34
#00ff84
#00ff84
#00ff84
34
0
35
#00ff84
#00ff84
#00ff84
35
0
36
#00ff84
#00ff84
#00ff84
36
0
37
#00ff84
#00ff84
#00ff84
37
0
38
#00ff84
#00ff84
#00ff84
38
0
39
#00ff84
#00ff84
#00ff84
39
0
40
#00ff84
#00ff84
#00ff84
40
0
41
#00ff84
#00ff84
#00ff84
41
0
42
#05e2ff
#05e2ff
#05e2ff
42
0
43
#05e2ff
#05e2ff
#05e2ff
43
0
44
#05e2ff
#05e2ff
#05e2ff
44
0
45
#05e2ff
#05e2ff
#05e2ff
45
0
46
#05e2ff
#05e2ff
#05e2ff
46
0
47
#05e2ff
#05e2ff
#05e2ff
47
0
48
#ff0004
#0080ff
#0080ff
48
0
49
#ff0004
#0080ff
#0080ff
49
0
50
#ff0004
#0080ff
#0080ff
50
0
51
#ff0004
#0080ff
#0080ff
51
0
52
#ff0004
#0080ff
#0080ff
52
0
53
#ff0004
#0080ff
#0080ff
53
0
54
#ffa200
#0080ff
#0080ff
54
0
55
#ffa200
#0080ff
#0080ff
55
0
56
#ffa200
#0080ff
#0080ff
56
0
57
#ffa200
#0080ff
#0080ff
57
0
58
#ffa200
#0080ff
#0080ff
58
0
59
#ffa200
#0080ff
#0080ff
59
0
60
#ffa200
#0080ff
#0080ff
60
0
61
#ffa200
#0080ff
#0080ff
61
0
62
#ffa200
#0080ff
#0080ff
62
0
63
#ffa200
#0080ff
#0080ff
63
0
64
#b76fff
#b76fff
#0080ff
64
0
65
#b76fff
#b76fff
#0080ff
65
0
66
#ff7f94
#ff7f94
#0080ff
66
0
67
#b76fff
#b76fff
#0080ff
67
0
68
#ff7f94
#ff7f94
#0080ff
68
0
69
#b76fff
#b76fff
#0080ff
69
0
70
#ff7f94
#ff7f94
#0080ff
70
0
71
#b76fff
#b76fff
#0080ff
71
0
72
#b76fff
#b76fff
#0080ff
72
0
73
#b76fff
#b76fff
#0080ff
73
0
74
#ff7f94
#ff7f94
#0080ff
74
0
75
#b76fff
#b76fff
#0080ff
75
0
76
#ff7f94
#ff7f94
#0080ff
76
0
77
#ff7f94
#ff7f94
#0080ff
77
0
78
#ff7f94
#ff7f94
#0080ff
78
0
79
#ff7f94
#ff7f94
#0080ff
79
0
80
#59ff7a
#59ff7a
#0080ff
80
0
81
#59ff7a
#59ff7a
#0080ff
81
0
82
#59ff7a
#59ff7a
#0080ff
82
0
83
#59ff7a
#59ff7a
#0080ff
83
0
84
#59ff7a
#59ff7a
#0080ff
84
0
85
#6bc4ff
#6bc4ff
#0080ff
85
0
86
#6bc4ff
#6bc4ff
#0080ff
86
0
87
#6bc4ff
#6bc4ff
#0080ff
87
0
88
#59ff7a
#59ff7a
#0080ff
88
0
89
#6bc4ff
#6bc4ff
#0080ff
89
0
90
#59ff7a
#59ff7a
#0080ff
90
0
91
#6bc4ff
#6bc4ff
#0080ff
91
0
92
#59ff7a
#59ff7a
#0080ff
92
0
93
#6bc4ff
#6bc4ff
#0080ff
93
0
94
#6bc4ff
#6bc4ff
#0080ff
94
0
95
#6bc4ff
#6bc4ff
#0080ff
95
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
spikesFromDatBool
1
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
Mouse28-140310
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
Mandatory
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.