treder / MVPA-Light

Matlab toolbox for classification and regression of multi-dimensional data
MIT License
70 stars 35 forks source link

Is there a way to plot the output of mv_statistics using mv_plot_topography? #44

Open glicalzi opened 8 months ago

glicalzi commented 8 months ago

Hello Matthias,

I've run a searchlight across channels and performed cluster-based permutation tests. When I use mv_plot_result, I get the following:

statistics_searchlight_animacy

Instead, I would like something like the following but with non-significant electrodes masked out (or significant electrodes highlighted with stars like in FieldTrip)

Searchlight_MVPA_animacy

This is the code I'm using: stat_searchlight_animacy = mv_statistics(cfg_stat,result_searchlight_animacy); average_searchlight_animacy = mv_combine_results(result_searchlight_animacy, 'average'); mv_plot_result(average_searchlight_animacy,'mask',stat_searchlight_animacy.mask),title('Animacy') % mv_plot_topography(cfg_plot, [?], layout.pos);

Is there a way to plot the output of mv_statistics using mv_plot_topography?

Thank you!

treder commented 6 months ago

H @glicalzi ! The mv_plot_topography function relies on spatial interpolation of data across channels, which would be more complex with channels missing. I think the best to do is simply mark the missing channels, you can use the key 'mark_chans' for it and you provide a vector where 1 signifies a marked channel. Currently channels are marked with a + but you can change l.151 to mark it in any other way. Hope this information is useful (albeit late!)