[Eeglablist] ICA results are not applied after copying to new data set
Arnaud Delorme
arno at ucsd.edu
Thu Nov 6 02:26:04 PST 2014
Dear Becky,
Your code is fine and should run. Do not copy the icaact matrix though.
One issue might have to do with saving the changes and updating the EEGLAB interface.
[ALLEEG EEG CURRENTSET] = eeg_store(ALLEEG, EEG, CURRENTSET);
eeglab redraw;
Alternatively, use menu item (Edit > Dataset info) and you can copy ICA weight between datasets on this interface.
You may also look at what is generated in the EEGLAB history (eegh) if you want to integrate this into a script.
Arno
On Nov 4, 2014, at 8:41 PM, Makoto Miyakoshi <mmiyakoshi at ucsd.edu> wrote:
> Dear Becky,
>
> Other other day I also encountered weird behavior of eeg_checkset().
> I often copy EEG.icaweight and EEG.icasphere and run EEG = eeg_checkset(EEG, 'ica'); this usually creates EEG.icaact but it did not, so I needed to compute it my own.
>
> As a workaround, could you run the code without the last line? It should be sufficient.
>
> Makoto
>
> On Wed, Oct 29, 2014 at 11:39 AM, Becky Prince <becky.prince at york.ac.uk> wrote:
> Dear list,
>
> I've run ICA on a cleaned sets of data and then subtracted the components representing artifacts. I'm now trying to copy the ICA results for each subject into a different data set, but it isn't working - the ICA fields are copied successfully, but the channel data are unaffected by ICA (i.e. the removed ICs are still present in the data).
>
> Here's the code, where ALLEEG(1) is the data set with ICA applied and with components removed, and ALLEEG(2) is the data set that I would like to apply the ICA results to.
>
> ALLEEG(2).icaact = ALLEEG(1).icaact;
> ALLEEG(2).icawinv = ALLEEG(1).icawinv;
> ALLEEG(2).icasphere = ALLEEG(1).icasphere;
> ALLEEG(2).icaweights = ALLEEG(1).icaweights;
> ALLEEG(2).icachansind = ALLEEG(1).icachansind;
> ALLEEG(2).etc = ALLEEG(1).etc;
> ALLEEG(2) = eeg_checkset(ALLEEG(2));
>
> Can anyone tell me where I'm going wrong?
>
> Thanks!
> Becky
> ____________________________________________
>
> Becky Gilbert (nee Prince)
> PhD Researcher
>
> http://www.york.ac.uk/psychology/staff/postgrads/becky.gilbert/
> Lab C120
> Department of Psychology
> University of York
> Heslington, York, YO10 5DD, UK
>
> _______________________________________________
> 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
> _______________________________________________
> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sccn.ucsd.edu/pipermail/eeglablist/attachments/20141106/99103946/attachment.html>
More information about the eeglablist
mailing list