From 91b2a6add56182e2680fa40b89abcf334a08f923 Mon Sep 17 00:00:00 2001 From: Xiangzhen Kong Date: Wed, 3 Jul 2024 20:17:53 +0800 Subject: [PATCH] FIX suit_ROI_summarize At the ROI analysis with atlas step, when specify Atlas image, the variables atlas ends with ',1' after the file path. This results in an error report of atlas not found. --- suit_ROI_summarize.m | 4 ++++ 1 file changed, 4 insertions(+) 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));