[Eeglablist] Reading in own channel locations
Michael ten Caat
mtc at cs.rug.nl
Fri Feb 13 09:19:40 PST 2004
Hello EEGLAB users,
I am experiencing troubles reading in data in the following format:
I looked up information in 'readlocs.m', but the addition of a new channel
format appears to me not to be as simple as stated.
Data format:
[channum, labels, channel label, sph_radius_besa , sph_theta_besa,
sph_phi_besa]
-----------------------------
1 Fp1 -68.09708400 -74.16761000 75.05997500
2 Fpz 67.20347600 90.00000000 74.84651200
3 Fp2 68.09708400 74.16761000 75.05997500
4 F7 -63.86862600 -41.98721300 74.92662800
5 F3 -37.16592400 -56.65929400 75.29276300
6 Fz 27.93714300 90.00000000 74.70609300
7 F4 35.86640900 57.03059800 75.27283500
8 F8 63.86862600 41.98721300 74.92662800
9 A1 -90.00000000 -0.00000000 77.00000000
10 T3 -56.94417600 -0.00000000 75.16648100
11 C3 -25.20112400 -0.00000000 75.15317500
etc
----------------------------
In 'readlocs.m' I read the lines
"
% to add a new channel format
% ---------------------------
% 1) add the format name at the end of the listtype variable list
% 2) enter the column type in a new list at the end of the listimportformat
variable
% 3) enter the number of lines to skip at the end of the listskiplines array
% Note: these infos are also used by writelocs() and pop_readlocs() but
% you do not have to edit these functions.
"
and do the following:
I conclude "listtype = {" with my self-made format 'lcs':
listtype = {
........
'elc' ...
'chanedit' ...
'lcs' };
(by the way, are the series of series of three point at the end of each line
really necessary in Matlab?)
In "listimportformat =" , I add the last lines:
listimportformat = { ...
......
{ } ... % eetrak format
{ 'channum' 'labels' 'theta' 'radius' 'X' 'Y' 'Z' 'sph_theta'
'sph_phi' 'sph_radius' } ... %chanedit format
{ 'channum' 'labels' 'sph_theta_besa' 'sph_phi_besa' 'sph_radius_besa'
} };
Furthermore, "listskipline" is changed to:
listskipline = [ ...
.....
0 ...
1 ... % skip the 2 lines header for the chanedit format (2 lines = 1 ????)
0]; % zero lines have to be skipped in my 'lcs' format
-------------------------
In EEGLAB: Edit > Dataset Info, I point my data file out in "Channel position
or array", but it does not work out. For completeness, I copied the errors
beneath under the header "PS". (The number of channels in the data is equal
to the number of channels in the channel location file.
Can someone please help me out? It is hard to imagine scalp mappings from data
without electrode positions, for instance.
Kind regards and thanks in advance,
Michael ten Caat
--
Michael ten Caat
Email: mtc at cs.rug.nl
Phone: +31 50 363 7127
Dep. of Mathematics and Computing Science, University of Groningen
P.O. Box 800
9700 AV Groningen, The Netherlands
---
PS:
eeglab: adding plugin "eegplugin_dipfit1_0" (see >> help eegplugin_dipfit1_0)
??? Error using ==> eeg_checkset
eeg_checkset: cannot process dataset without channel location file.
Pop_editset: channel locations file '/iwi200/home/users/mtc/EEGdata/129ch.lcs'
found
Readlocs: '' format detected from file extension
Readlocs warning: # of columns in file superior to # format entries
Warning: Future versions will return empty for empty == scalar comparisons.
Warning: Reference to uninitialized variable eloc in readlocs at line 488.
Warning: Reference to uninitialized variable eloc in readlocs at line 516.
Warning: Reference to uninitialized variable eloc in readlocs at line 520.
Warning: Reference to uninitialized variable eloc in readlocs at line 526.
Warning: coordinate conversion failed
Warning: Reference to uninitialized variable eloc in readlocs at line 532.
Readlocs: Automatically inserting electrode labels
Warning: Reference to uninitialized variable eloc in readlocs at line 534.
Warning: Reference to uninitialized variable eloc in readlocs at line 549.
Warning: Reference to uninitialized variable eloc in readlocs at line 579.
Warning: Reference to uninitialized variable eloc in readlocs at line 587.
Warning: One or more output arguments not assigned during call to 'readlocs'.
Done.
??? Error using ==> eeg_checkset
eeg_checkset: cannot process dataset without channel location file.
Pop_editset: channel locations file '/iwi200/home/users/mtc/EEGdata/129ch.lcs'
found
Readlocs: '' format detected from file extension
Readlocs warning: # of columns in file superior to # format entries
Warning: Future versions will return empty for empty == scalar comparisons.
Warning: Reference to uninitialized variable eloc in readlocs at line 488.
Warning: Reference to uninitialized variable eloc in readlocs at line 516.
Warning: Reference to uninitialized variable eloc in readlocs at line 520.
Warning: Reference to uninitialized variable eloc in readlocs at line 526.
Warning: coordinate conversion failed
Warning: Reference to uninitialized variable eloc in readlocs at line 532.
Readlocs: Automatically inserting electrode labels
Warning: Reference to uninitialized variable eloc in readlocs at line 534.
Warning: Reference to uninitialized variable eloc in readlocs at line 549.
Warning: Reference to uninitialized variable eloc in readlocs at line 579.
Warning: Reference to uninitialized variable eloc in readlocs at line 587.
Warning: One or more output arguments not assigned during call to 'readlocs'.
Done.
To save the EEGLAB command history >> pop_saveh(ALLCOM);
??? Index into matrix is negative or zero.
??? Error using ==> waitfor
Error while evaluating uicontrol Callback.
eeg_checkset warning: number of columns in data (129) does not match the
number of channels (0): corrected
eeg_checkset warning: 3rd dimension size of data (1) does not match the number
of epochs (0), corrected
eeg_checkset warning: number of columns in data (1000) does not match the
number of points (0): corrected
eeg_checkset note: upper time limit (xmax) adjusted so (xmax-xmin)*srate+1 =
number of frames
Creating a new dataset with index 1
Done.
Pop_editset: channel locations file '/iwi200/home/users/mtc/EEGdata/129ch.lcs'
found
Readlocs: '' format detected from file extension
Readlocs warning: # of columns in file superior to # format entries
Warning: Future versions will return empty for empty == scalar comparisons.
Warning: Reference to uninitialized variable eloc in readlocs at line 488.
Warning: Reference to uninitialized variable eloc in readlocs at line 516.
Warning: Reference to uninitialized variable eloc in readlocs at line 520.
Warning: Reference to uninitialized variable eloc in readlocs at line 526.
Warning: coordinate conversion failed
Warning: Reference to uninitialized variable eloc in readlocs at line 532.
Readlocs: Automatically inserting electrode labels
Warning: Reference to uninitialized variable eloc in readlocs at line 534.
Warning: Reference to uninitialized variable eloc in readlocs at line 549.
Warning: Reference to uninitialized variable eloc in readlocs at line 579.
Warning: Reference to uninitialized variable
>> eeglab: adding plugin "eegplugin_dipfit1_0" (see help eegplugin_dipfit1_0)
??? Error using ==> eeg_checkset
eeg_checkset: cannot process dataset without channel location file.
Pop_editset: channel locations file '/iwi200/home/users/mtc/EEGdata/129ch.lcs'
found
Readlocs: '' format detected from file extension
Readlocs warning: # of columns in file superior to # format entries
Warning: Future versions will return empty for empty == scalar comparisons.
Warning: Reference to uninitialized variable eloc in readlocs at line 488.
Warning: Reference to uninitialized variable eloc in readlocs at line 516.
Warning: Reference to uninitialized variable eloc in readlocs at line 520.
Warning: Reference to uninitialized variable eloc in readlocs at line 526.
Warning: coordinate conversion failed
Warning: Reference to uninitialized variable eloc in readlocs at line 532.
Readlocs: Automatically inserting electrode labels
Warning: Reference to uninitialized variable eloc in readlocs at line 534.
Warning: Reference to uninitialized variable eloc in readlocs at line 549.
Warning: Reference to uninitialized variable eloc in readlocs at line 579.
Warning: Reference to uninitialized variable eloc in readlocs at line 587.
Warning: One or more output arguments not assigned during call to 'readlocs'.
Done.
??? Error using ==> eeg_checkset
eeg_checkset: cannot process dataset without channel location file.
Pop_editset: channel locations file '/iwi200/home/users/mtc/EEGdata/129ch.lcs'
found
Readlocs: '' format detected from file extension
Readlocs warning: # of columns in file superior to # format entries
Warning: Future versions will return empty for empty == scalar comparisons.
Warning: Reference to uninitialized variable eloc in readlocs at line 488.
Warning: Reference to uninitialized variable eloc in readlocs at line 516.
Warning: Reference to uninitialized variable eloc in readlocs at line 520.
Warning: Reference to uninitialized variable eloc in readlocs at line 526.
Warning: coordinate conversion failed
Warning: Reference to uninitialized variable eloc in readlocs at line 532.
Readlocs: Automatically inserting electrode labels
Warning: Reference to uninitialized variable eloc in readlocs at line 534.
Warning: Reference to uninitialized variable eloc in readlocs at line 549.
Warning: Reference to uninitialized variable eloc in readlocs at line 579.
Warning: Reference to uninitialized variable eloc in readlocs at line 587.
Warning: One or more output arguments not assigned during call to 'readlocs'.
Done.
To save the EEGLAB command history pop_saveh(ALLCOM);
??? Index into matrix is negative or zero.
??? Error using ==> waitfor
Error while evaluating uicontrol Callback.
eeg_checkset warning: number of columns in data (129) does not match the
number of channels (0): corrected
eeg_checkset warning: 3rd dimension size of data (1) does not match the number
of epochs (0), corrected
eeg_checkset warning: number of columns in data (1000) does not match the
number of points (0): corrected
eeg_checkset note: upper time limit (xmax) adjusted so (xmax-xmin)*srate+1 =
number of frames
Creating a new dataset with index 1
Done.
Pop_editset: channel locations file '/iwi200/home/users/mtc/EEGdata/129ch.lcs'
found
Readlocs: '' format detected from file extension
Readlocs warning: # of columns in file superior to # format entries
Warning: Future versions will return empty for empty == scalar comparisons.
Warning: Reference to uninitialized variable eloc in readlocs at line 488.
Warning: Reference to uninitialized variable eloc in readlocs at line 516.
Warning: Reference to uninitialized variable eloc in readlocs at line 520.
Warning: Reference to uninitialized variable eloc in readlocs at line 526.
Warning: coordinate conversion failed
Warning: Reference to uninitialized variable eloc in readlocs at line 532.
Readlocs: Automatically inserting electrode labels
Warning: Reference to uninitialized variable eloc in readlocs at line 534.
Warning: Reference to uninitialized variable eloc in readlocs at line 549.
Warning: Reference to uninitialized variable eloc in readlocs at line 579.
Warning: Reference to uninitialized variable
??? eeglab: adding plugin "eegplugin_dipfit1_0" (see help eegplugin_dipfit1_0)
|
Error: Missing operator, comma, or semicolon.
More information about the Eeglablist
mailing list