[Eeglablist] running into 'duplicate entry' error while trying to create a STUDY

Makoto Miyakoshi mmiyakoshi at ucsd.edu
Thu May 8 10:31:42 PDT 2014


Dear Isaiah,

I have no idea what happened there, but why don't you try my solution for
temporary solution.
I usually load all datasets into EEGLAB and using GUI I create STUDY. I
have never experienced any trouble in doing this.
Below is an example (note that in this case each subject's data are
contained in a folder; it's easier if you can collect them under one
folder).

cd /data/projects/Makoto/tic/ticSuppressionStudy
allFolders = dir('500*');
allFolders = allFolders(1:end);
for n = 1:length(allFolders)
    tmpFolder = allFolders(n).name;
    cd(tmpFolder)

    loadFile = dir('*_blinticDipEpoch.set');
    EEG = pop_loadset('filename', loadFile.name, 'filepath', pwd,
'loadmode', 'info');
    EEG.subject = tmpFolder;
    EEG.group   = 'control';

    [ALLEEG, EEG, CURRENTSET] = eeg_store( ALLEEG, EEG, 0 );

    cd ..
end
eeglab redraw

After running this, create STUDY using all loaded set files from GUI.

Makoto


2014-05-05 14:33 GMT-07:00 Isaiah Innis <isainnis at umail.iu.edu>:

> Hello all:
>
> When I try to create a STUDY in EEGLAB, I see the datasets loading in the
> command window and then the errors:
> "Duplicate entry detected in new design, reinitializing design with new
> file names"
> and "Note: duplicate 'key', 'val' parameter(s), keeping the last one(s)"
>  start looping. This happens whether I use the GUI or a script.
>
> I cannot find what I have done wrong; could someone shed some light on the
> issue?
>
> %Code below
> [STUDY ALLEEG] = std_editset( STUDY, ALLEEG, 'name','Object_Maintenance
> ','task','observation', 'commands',...
>     {...
>     {'index' 1 'load' 'C:\\Users\\Jazmine_Silver\\Documents\\EEG Lab
> Tech\\EEG Data
> Files\\MotionPerception\\PilotData\\Study01\\Datasets\\Subject101_study_oobg.set'
> 'subject' 'S101' 'condition' 'oobg'}...
>     {'index' 2 'load' 'C:\\Users\\Jazmine_Silver\\Documents\\EEG Lab
> Tech\\EEG Data
> Files\\MotionPerception\\PilotData\\Study01\\Datasets\\Subject102_study_oobg.set'
> 'subject' 'S102' 'condition' 'oobg'}...
>     {'index' 3 'load' 'C:\\Users\\Jazmine_Silver\\Documents\\EEG Lab
> Tech\\EEG Data
> Files\\MotionPerception\\PilotData\\Study01\\Datasets\\Subject103_study_oobg.set'
> 'subject' 'S103' 'condition' 'oobg'}...
>     {'index' 4 'load' 'C:\\Users\\Jazmine_Silver\\Documents\\EEG Lab
> Tech\\EEG Data
> Files\\MotionPerception\\PilotData\\Study01\\Datasets\\Subject101_study_oibg.set'
> 'subject' 'S101' 'condition' 'oibg'}...
>     {'index' 5 'load' 'C:\\Users\\Jazmine_Silver\\Documents\\EEG Lab
> Tech\\EEG Data
> Files\\MotionPerception\\PilotData\\Study01\\Datasets\\Subject102_study_oibg.set'
> 'subject' 'S102' 'condition' 'oibg'}...
>     {'index' 6 'load' 'C:\\Users\\Jazmine_Silver\\Documents\\EEG Lab
> Tech\\EEG Data
> Files\\MotionPerception\\PilotData\\Study01\\Datasets\\Subject103_study_oibg.set'
> 'subject' 'S103' 'condition' 'oibg'}...
>     {'index' 7 'load' 'C:\\Users\\Jazmine_Silver\\Documents\\EEG Lab
> Tech\\EEG Data
> Files\\MotionPerception\\PilotData\\Study01\\Datasets\\Subject101_study_orbg.set'
> 'subject' 'S101' 'condition' 'orbg'}...
>     {'index' 8 'load' 'C:\\Users\\Jazmine_Silver\\Documents\\EEG Lab
> Tech\\EEG Data
> Files\\MotionPerception\\PilotData\\Study01\\Datasets\\Subject102_study_orbg.set'
> 'subject' 'S102' 'condition' 'orbg'}...
>     {'index' 9 'load' 'C:\\Users\\Jazmine_Silver\\Documents\\EEG Lab
> Tech\\EEG Data
> Files\\MotionPerception\\PilotData\\Study01\\Datasets\\Subject103_study_orbg.set'
> 'subject' 'S103' 'condition' 'orbg'}...
>     {'index' 10 'load' 'C:\\Users\\Jazmine_Silver\\Documents\\EEG Lab
> Tech\\EEG Data
> Files\\MotionPerception\\PilotData\\Study01\\Datasets\\Subject101_study_ovbg.set'
> 'subject' 'S101' 'condition' 'ovbg'}...
>     {'index' 11 'load' 'C:\\Users\\Jazmine_Silver\\Documents\\EEG Lab
> Tech\\EEG Data
> Files\\MotionPerception\\PilotData\\Study01\\Datasets\\Subject102_study_ovbg.set'
> 'subject' 'S102' 'condition' 'ovbg'}...
>     {'index' 12 'load' 'C:\\Users\\Jazmine_Silver\\Documents\\EEG Lab
> Tech\\EEG Data
> Files\\MotionPerception\\PilotData\\Study01\\Datasets\\Subject103_study_ovbg.set'
> 'subject' 'S103' 'condition' 'ovbg'}...
>     }, 'updatedat', 'off' );
> %End of code
>
>
> Thank you,
> --
> Isaiah Innis
> Indiana University '13
> Lab Manager, IUB IRF
>
>
>
> _______________________________________________
> Eeglablist page: http://sccn.ucsd.edu/eeglab/eeglabmail.html
> To unsubscribe, send an empty email to
> eeglablist-unsubscribe at sccn.ucsd.edu
> For digest mode, send an email with the subject "set digest mime" to
> eeglablist-request at sccn.ucsd.edu
>



-- 
Makoto Miyakoshi
Swartz Center for Computational Neuroscience
Institute for Neural Computation, University of California San Diego
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sccn.ucsd.edu/pipermail/eeglablist/attachments/20140508/0b844266/attachment.html>


More information about the eeglablist mailing list