First of all I would like to thank Alfonso Nieto-Castanon and Susan Whitfield-Gabrieli for their work on this extraordinarily good software.
I think I have discovered a bug when manually labeling ICA networks. I hope this hasn't been reported in this forum, but I haven't found anything in a quick search. When using "ICA tools" -> "Label individual networks/components" and then saving the labels, CONN basically "inserts" additional carriage returns (\r) after each label. E.g. when the list (ICA.ROIs.txt) was "label1\r\nlabel2\r\n", after setting the labels the list will be "label1\r\r\nlabel2\r\r\n". (Maybe that's only a problem under Windows - I'm using CONN Toolbox 17a with Matlab 2016a under Windows 7 64 bit). When now including the ICA networks at the setup step as ROIs and pressing "Done", I get the error:
ERROR DESCRIPTION:
Error using conn_process (line 763)
duplicated ROI name group-ICA.
Error in conn_process (line 15)
case 'setup', disp(['CONN: RUNNING SETUP STEP']); conn_process([0:4,4.5,5]);
Error in conn (line 3195)
else conn_process('setup');
Error in conn_menumanager (line 119)
I have removed the extra carriage returns from the ICA.ROIs.txt and I have changed line 23 in conn_icaexplore.m from
trefnames=regexp(fileread(fullfile(filepathresults,[ICAPCA,'.ROIs.txt'])),'\n*','split');
to
trefnames=strsplit(fileread(fullfile(filepathresults,[ICAPCA,'.ROIs.txt'])));
which solved the problem for me, as far as I can see.
I hope that this information will be of some help.
Best regards,
Gregor
I think I have discovered a bug when manually labeling ICA networks. I hope this hasn't been reported in this forum, but I haven't found anything in a quick search. When using "ICA tools" -> "Label individual networks/components" and then saving the labels, CONN basically "inserts" additional carriage returns (\r) after each label. E.g. when the list (ICA.ROIs.txt) was "label1\r\nlabel2\r\n", after setting the labels the list will be "label1\r\r\nlabel2\r\r\n". (Maybe that's only a problem under Windows - I'm using CONN Toolbox 17a with Matlab 2016a under Windows 7 64 bit). When now including the ICA networks at the setup step as ROIs and pressing "Done", I get the error:
ERROR DESCRIPTION:
Error using conn_process (line 763)
duplicated ROI name group-ICA.
Error in conn_process (line 15)
case 'setup', disp(['CONN: RUNNING SETUP STEP']); conn_process([0:4,4.5,5]);
Error in conn (line 3195)
else conn_process('setup');
Error in conn_menumanager (line 119)
I have removed the extra carriage returns from the ICA.ROIs.txt and I have changed line 23 in conn_icaexplore.m from
trefnames=regexp(fileread(fullfile(filepathresults,[ICAPCA,'.ROIs.txt'])),'\n*','split');
to
trefnames=strsplit(fileread(fullfile(filepathresults,[ICAPCA,'.ROIs.txt'])));
which solved the problem for me, as far as I can see.
I hope that this information will be of some help.
Best regards,
Gregor