You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bem.make_watershed_bem with gcatlas fails on default Freesurfer 8 processing #13166
It appears that Freesurfer 8's shift to synthstrip by default no longer generates the talairach_with_skull.lta file necessary for bem.make_watershed_bem to run with gcaatlas=True. The missing file can be created by running the following command.
Not sure whether we should add this step as a check in the function and run before the mri_watershed or perhaps just check if the file exists and then advise user to run the command separately on failure.
Steps to reproduce
Run Freesurfer v.8.0: recon-all -s {subj} -I {dicom_path} -all
attempt to run watershed from python with gcaatlas: mne.bem.make_watershed_bem(subject, sourcepath, overwrite=True, atlas=True, gcaatlas=True, show=True)
Function mne.bem.make_watershed_bem when given gcatlas=True would run mri_watershed and create the BEM.
Actual results
Function mne.bem.make_watershed_bem when given gcatlas=True fails.
Additional information
I can probably do a PR to fix, just curious how everyone feels about 1. should we run the mri_em_register for the user if file is missing or 2. error out and advise them to run command?
Hmmm... I think my vote would be to try to generate the file if it's missing, and add a note to gcaatlas param in the docstring saying that with FreeSurfer 8+ we will try to generate the necessary file. @pmolfese you up for making a PR to fix it?
Activity
larsoner commentedon Mar 22, 2025
Hmmm... I think my vote would be to try to generate the file if it's missing, and add a note to
gcaatlasparam in the docstring saying that with FreeSurfer 8+ we will try to generate the necessary file. @pmolfese you up for making a PR to fix it?pmolfese commentedon Mar 24, 2025
I'll give it a shot this week!