[Eeglablist] Trouble running AMICA

Nike gnanateja nikegnanateja at gmail.com
Mon Oct 23 12:31:24 PDT 2017


Hi Eric,

I used to get similar errors before with the GUI. For some reason, the
version through GUI needs pre-existing parameter files in the directory.
Try using the below code to run AMICA.
Hope this helps.
%%%%%%%%%%%%%%%%%%%%
directory = 'K:\'; % Change this directory to where you want to place the
results of AMICA
seeg = ALLEEG(i); % Change i to the dataset number you want to run AMICA on
[weights, sphere,mods] = runamica15(seeg.data, 'numprocs' , 2,
'max_threads', 4);
EEG.etc.amicaResultStructure = loadmodout15(directory);
EEG.icaweights = EEG.etc.amicaResultStructure.W;
 EEG.icasphere  = EEG.etc.amicaResultStructure.S;
EEG = eeg_checkset(EEG, 'ica');
EEG.icaact = (EEG.icaweights*EEG.icasphere)*EEG.data(EEG.icachansind,:);
eeglab redraw
%%%%%%%%%%%%%%%%%%%%%%%

Best
Nike

On Tue, Oct 24, 2017 at 12:30 AM, <eeglablist-request at sccn.ucsd.edu> wrote:

> Send eeglablist mailing list submissions to
>         eeglablist at sccn.ucsd.edu
>
> To subscribe or unsubscribe via the World Wide Web, visit
>         https://sccn.ucsd.edu/mailman/listinfo/eeglablist
> or, via email, send a message with subject or body 'help' to
>         eeglablist-request at sccn.ucsd.edu
>
> You can reach the person managing the list at
>         eeglablist-owner at sccn.ucsd.edu
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of eeglablist digest..."
>
> Today's Topics:
>
>    1. Re: Trouble running AMICA (Tarik S Bel-Bahar)
>
>
> ---------- Forwarded message ----------
> From: Tarik S Bel-Bahar <tarikbelbahar at gmail.com>
> To: Eric Rawls <elrawls at email.uark.edu>
> Cc: eeglablist <eeglablist at sccn.ucsd.edu>
> Bcc:
> Date: Sat, 21 Oct 2017 12:06:40 -0700
> Subject: Re: [Eeglablist] Trouble running AMICA
> Hi Eric, if you haven't yet, first google eeglablist and AMICA for past
> users who have had issues with running AMICA.
> Also feel free to pass the question on the AMICA developer Dr.Palmer, with
> extra details about your setup and steps.
> Once and if you find a solution please circle back to the list so that
> other users can learn from your experience/solution.
>
>
>
> On Wed, Oct 11, 2017 at 2:40 PM, Eric Rawls <elrawls at email.uark.edu>
> wrote:
>
>> Hi all,
>> I am interested in trying Jason Palmer's AMICA algorithm out but I am
>> having trouble getting it to run in any form. When I try running it from
>> the gui with defaut settings, I get the output:
>>
>> Found datfile
>> mkdir: /Users/admin/path_to_data/amicaout/: File exists
>>            1 processor name = local-705.local
>>            1 host_num =    125801682
>>  This is MPI process           1 of           1 ; I am process
>> 1 of
>>            1 on node: local-705.local
>>            1  : node root process           1 of           1
>> Processing arguments ...
>>  num_files =            2
>>  FILES:
>>  /Users/admin/path_to_data/data.fdt
>>  num_dir_files =            1           1
>>  initial matrix block_size =          128
>>  do_opt_block =            0
>>  blk_min =          256
>>  blk_step =          256
>>  blk_max =         1024
>>  number of models =            1
>>  max_thrds =            2
>>  use_min_dll =            1
>>  min dll =   1.000000000000000E-009
>>  use_grad_norm =            1
>>  min grad norm =   1.000000000000000E-007
>>  number of density mixture components =            3
>>  pdf type =            0
>>  max_iter =         2000
>>  Error: num_samples entries is less than num_files in paramfile
>> No gm present, setting num_models to 1
>> No W present, exiting
>> Reference to non-existent field 'W'.
>>
>> Error in runamica15 (line 873)
>>     weights = mods.W(:,:,1);
>>
>> Error in pop_runamica (line 239)
>>     [W,S,mods] = runamica15(datfile,arglist{:});
>>
>> Error while evaluating Menu Callback
>>
>>
>> When I call runamica15 ( [EEG.icaweights EEG.icasphere] =
>> runamica15(EEG)) directly, same message. I tried downloading the binary
>> again in case that was the issue but no luck. What am I doing wrong here?
>>
>> Eric Rawls
>> Graduate Research Assistant
>> University of Arkansas
>>
>> _______________________________________________
>> Eeglablist page: http://sccn.ucsd.edu/eeglab/eeglabmail.html
>> To unsubscribe, send an empty email to eeglablist-unsubscribe at sccn.uc
>> sd.edu
>> For digest mode, send an email with the subject "set digest mime" to
>> eeglablist-request at sccn.ucsd.edu
>>
>
>
> _______________________________________________
> eeglablist mailing list eeglablist at sccn.ucsd.edu
> Eeglablist page: http://www.sccn.ucsd.edu/eeglab/eeglabmail.html
> To unsubscribe, send an empty email to eeglablist-unsub at sccn.ucsd.edu
> To switch to non-digest mode, send an empty email to
> eeglablist-nodigest at sccn.ucsd.edu
>



-- 
G Nike Gnanateja <http://goog_636235333>
Ph.D Candidate,
Department of Audiology,
All India Institute of Speech
and Hearing Mysore-06
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sccn.ucsd.edu/pipermail/eeglablist/attachments/20171024/76e00551/attachment.html>


More information about the eeglablist mailing list