hello,
I would like to use brain atlas with higher parcellations,
I found atlas from Schaefer 2018 fit with fsaverage6,
I try to paste this file .annot in the folder label and re import anatomy but it doesn't load them,
I also try to load atlas after import anatomy but i think brainstorm want one whole brain file and the atlas (.annot) is only the hemispheric file (lh or rh).
They also give atlas in MNI space but i think is the problem
Thanks You !
That's work but i have to comment this loop to end the import process,and at the end the atlas are not merge.
in : tess_concatenate.m (ligne 157)
% Add the first letter of the surface comment to the scout name
if ~ismember(oldTess.Atlas(iAtlasOld).Scouts(iScout).Label(end), {'L', 'R'})
oldTess.Atlas(iAtlasOld).Scouts(iScout).Label =[oldTess.Atlas(iAtlasOld).Scouts(iScout).Label, scoutTag];
Indeed, there are probably other things to add here and there...
To be merged in tess_concatenate, the atlases must have the same name.
If you do a manual import, you can rename the atlases. If you edit import_anatomy_fs.m, you may need to add the atlas names for lh and rh in import_label:
Thanks,
I am sorry, I tried both manually and by modifying import_anatomy_fs.m as you suggested and in both case i have the same error :
Array indices must be positive integers or logical values.
Error in tess_concatenate (line 157)
if ~ismember(oldTess.Atlas(iAtlasOld).Scouts(iScout).Label(end), {'L', 'R'})
Error in tree_callbacks>SurfaceConcatenate (line 2979)
NewFile = tess_concatenate(TessFiles);
and in the both case error occur then i try to merge surface,
at this step,
"10. Select lh.pial, rh.pial, right-click > Merge surfaces: Generates a surface cortex_250000V"
the atlas work and load on the surface but there is something during merge that's doesn't work,
Array indices must be positive integers or logical values.
Error in tess_concatenate (line 157)
if ~ismember(oldTess.Atlas(iAtlasOld).Scouts(iScout).Label(end), {'L', 'R'})
I attached you one of the atlas, may be that's come from my file ?
Note that this will not fix the error you reported. The previous version of the code was not causing any problem. Therefore there is a problem either with the procedure you use to load this anatomy (refer to the online instructions are ask in case of doubts), or with the surfaces you are trying to import.
Start by reproducing what I did with the fsaverage6 anatomy folder. If it works, you will know the problem comes from your anatomy folder.
Thanks Francois,
I found that's coming from my atlas, when i loaded them, sometimes (i don't know why) the central regions, the black one (around the sub cortical regions) has no label. So in the merge process brainstorm don't like it ! I can do it manually and that's work !
Thanks again,
V.