netstim / leaddbs

Lead-DBS is a MATLAB toolbox facilitating deep brain stimulation electrode localization and connectomic neuroimaging.
https://www.lead-dbs.org
Other
93 stars 98 forks source link

network mapping explorer #784

Closed GaranceMeyer closed 2 years ago

GaranceMeyer commented 2 years ago

Hi, I tried to create a new network mapping analysis, choose a functional connectome and pressed calculate. Then on the first patient, it throwed an error saying that the seed fMRI file is not found (the file indeed doesn't exist, while it should prepare it, I think). Below is the error :

Error using load_nii_hdr
Cannot find file
"/Users/garancemeyer/Desktop/BIDStestQueenslandPDSTN/derivatives/leaddbs/sub-ntstm12864/stimulations/MNI152NLin2009bAsym/gs_20220805/sub-ntstm12864_sim-efield_model-simbio_seed-fMRI.nii".

Error in ea_ori_load_nii (line 172)
   [nii.hdr,nii.filetype,nii.fileprefix,nii.machine] = load_nii_hdr(filename);

Error in ea_flip_lr (line 73)
   nii = ea_ori_load_nii(original_fn, [], [], [], [], old_RGB, tolerance, preferredForm);

Error in ea_flip_lr_nonlinear (line 11)
    ea_flip_lr(from,to);

Error in ea_networkmapping_getvats (line 39)
        ea_flip_lr_nonlinear(vatlist{sub,1}, vatlist{numPatient+sub,1}, 1);

Error in ea_networkmapping/calculate (line 133)
                vatlist = ea_networkmapping_getvats(obj);

Error in ea_networkmappingexplorer/CalculateButtonPushed2 (line 1289)
            app.networkmapping.calculate;

Error in appdesigner.internal.service.AppManagementService/executeCallback (line 138)
                callback(appOrUserComponent, event);

Error in matlab.apps.AppBase>@(source,event)executeCallback(appdesigner.internal.service.AppManagementService.instance(),app,callback,requiresEventData,event) (line 63)
            newCallback = @(source, event)executeCallback(appdesigner.internal.service.AppManagementService.instance(), ...

Error using matlab.ui.control.internal.controller.ComponentController/executeUserCallback
Error while evaluating Button PrivateButtonPushedFcn.
ningfei commented 2 years ago

yes, it should generate it at line 33 of ea_networkmapping_getvats. If not, something was already wrong at this step. There should be some other warning/error before this one.