[FieldTrip] Permutation test

hanqiuishere hanqiuishere at 163.com
Tue Jun 9 11:35:12 CEST 2020


An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20200609/14bf0324/attachment.htm>
-------------- next part --------------
Hi,
About the mex file problem, Spm provide another version of spm8 to solve this in the faq sesseion in its website. And I also tried to delete all fieldtrip folder and fieldtrip paths in MATLAB, then downloaded a new one, it also succeeded. Hope that helps.


best,
Qiu

-------- Original message --------
Sender: Zhen Ni <nzhen340 at gmail.com>
Time: 2020/6/9 04:31
To: fieldtrip <fieldtrip at science.ru.nl>
 Subject: [FieldTrip] Permutation test

>Hello,
>
>My name is Zhen Ni. I'm a senior research fellow working at the National Institutes of Health.
>
>I'm using FieldTrip (version 20200423) to perform a cluster-based permutation test. My script is largely based on the example you showed on the FieldTrip webpage. The script stopped after a while with a technical problem. I copied the error message below.
>
>I also tried following your instruction and used the dataset you uploaded on the webpage. The same error message comes out. I wonder if you may take a look at my codes and help me out.
>
>
>Many thanks.
>
>Zhen
>
>
>
>
>Invalid MEX-file '/Users/nz/Documents/MATLAB/external/spm8/spm_bwlabel.mexmaci64':
>
>dlopen(/Users/nz/Documents/MATLAB/external/spm8/spm_bwlabel.mexmaci64, 6): Library
>
>not loaded: @loader_path/libmex.dylib
>
>  Referenced from: /Users/nz/Documents/MATLAB/external/spm8/spm_bwlabel.mexmaci64
>
>  Reason: image not found
>
>
>Error in findcluster (line 87)
>
>    [labelmat(spatdimlev, :, :), num] = spm_bwlabel(double(reshape(onoff(spatdimlev,
>
>    :, :), nfreq, ntime)), 6); % the previous code contained a '4' for input
>
>
>Error in clusterstat (line 202)
>
>      posclusobs = findcluster(reshape(postailobs,
>
>      [cfg.dim,1]),channeighbstructmat,cfg.minnbchan);
>
>
>Error in ft_statistics_montecarlo (line 353)
>
>  [stat, cfg] = clusterstat(cfg, statrand, statobs);
>
>
>Error in ft_timelockstatistics (line 184)
>
>  [stat, cfg] = statmethod(cfg, dat, design);
>


More information about the fieldtrip mailing list