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

pop_roi_connectplot erases EEG structure #82

Open
amisepa opened this issue Apr 12, 2024 · 3 comments
Open

pop_roi_connectplot erases EEG structure #82

amisepa opened this issue Apr 12, 2024 · 3 comments

Comments

@amisepa
Copy link
Collaborator

amisepa commented Apr 12, 2024

After computing POwer and FC at source level, I try to plot with
EEG = pop_roi_connectplot(EEG, 'measure', 'roipsd', 'plotcortex', 'on', 'freqrange', [8 13]);

And it gives this warning and erases everything...
Warning: EEG.roi.cortex does not contain the field "Faces" required to plot surface topographies.

@nguyen-td
Copy link
Collaborator

You could try our test_pipes/pipeline_connectivity.m test script that uses a source model with a compatible atlas (= one that contains a Faces field).

Sorry that it erases everything though, that shouldn’t happen. Not sure if that’s a Matlab thing but we can try to make it at least not delete the whole struct. Could you please also point me to the line where this error message is triggered in the function?

@amisepa
Copy link
Collaborator Author

amisepa commented Apr 12, 2024

I was using 'LORETA-Talairach-BAs.mat' to compute the leadfield matrix, whereas the pipeline uses 'head_modelColin27_5003_Standard-10-5-Cap339.mat'
But then pop_roi_activity uses the 'LORETA-Talairach-BAs' atlas. That's why I was using it for the field to match. Shouldn't they match?

NOte that Faces can be found in EEG.roi.leadfield.tri which may work with any atlas and avoid this issue since this is from leadfield.

@amisepa
Copy link
Collaborator Author

amisepa commented Apr 12, 2024

Actually it is empty with the Talairach atlas so that doesn't work. I'll just use the Colin atlas

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