Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
glicalzi opened this issue Mar 25, 2024 · 1 comment

Comments

@glicalzi
Copy link

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
Copy link
Owner

treder commented May 6, 2024

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!)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants