[Eeglablist] specifying window length for SIFT's pop_est_selModelOrder

Makoto Miyakoshi mmiyakoshi at ucsd.edu
Wed Aug 1 11:50:17 PDT 2018


Dear Tyler,

I'm disappearing from the list until November. This is my last reply.
Below I pasted code which is functional from my
pop_groupSIFT_runSiftBatch() (Note that I use SIFT1.33). I hope this sample
help you to figure out the problem.

Makoto

    % compute model order selection criteria...
    EEG = pop_est_selModelOrder(EEG,GUI_MODE, ...
        'modelingApproach',         ...
        {'Segmentation VAR'     ...
        'algorithm' {'Vieira-Morf'} ...
        'winStartIdx' []    ...
        'winlen'  WindowLengthSec    ...
        'winstep' WindowStepSizeSec  ...
        'taperfcn' 'blackmanharris'  ...
        'epochTimeLims' []      ...
        'prctWinToSample' 100   ...
        'normalize' {'method' {'time' 'ensemble'}} ...
        'detrend' {'method' 'constant'} ...
        'verb' VERBOSITY_LEVEL},      ...
        'morderRange',[1 30] ,  ...
        'downdate',true,        ...
        'runPll',[],            ...
        'icselector',{'sbc' 'aic' 'fpe' 'hq'},  ...
        'winStartIdx',[],       ...
        'epochTimeLims',[],     ...
        'prctWinToSample',100,   ...
        'plot', [], ...
        'verb', VERBOSITY_LEVEL);

On Wed, Aug 1, 2018 at 8:23 AM Tyler Grummett <
tyler.grummett at flinders.edu.au> wrote:

> Dear EEGLABers,
>
>
> Im having difficulties doing something which is probably really simple,
> and thats specifying certain variables when calling pop_est_selModelOrder
> programmatically (as I am running it in a super computer). I'm trying to
> specify window length ('winlen') at the very least, but found that I cant
> specify the window step (winstep) either.
>
>
> If I ran the code:
>
>
> EEG = pop_est_selModelOrder( EEG, 'nogui', 'verb', 1, ...
> 'winlen', 1, 'prctWinToSample', 100);
>
> I would get the error:
>
>
> Error using arg_define (line 406)
> Some of the specified arguments do not appear in the argument
> specification;
> {setname, filename, filepath, subject, group, condition, session, comments,
> nbchan, trials, pnts, srate, xmin, xmax, times, data, icaact, icawinv,
> icasphere,
> icaweights, icachansind, chanlocs, urchanlocs, chaninfo, ref, event,
> urevent,
> eventdescription, epoch, epochdescription, reject, stats, specdata,
> specicaact,
> splinefile, icasplinefile, dipfit, history, saved, etc, datfile,
> timeseries, CAT,
> winlen}.
>
> Error in est_selModelOrder (line 100)
> g = arg_define([0 1],varargin, ...
>
> Error in arg_report>arg_report_rich (line 153)
>     func(args{:});
>
> Error in arg_report>do_report (line 125)
>     feval(['arg_report_' lower(type)],func,args,have_expeval);
>
> Error in arg_report (line 93)
>     res = do_report(type,func,args);
>
> Error in pop_est_selModelOrder (line 104)
>     cfg =
>
> arg_tovals(arg_report('rich',fcnHandle,[{'EEG',ALLEEG(1)},varargin]),false);
>
> Eventually I found that if I wrote the following code:
>
>
> EEG.CAT.configs.est_selModelOrder = arg_tovals( arg_report( 'rich',
> @est_selModelOrder));
> EEG.CAT.configs.est_selModelOrder.modelingApproach.winlen = 1;
>
> And then ran the code without winlen:
>
> EEG = pop_est_selModelOrder( EEG, 'nogui', 'verb', 1, ...
> 'prctWinToSample', 100);
>
> then it would run without crashes, however, I feel that I shouldnt have to
> do that considering it says that it is one of the possible input arguments.
>
> Ive also tried this variation (just to spitball):
>
>
> EEG = pop_est_selModelOrder( EEG, 'nogui', 'verb', 1, ...
> 'modelingApproach', { 'winlen', 1}, 'prctWinToSample', 100);
>
> but that obviously didnt work.
>
>
> I would appreciate any help on this! Let me know if you need me to write a
> bug report on this.
>
>
> Kind regards,
>
> Tyler
>
>
> *************************
>
> *Tyler Grummett ( BBSc, BSc(Hons I))*
> *PhD Candidate*
> *Brain Signals Laboratory*
> *Multimodal Recording Facility*
> *Flinders University Tonsley Building*
> *Rm 4.17*
> *Ext 19573*
> _______________________________________________
> 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/20180801/dd14c085/attachment.html>


More information about the eeglablist mailing list