NiiStat icon indicating copy to clipboard operation
NiiStat copied to clipboard

NiiStatGUI does not work anymore : fixed !

Open godefrol opened this issue 1 year ago • 2 comments

That's fixed and I indicate the procedure if it may help someone /// our lab engineer has fixed this curious problem (that never happened before): we have to change the position of the NiiStat File outside the program files (whereas it worked perfectly before) and surprisingly we have now to add the extension (ie, .mat) in the NiiStat Excel file. //////// although it worked perfectly at the beginning of the year 2024, now it is impossible to run previous analyses whereas I did not change anything; here is the message error: ////// **** Analyzing ASB1V with 91 participants for behavioral variable TEPGlobVOI1bi across 7221032 (of 521191) regions/voxels. Undefined function 'spm_write_vol' for input arguments of type 'struct'. Error in nii_stat_core>saveSumMapSub (line 472) spm_write_vol(hdr,sumImg); Error in nii_stat_core (line 103) saveSumMapSub(hdr, sumImg,statname);%, voxMask); %create image showing sum of values Error in NiiStat>processExcelSub (line 1059) nii_stat_core(les, beh, beh_names,hdr, pThresh, numPermute, logicalMask,statname, les_names, hdrTFCE); Error in NiiStat (line 261) processExcelSub(designMat, roiIndex, modalityIndex,numPermute, pThresh, minOverlap, regressBehav, maskName, GrayMatterConnectivityOnly, deSkew, customROI, doTFCE, reportROIvalues, xlsname, kROIs, doSVM, doVoxReduce, hemiKey, interhemi, statname,GUI); %%GY Error in NiiStatGUI/GOButtonPushed (line 448) NiiStat; Error using matlab.ui.control.internal.controller.ComponentController/executeUserCallback (line 309) Error while evaluating Button PrivateButtonPushedFcn. /////// Do you have any idea to fix this major bug ? Thanks

godefrol avatar Mar 21 '24 09:03 godefrol

Hi godefrol, I believe that the issue is the following: The files in your ~/spm12 folder are not necessarily being updated to work the the latest versions of Matlab. Typically, when new versions of Matlab are released, you can find a version of SPM12 on their website that is compatible with that version of Matlab. However, I noticed their latest release is for 2023b. One solution to your problem, is to replace your ~/spm12 folder with the latest branch of SPM which can be found on github at the following location: https://github.com/spm/spm Using this version of spm12, NiiStatGUI will work with Matlab2024a (tested, confirmed). Best, Roger

rnorlund avatar Mar 21 '24 14:03 rnorlund

Many thanks Roger for this additional and important information.

best regards

Pr O Godefroy, FEAN, FAAN Service de Neurologie/Neurology Depart Hall1 Et/Level 4 T/F : 33322668240/44 Laboratoire de Neurosciences Fonctionnelles et Pathologies/Functional neurosciences Lab (UR UPJV 4559) CURS-Université de Picardie Jules Verne/ Jules Verne University of Picardy 80054 Amiens Cedex France https://lnfp.u-picardie.fr/lnfp-accueil-554044.kjsphttps://urldefense.proofpoint.com/v2/url?u=https-3A__lnfp.u-2Dpicardie.fr_lnfp-2Daccueil-2D554044.kjsp&d=DwMFAw&c=o1ZvBLtTDcrCSt-A2SIme7QuYcfExS-NFFYMRpmIei4&r=QP-pXPSW4QfMZtXGpr2C9f1GZQvzqEYDSwCC_FQkw3c&m=PLniJF_mu3HlU-7R1B-XPWHW2yt5ARyRGJa7oOzqco23iHr94OmyMx-J54L0Zh0t&s=KLWadNkbh31SqskeP_YsNtHZLhtP2OuEx_fwNRGh5hw&e= [logofinal petit][FHU Neurovasc signature mail]


De : Roger Newman-Norlund @.***> Envoyé : jeudi 21 mars 2024 15:52 À : neurolabusc/NiiStat Cc : Godefroy Olivier; Author Objet : Re: [neurolabusc/NiiStat] NiiStatGUI does not work anymore (Issue #16)

Hi godefrol, I believe that the issue is the following: The files in your ~/spm12 folder are not necessarily being updated to work the the latest versions of Matlab. Typically, when new versions of Matlab are released, you can find a version of SPM12 on their website that is compatible with that version of Matlab. However, I noticed their latest release is for 2023b. One solution to your problem, is to replace your ~/spm12 folder with the latest branch of SPM which can be found on github at the following location: https://github.com/spm/spmhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_spm_spm&d=DwMCaQ&c=o1ZvBLtTDcrCSt-A2SIme7QuYcfExS-NFFYMRpmIei4&r=bSUE_lkpH_vKAZQvyz0OYL1p5-jPRRGgizgOmY9ZqxM&m=5aWeKEcapxl9shBZpSKWUUAquOxoSq1OKzKXbMZRM3p5N159FZY_2zxAncnL3sDO&s=cQYyqAnNl4d7BRTUxMUG8HmukeKSMqLel9dVK0NgdZM&e= Using this version of spm12, NiiStatGUI will work with Matlab2024a (tested, confirmed). Best, Roger

Reply to this email directly, view it on GitHubhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_neurolabusc_NiiStat_issues_16-23issuecomment-2D2012514873&d=DwMCaQ&c=o1ZvBLtTDcrCSt-A2SIme7QuYcfExS-NFFYMRpmIei4&r=bSUE_lkpH_vKAZQvyz0OYL1p5-jPRRGgizgOmY9ZqxM&m=5aWeKEcapxl9shBZpSKWUUAquOxoSq1OKzKXbMZRM3p5N159FZY_2zxAncnL3sDO&s=LALFPiCdboWU6zs-dxduKHyvcZ88U_bFwB95c5LkrJo&e=, or unsubscribehttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_ATFQDKU6UH7JRIRYGGCQJOLYZLX3VAVCNFSM6AAAAABFBCGDHSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMJSGUYTIOBXGM&d=DwMCaQ&c=o1ZvBLtTDcrCSt-A2SIme7QuYcfExS-NFFYMRpmIei4&r=bSUE_lkpH_vKAZQvyz0OYL1p5-jPRRGgizgOmY9ZqxM&m=5aWeKEcapxl9shBZpSKWUUAquOxoSq1OKzKXbMZRM3p5N159FZY_2zxAncnL3sDO&s=ppMIWW19D6BY-jfu7xzVToTghuzatPB-wV93bsAVk1Y&e=. You are receiving this because you authored the thread.Message ID: @.***>

godefrol avatar Mar 22 '24 08:03 godefrol