Menu

Error during sequential temporospatial PCA

Help
Isaac
2012-06-03
2013-02-26
  • Isaac

    Isaac - 2012-06-03

    I receive the following errors when trying to run a spatial PCA with Infomax rotation on temporal PCA factors (using the data from the tutorial):
    __________________________________________________________________________________
    "Error: PCA was not successful.  Binary ICA does not work if any part of the pathname (C:\Program Files\MATLAB\R2012a\bin) has a space in it."
    __________________________________________________________________________________

    When I tried just changing the EEGlab and working directory to have no spaces, I received the following error:
    __________________________________________________________________________________
    Warning: You have a binary ICA program installed.  The file is called: ica_linux
    There is not currently one that is appropriate for Windows.
    Warning: You have a binary ICA program installed.  The file is called: ica_linux
    There is not currently one that is appropriate for Windows.
    binica: using source file 'C:\EEGlab\functions\sigprocfunc\binica.sc'
    binica(): using binary ica file '?/C:\EEGlab\functions\resources\ica_linux'
    binica(): processing 4 (flag, arg) pairs.
       setting pca, 5
       setting verbose, on
    scriptfile = binica9501.sc

    Running ica from script file binica9501.sc
       Finding 5 components.
    'C:\EEGlab\functions\resources\ica_linux' is not recognized as an internal or external command,
    operable program or batch file.
    Error using floatread (line 148)
    floatread() fopen() error.

    Error in binica (line 325)
        wts = floatread(weightsfile,,,0);

    Error in ep_doPCA (line 537)
                 = binica(data', 'pca', NUM_FAC,
                'verbose', 'on','block',
                blocksize,'filenum',9501);

    Error in ep_doPCAst (line 332)
         = ep_doPCA('asis', ROTATION, ROTOPT,
        MAT_TYPE, NUM_FAC, theData, LOADING);

    Error in ep>pickPCAdata (line 4399)
                 = ep_doPCAst(theData.pca,
                PCArotation, EPmain.pca.rotopt, PCArel,
                EPmain.pca.facNum, PCAloading);

    Error while evaluating uitable CellSelectionCallback
    __________________________________________________________________________________

    Interestingly, the spatial PCA runs fine when selecting 0 factors to obtain a scree plot, but it fails when selecting to retain 5 factors.  I'm running Windows, so I didn't think it would try to run ica with binica.  What is the problem?

    Thanks for your help.

     
  • Joe Dien

    Joe Dien - 2012-06-03

    See tutorial for installation instructions.

     
  • Isaac

    Isaac - 2012-06-03

    Hmm, I've read the installation instructions in the tutorial several times, and I can't see where I've gone wrong.  Here is what I've done:

    1. Installed MATLAB
    2. Created a folder for Matlab Programs within the MATLAB installation folder
    3. Installed the latest EP Toolkit (and set paths in Matlab)
    4. Installed the latest EEGLAB (and set paths in Matlab)
    5. Installed the latest FieldTrip (and set paths in Matlab)
    6. Deleted the external FieldTrip folder as part of EEGLAB, and deleted the external EEGLAB folder as part of FieldTrip

    I chose to stay with runica and not install binica because binica does not appear to be available for Windows.  I also did not install the gcc compiler because I don't plan to do dipole analysis.  Finally, I did not install Satimage because it's not available for Windows.  What am I missing?

     
  • Joe Dien

    Joe Dien - 2012-06-03

    For some reason, the latest version of EEGlab comes set to use the linux version of binary ICA, which is why your run is crashing.  You need to change this since you're not running linux.  See the instructions on page 9.  If you wish to disable the binary file (which I recommend) then set ICABINARY = ;  See EEGlab documentation fore more information.

     
  • Joe Dien

    Joe Dien - 2012-06-03

    I mean page 11.

     

Log in to post a comment.