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

Error Message in MEG source localisation Tutorial #46

Open
ingaac opened this issue Nov 25, 2024 · 3 comments
Open

Error Message in MEG source localisation Tutorial #46

ingaac opened this issue Nov 25, 2024 · 3 comments
Assignees

Comments

@ingaac
Copy link

ingaac commented Nov 25, 2024

Hello!

I'm working through the MEG source localisation tutorial as described here: https://www.fil.ion.ucl.ac.uk/spm/docs/tutorials/MEEG/meg_sloc/, using the data linked in the tutorial (Preprocessed MEG data (SPM12 format): cdbespm12_SPM_CTF_MEG_example_faces1_3D.zip).

While following the tutorial instructions for simulating data using the "Simulation of sources" module, I receive an error message indicating that the forward model is missing. Specifically, after setting up the simulation parameters as per the tutorial, when I click the Run button in the batch editor, I get the following error:

"Error using spm_cfg_eeg_inv_simulate>run_simulation (line 213)
Forward model is missing for subject 1
In file "/Users/inga/Downloads/spm12/config/spm_cfg_eeg_inv_simulate.m" (v6926), function "run_simulation" at line 213.

The following modules did not run:
Failed: Simulation of sources"

Is the forward model supposed to be precomputed in the provided sample dataset for this tutorial? The tutorial does not mention computing the forward model as a prerequisite for this step, so I am unsure if this is an oversight or if I have missed a step.

I would appreciate any help in resolving this issue. As I'm new to SPM, it's possible that I might be making an error due to my inexperience with the software, but I'd like to double-check this all the same.

Thank you!

@tierneytim
Copy link
Collaborator

Hi @ingaac,

Sorry you ran into issues,
Could you tell us whether you are working with the SPM that is available here on GitHub or an older version?

@ingaac
Copy link
Author

ingaac commented Nov 26, 2024

Hi Tim! I'm working with Version 24.1.0.2689473 (R2024a) Update 6
And I'm using macOS Monterey Version 12.5.1 (21G83)

@barnesgr123
Copy link
Contributor

Dear Ingaac,
It looks like it is expecting you to have set up a forward model. Apologies this was missing from the instructions.
Could you please try pressing the 'Source Reconstruction' button on the front panel, setting up a forward model for these data (eg Single Shell) then try again and see what happens please.
best
Gareth

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

3 participants