[FieldTrip] Permutation test

Zhen Ni nzhen340 at gmail.com
Tue Jun 9 12:49:52 CEST 2020


Thank you very much, Tom.
It's working now!

Zhen

On Tue, Jun 9, 2020 at 6:12 AM Tom Marshall <tom.marshall at psy.ox.ac.uk>
wrote:

> Hi Zhen,
>
> I've encountered a similar error before. Does it help if you add this line
> to your cfg?
>
> *cfg.spmversion = 'spm12';*
>
> Best,
> Tom
> ------------------------------
> *From:* fieldtrip <fieldtrip-bounces at science.ru.nl> on behalf of Zhen Ni <
> nzhen340 at gmail.com>
> *Sent:* 08 June 2020 21:30
> *To:* fieldtrip at science.ru.nl <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);
> _______________________________________________
> fieldtrip mailing list
> https://mailman.science.ru.nl/mailman/listinfo/fieldtrip
> https://doi.org/10.1371/journal.pcbi.1002202
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20200609/386caddb/attachment.htm>


More information about the fieldtrip mailing list