neurolabusc / NiiStat

NiiStat is a set of Matlab scripts for analyzing neuroimaging data from clinical populations
GNU General Public License v2.0
31 stars 16 forks source link

GUI and script not working #7

Closed sosinovitch closed 5 years ago

sosinovitch commented 5 years ago

I just tried running the NiiStat and NiiStatGUI scripts via MATLAB (2018b) on my iMac, and get the following error message for the NiiStat script:

_Error using NiiStat (line 85) Unable to find Excel file named /home/research/Desktop/PACMAN_MASTER/MRI_Data/PacManNiiStat_Paper3.xlsx

Here's line 85 of the code:

if (strcmpi('ver',xlsname)), return; end; %nii_stat('ver') cause software to report version and quit if exist(xlsname,'file') ~= 2 error('Unable to find Excel file named %s\n',xlsname); end

It looks like the script is looking for an Excel file, and halts the script once the PacManNiiStat_Paper_3.xlsx Excel file isn't found.

For the GUI, here's a screenshot of a subset of the error messages that pop up:

Screen Shot 2019-05-01 at 7 07 05 PM

The GUI itself appears blank with the following tabs:

Screen Shot 2019-05-01 at 7 08 38 PM

Any help fixing these bugs would be greatly appreciated.

rogiedodgie commented 5 years ago

Did you type NiiStat at the prompt or NiiStatGUI at the Matlab prompt? With the current release you must start the program using the NiiStatGUI command. You will then have the option to use the classic interface once it starts. Roger

sosinovitch commented 5 years ago

Yes, tried that. The problem was solved by removing all the spm12 subfolders from the Set Path area.

Got a warning from spm12 that all that was required was the main folder, so removed all spm12 subfolders and only included the main folder in the Set Path. After removing doing this, when I entered the NiiStatGUI command, the GUI started perfectly.

Manuel-debugger commented 3 years ago

I'm having this exact issue. Tried the suggested solution of removing all the spm12 subfolders from the path but nothing.

Error: Error using NiiStat (line 85) Unable to find Excel file named /home/research/Desktop/PACMAN_MASTER/MRI_Data/PacManNiiStat_Paper_3.xlsx

rogiedodgie commented 3 years ago

Please type NiiStatGUI, not NiiStat, at the Matlab prompt. -R

On Thu, Nov 12, 2020 at 11:39 AM Manuel-debugger notifications@github.com wrote:

I'm having this exact issue. Tried the suggested solution of removing all the spm12 subfolders from the path but nothing.

Error: Error using NiiStat (line 85) Unable to find Excel file named /home/research/Desktop/PACMAN_MASTER/MRI_Data/PacManNiiStat_Paper_3.xlsx

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/neurolabusc/NiiStat/issues/7#issuecomment-726193441, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGIXRRIUXSPZCF7RRDP5433SPQFV7ANCNFSM4HJ2HMYQ .

sosinovitch commented 2 years ago

Just installed NiiStat on a Mac with macOS Mojave, and typing NiiStatGUI got the GUI interface to pop up whereas NiiStat gave the aforementioned error. I didn't have to change anything. Thanks for the tip @rogiedodgie.