are you using matlab or octave? If matlab, which version? The problem appears to be with the "basename" function, which I wrote in fsfast. It may be that a function of that name already exists in your path and selxavg is not calling my function. You can try putting $FREESURFER_HOME/fsfast/toolbox as the first directory in the matlab path and see if it fixes it.

On 9/1/18 3:45 PM, Addison Wu wrote:

        External Email - Use Caution        

Dear List,

I'm trying to use an external regressor to analyze fs-fast tutorial data. I understand a paradigm file would be the sane way to do it, but I'm just trying to understand how external regressors work.
I first created a Extreg.dat file for each run of sess01, which contains a 142*5 matrix, saved it in the "00x" run folder. Then I ran mkanalysis-sess command:

mkanalysis-sess \

-fsd bold  -stc up  -surface fsaverage rh \

-fwhm 5 -notask -TR 2 -taskreg Extreg.dat  1  \

-nskip 4 -analysis test.rh -force -per-run


And a selxavg3-sess command:

selxavg3-sess -s sess01 -analysis test.rh


But I got an error report of this:

Extension format = nii.gz

INFO: key nSliceGroups unrecognized, line 11, skipping

Error using basename

Too many input arguments.


Error in fast_ldanaflac (line 437)

    taskregevname = basename(taskreg,'dat'); % remove .dat


Error in fast_selxavg3b (line 107)

  flac0 = fast_ldanaflac(analysis);

 

437     taskregevname = basename(taskreg,'dat'); % remove .dat

K>> ------------------------------------------

ERROR: fast_selxavg3() failed\n


I've tried a bunch of things, including removing the ".dat" manually for the file, or in the command lines, or changing the "taskreg" to -1 or 5, but none of them worked.


Is there anyway I can solve the problem and use external regressors for the tutorial data?


Thank you!

Addison



_______________________________________________
Freesurfer mailing list
Freesurfer@nmr.mgh.harvard.edu
https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer