Hello!
I am trying to load MRI data after it has been processed by FreeSurfer.
I get the error below.
not sure what I am doing wring.
when opening the data on freesurfer, there doesnt seem to be any issues.
can someone please explain what is the problem?
thank you!
ERROR:
Line 115: mne_read_surface
Bad magic number (5788537) in surface file <<path>>surf\lh.pial
------------------
Call stack:
> mne_read_surface.m at 115
>in_tess.m at 170
>import_surfaces.m at 147
>import_anatomy_fs.m at 283
> import_anatomy.m at 66
>bst_call.m at 28
>tree_callbacks.m>@(h,ev)bst_call(@import_anatomy,iSubject,0) at 562
There are maybe issues in the ways links are being handled here.
FreeSurfer 7.x creates links between certain files, typically lh.pial is not a real file, but a symbolic link to lh.pial.T1.
Because symbolic links are not handled in all the programs or OS in the same way, there are sometimes conversions that are done, e.g. when copying the FreeSurfer subject folder to a Windows computer, or when zipping and unzipping.
Different states can result from these successive symbolic link conversions:
the full copy of all the links as hard files => a new file lh.pial is created with the same contents as lh.pial.T1 - This causes an increase of storage size of the folder, but guarantees its readability from all the programs
the link lh.pial can be replaced with a text file containing the path to the target file lh.pial.T1 => the link somewhat exists but is not usable in most applications
the link lh.pial can be replaced with an empty file => the link is broken.
Or it could be a problem that occurs during the transfer of the folder, if not all the files where copied correctly.
thank you so much for your answer.
I did the same thing as suggested in the prev report = deleted the lh.pial (and rh.pial) from the folder. worked like magic.
thanks again!