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

Sourcegrandaverage should also average the anatomy (when present) #2424

Open
robertoostenveld opened this issue Jun 11, 2024 · 2 comments
Open

Comments

@robertoostenveld
Copy link
Contributor

@henneysq is working on a script with 1. ft_sourceinterpolate and 2. ft_volumenormalise, followed by 3. ft_sourcegrandaverage. We identified that after 1 and 2 the anatomy is there, but after 3 not. And ft_sourcegrandaverage does not support a cell-array for cfg.parameter.

We can extend ft_sourcegrandaverage to support a cell-array, or perhaps to have it automatically average the anatomy (ignoring the inside).

@robertoostenveld
Copy link
Contributor Author

Another observation is that ft_sourcegrandaverage returns the averaged data (pow, anatomy, inside) as vectors rather than volumes,

@robertoostenveld
Copy link
Contributor Author

I recall that some of the FT main functions that work on source and/or volume data make use of private/parameterselection.m, and some not. Looking for that function may help to identify those functions that can work on one input parameter (like pow) or on multiple.

Regarding the vectors versus 3d arrays in the output: perhaps we can use something similar to the israw/istimelock that we have in other functions for reformatting the output to a representation that is consistent with the input.

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

No branches or pull requests

1 participant