diff --git a/suit_ROI_summarize.m b/suit_ROI_summarize.m index 4e8fe27..4cc1514 100644 --- a/suit_ROI_summarize.m +++ b/suit_ROI_summarize.m @@ -64,6 +64,10 @@ images=spm_select(inf,'image','Select images to do statistics on'); end; +if endsWith(atlas, ',1') + atlas = atlas(1:end-2); +end; + if (~isstruct(atlas)) if (~exist(atlas,'file')) error(sprintf('Atlas file: %s not found. \nYou may have to download github/DiedrichsenLab/cerebellar_atlases, \n or set the location of the atlas directory in suit_defaults.m',atlas));