When using the default ICBM152 anatomy, I typically run the CAT12 segmentation on it to get the Schafer atlases. I've done this for a while now, with no issues.
However, I am running into the following error I've never come across before.
Apologizes in advance if this is a CAT12 issue and not a BST one.
Any assistance with this would be greatly appreciated.
Indeed, in the latest version of CAT (r1904), the function cat_surf_map_atlas.m makes a reference to a variable ST that is not used before, at line 62.
Unzip it and make sure that the function cat_surf_map_atlas.m does not include the same error
Replace the contents of the folder $HOME/.brainstorm/plugins/cat12/cat12 with the contents of the cat12 folder you've just downloaded
Do not delete the folder $HOME/.brainstorm/plugins/cat12, as a symbolic link redirects $HOME/.brainstorm/plugins/spm12/spm12/toolbox/cat12 to it. If you the folder, you'd need to recreate the link manually
I am still running into similar errors, although I don't know if I was able to properly follow the replacement of the CAT12 contents.
I tried custom install through the plug in manager, but got that the version of CAT12 I downloaded was not able to be recognized. Could I do the install through the plug in manager?
I also tried to install the old version of cat on my own, but in the process of running it brainstorm reported that it was not working properly and needed to be reinstalled
I guess I shouldn't have sent you on the tracks of trying to install manually an older version of CAT without testing this myself first... Let me try to provide an easier fix for this issue, until it gets fixed in CAT.
From Brainstorm: Menu Plugins > spm12 > Uninstall (it will uninstall CAT as well)
Edit the Matlab path: Remove from the path all the SPM-related folders
Delete all your previous manual installations of SPM and CAT from your computer, in order to avoid any confusion.
From Brainstorm: Menu Plugins > Anatomy > cat12 > Install (it will install SPM as well)
The following instructions consider that Brainstorm installed CAT12 version 1904
In the Matab command window, type edit cat_surf_map_atlas (you need the CAT plugin to be loaded for this function to be available in the path)
In the editor, comment out the lines 62 and 68 by adding a % at the beginning of the line (comment only the if/end lines, and keep the entire block in between, as we want the new parcellations to be saved)