The Default anatomy folder correctly contains cortex_6006V.mat (among other surfaces). However, when I expand Subject01, no cortex surface appears under it (the anatomy branch remains empty).
How can fix this?
Thank you in advance for your support!
The Subject01 that was created is using the Default anatomy, thus within Brainstorm when the cortex for Subject01 is needed, the cortex for the Default anatomy will be used.
Thank you so much for your help!
I am trying to create scouts programmatically in MATLAB (without using the GUI), but I get the following error when running this line:
matlab
sSurf = bst_get('Surface', iSurface); % Get surface structure
Error message:
Error using bst_get
Invalid context : "Surface"
I’m looking in the menu / right-click options, but I really don’t see “Generate cortex surface” or anything similar. Could you please tell me exactly where it should be?
Now, to completely fix this problem once and for all, what exactly should I do?
Thanks again!
This error message does explain why it did not work, there is not bst_get('Surface', iSurface) in Brainstorm. This is what you need to retrieve the content of a surface file:
% Retrieve Subject
% All surfaces for that subject are in sSubject.Surface
sSubject = bst_get('Subject', SUBJECT_NAME);
% Load surface file content
SurfaceFile = sSubject.Surface(iSurface)
surfMat = in_tess_bst(SurfaceFile);
% Modify your surface content
surfModMat = surfMat;
% Save modified surface content
bst_save(file_fullpath(SurfaceFile), surfModMat);
Keep in mind that iSurface is the index of the Surface within the Subject it is not absolute, you must have the Subject struct.
Not really sure what you are looking for.
What do you want to do?
Describe exactly what you want to do, so we can assist you out..
It seems there is a confusion. If a Subject is using the Default anatomy you cannot edit a surface just for that Subject, as the Surface file is the one of the Default anatomy.