[FieldTrip] Unable to mask sub-threshold statistics when plotting with ft_sourceplot

Tzvetan Popov tzvetan.popov at uni-konstanz.de
Wed Nov 18 14:17:31 CET 2020


Dear Alex,

Can you please check 
1. Is your mask containing 0 and 1 or only 0
2. Can you use ft_sourceplot with method ‘ortho’ and report whether you see your desired result

If the answer to 1 and 2 is yes, I suggest using ft_volumenormalise prior to ft_sourceplot with the method ’surface’. Make 2 calls to ft_volumenormalise for cfg.parameter = ’stat’; and cfg.parameter = ‘mask’;

Hope this works.
Good luck
tzvetan


> On 17 Nov 2020, at 20:00, Aabedi, Alexander <Alexander.Aabedi at ucsf.edu> wrote:
> 
> Hi FieldTrip community!
> 
> My name is Alex Aabedi. I'm a medical student at the University of California San Francisco researching speech responses in patients with brain tumors undergoing invasive electrophysiology. I'm very excited and grateful to be joining the FieldTrip ecosystem to perform our analyses.
> 
> I'm having trouble masking the subthreshold t-statistics I derived from ft_freqstatistics with ft_sourceplot. It appears that ft_sourceplot is ignoring the cfg.maskparameter call altogether (for instance, I don't get an error even if I specify a non-existent field in my stats structure). It looks like a colleague asked a similar question back in 2015 (https://mailman.science.ru.nl/pipermail/fieldtrip/2015-February/008924.html <https://mailman.science.ru.nl/pipermail/fieldtrip/2015-February/008924.html>) but I don't see a response.
> 
> Here's a snippet of the code used to generate the sourceplot. It works fine, except it doesn't mask the channels with 0s in the mask field. The 'stats' structure (and all subfields) in the ft_sourceplot call is directly from ft_freqstatistics. I also tried masking with a dummy mask with all zeros, but to no avail. 
> 
> cfg              = [];
> cfg.funparameter = 'stat';
> cfg.maskparameter = 'mask';
> cfg.funcolormap = 'jet';
> cfg.funcolorlim  = [-4 4];
> cfg.method       = 'surface';
> cfg.interpmethod = 'sphere_weighteddistance';
> cfg.sphereradius = 8;
> cfg.camlight     = 'no';
> ft_sourceplot(cfg, stats, mesh);
> view([-90 20]);
> material dull;
> lighting gouraud;
> camlight;
> 
> Thank you so much for the support.
> 
> All the best,
> Alex Aabedi
> 
> _______________________________________________
> fieldtrip mailing list
> https://mailman.science.ru.nl/mailman/listinfo/fieldtrip <https://mailman.science.ru.nl/mailman/listinfo/fieldtrip>
> https://doi.org/10.1371/journal.pcbi.1002202 <https://doi.org/10.1371/journal.pcbi.1002202>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20201118/32da8642/attachment.htm>


More information about the fieldtrip mailing list