External Email - Use Caution
Thank you for your prompt response! I've found out that a toolbox I was using before had a function also called "basename". I removed the toolbox and problem solved. Thank you very much for your help!
On Sun, Sep 2, 2018 at 1:23 PM Douglas Greve dgreve@mgh.harvard.edu wrote:
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 CautionDear 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 .datError 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 listFreesurfer@nmr.mgh.harvard.eduhttps://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
The information in this e-mail is intended only for the person to whom it is addressed. If you believe this e-mail was sent to you in error and the e-mail contains patient information, please contact the Partners Compliance HelpLine at http://www.partners.org/complianceline . If the e-mail was sent to you in error but does not contain patient information, please contact the sender and properly dispose of the e-mail.