Lead-DBS
  • Home
  • Slack User Channel
  • About
    • Deep Brain Stimulation
    • Publications
    • Citing Lead-DBS
    • Data & Code inclusion philosophy
    • List of Lead-DBS dependencies
    • Lead Connectome
    • Lead-OR
  • News
  • Help/Support
    • Learn Lead-DBS yourself
    • Slack User Channel
    • Forum
    • Knowledge Base
      • Lead-DBS Methods
        • AC/PC to MNI conversion
        • DBS Network Mapping
        • Subcortical Electrophysiology Mapping (SEM)
      • Atlases/Resources
        • Cortical Atlas Parcellations (MNI-Space)
        • Subcortical Atlases (MNI-Space)
        • The DISTAL atlas
        • Macaque Atlases (MNI-Space)
        • Normative Connectomes
        • IXI Database
      • Walkthrough-Videos
      • Other Videos
      • Screenshots
  • Manual
  • Workshops
    • Brisbane February 2020
    • Machine Learning – Berlin September 2019
    • Berlin September 2019
    • Past workshops
      • Hamburg February 2019
      • Shanghai September 2018
      • Berlin 2016
  • Download
  • Contact
  • Search
  • Menu Menu

Errors when the GUI was executed

You are here: Home1 / Forums2 / Support Forum (ARCHIVED – Please use Slack Channel instead)3 / Errors when the GUI was executed4
Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • 05/11/2016 at 6:59 PM #962
    sahbi_m
    Participant

    Hello,

    I have installed the ToolBox Lead-DBS from you website and also the SPM12. Then I renamed the files as it was described . But when I executed lead I found many errors like :
    Item ‘Tensor Calculation’, field ‘prog’: Value must be a function or function handle on MATLAB path.
    Item ‘Probabilistic Tracking’, field ‘prog’: Value must be a function or function handle on MATLAB path.
    Item ‘Mori Streamline Tracking’, field ‘prog’: Value must be a function or function handle on MATLAB path.
    Item matlabbatch: No repeat named
    spm
    Undefined function ‘list’ for input arguments of type ‘cell’.

    Error in cfg_repeat/list (line 112)
    [id1, stop1] = list(citems{k}, spec, tropts);

    Error in cfg_util>local_getcjid2subs (line 1352)
    cjid2subsin = list(cjin, exspec, tropts);

    Error in cfg_util>local_initjob (line 1537)
    [ucj, ucjid2subs] = cellfun(@local_getcjid2subs, ucj, ‘UniformOutput’, false);

    Error in cfg_util (line 802)
    [jobs(cjob), mod_job_idlist] = local_initjob(jobs(cjob), job, jobdedup);

    Error in cfg_util (line 953)
    cjob = cfg_util(‘initjob’,varargin{1});

    Error in ea_create_mni_darteltemplate (line 36)
    cfg_util(‘run’,jobs);

    Error in ea_normalize_spmdartel (line 105)
    ea_create_mni_darteltemplate([options.root,filesep,options.patientname,filesep,’rc1′,options.prefs.prenii_unnormalized]);

    Error in ea_autocoord (line 84)
    eval([options.normalize.method,'(options)’]); % triggers the normalization function and passes the options struct
    to it.

    Error in lead>run_button_Callback (line 337)
    ea_autocoord(options);

    Error in gui_mainfcn (line 95)
    feval(varargin{:});

    Error in lead (line 42)
    gui_mainfcn(gui_State, varargin{:});

    Error in
    matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)lead(‘run_button_Callback’,hObject,eventdata,guidata(hObject))
    Error while evaluating UIControl Callback

    Kind regards,
    Sahbi mallouli

    05/11/2016 at 7:22 PM #963
    andreashorn
    Keymaster

    Dear Sahbi,

    this is weird. Did you try to open SPM 12 itself alone? (i.e. type spm fmri) and see if that starts up?

    Best, Andy

    05/11/2016 at 8:47 PM #965
    sahbi_m
    Participant

    Dear Andy,

    I tried with spm fmri alone and it worked ( with the four files :anat.nii,postop_tra.nii ,postop_cor.nii ,postop_sag.nii)

    But when I ran lead DBS with the following optins ( [x]Normalize+ [x] check Normalisation+[x]reconstruct(with STN, GPI or Vim option for Entry point target and auto mask)+ [x] Review reconstruction+ visualisation) it wrote many results in the workspace matlab but in the end it got stuck with the errors listed above. Please find here the list of files I got after running lead DBS ( c1,c2,c3-anat.nii+iy_anat.nii+raw_postop_cor,sag,tra.nii+rc1,2,3-anat.nii+ y_anat.nii+ anat_seg8.m+ea_ui.m+ ea_normmethod_aplied.m+ the four old files , So 15 new files in the end)

    Thanks,
    Sahbi

    05/11/2016 at 9:03 PM #966
    andreashorn
    Keymaster

    Okay. I need to fix this at some point.
    In the meantime, please download and unzip this file (https://dl.dropboxusercontent.com/u/18255196/dartelmni_6_hires.nii.zip) and put it into your lead/templates/dartel/ folder. Re-run again. I’d also advise that you run each step separately to be able to debug a bit better if you’re still unfamiliar with the toolbox.

    Best, Andy

    05/11/2016 at 9:11 PM #967
    sahbi_m
    Participant

    Hi Andy,

    Now it works and shows me two wireframes for pre and postoperative but it ends up with an Error Dialog (in Gui frame) : “please put a suitble anatomy file inside patient folder” however it already worked with SPM12 and actually for the same files.

    Thanks,Sahbi

    05/11/2016 at 9:21 PM #969
    andreashorn
    Keymaster

    Mh, are you sure you are indeed using SPM12 (and not a different version)? Please make sure that SPM8 is not on your path and if you start spm, version 12 it starts up. This particular check-function (ea_checkfiles) is only working with SPM12 and will show an error if using SPM8 (not supported anymore).

    You could temporarily comment line 34 of ea_checkfiles.m and everything should still work.

    Best, Andy

    05/11/2016 at 10:31 PM #970
    sahbi_m
    Participant

    Thank you for you previous email, actually I did what you said but always at the end it shows me a small frame in GUI window which contains the same old message : “please put a suitble anatomy file inside patient folder”
    And in the workspace of matlab (R2016a): it wrote me the following errors:
    Error using ea_error (line 8)
    Please put a suitable anatomy file inside patient folder

    Error in ea_checkfiles (line 34)
    ea_error(‘Please put a suitable anatomy file inside patient folder’);

    Error in ea_autocoord (line 123)
    ea_checkfiles(options);

    Error in lead>run_button_Callback (line 337)
    ea_autocoord(options);

    Error in gui_mainfcn (line 95)
    feval(varargin{:});

    Error in lead (line 42)
    gui_mainfcn(gui_State, varargin{:});

    Error in
    matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)lead(‘run_button_Callback’,hObject,eventdata,guidata(hObject))
    Error while evaluating UIControl Callback

    Kind regards
    sahbi

    05/12/2016 at 10:43 AM #971
    sahbi_m
    Participant

    Dear Andy,

    This time I executed lead DBS with only checking (Normalize + check Normalization) it worked for coronar and axial (by showing me two matlab figures of coronar and transversal) but not for sagital!! So there is always problem in the corgestration step.

    It always shows me these types of errors:

    Undefined function or variable ‘coords_mm’.

    Error in ea_load_reconstruction (line 47)
    markers(side).head=coords_mm{side}(1,:);

    Error in ea_writeplanes (line 27)
    coords_mm=ea_load_reconstruction(options);

    Error in ea_write (line 26)
    cuts=ea_writeplanes(options);

    Error in ea_autocoord (line 222)
    ea_write(options)

    Error in lead>run_button_Callback (line 337)
    ea_autocoord(options);

    Error in gui_mainfcn (line 95)
    feval(varargin{:});

    Error in lead (line 42)
    gui_mainfcn(gui_State, varargin{:});

    Error in
    matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)lead(‘run_button_Callback’,hObject,eventdata,guidata(hObject))
    Error while evaluating UIControl Callback

    Index exceeds matrix dimensions.

    Error in ea_imshowpair/mouseClick (line 270)
    i2=i2(2);

    Error while evaluating Figure ButtonDownFcn

    Best, sahbi

    05/13/2016 at 11:58 AM #974
    sahbi_m
    Participant

    Dear Andy,

    I tried many times but always the same errors appear in the reconstruction step :
    Error using spm_vol>spm_vol_hdr (line 80)
    File “C:\Users\Sahbi\Desktop\p1034\patient1034\y_ea_normparams.nii” does not exist.

    I realized that the problem is always in the reconstruction step.
    So could you please help me how can I find this missing file : y_ea_normparams.nii.

    Best
    Sahbi

    05/13/2016 at 1:38 PM #975
    andreashorn
    Keymaster

    Dear Sahbi,

    sorry you are having so much trouble getting it to work.
    Usually, the y_ea_normparams.nii file will be generated if you run an SPM-based normalization within Lead-DBS (DARTEL, Segment). However, I’d recommend to use Advanced Normalization Tools for now – it’s just much better tested because we use it ourselves. I’d still like to find out how the problem originated. Could you please do the following:

    1. Run (only) Normalization again (DARTEL) and check if ea_normparams.nii really isn’t being generated and if so, if an error message appeared. Please always post full error messages (the whole red text in Matlab), otherwise, they are often useless for me.

    2. If the file really doesn’t appear, try running the ANTs based normalization and see if things work from here.

    If both doesn’t work, we should get in contact via mail and you’d need to somehow send me the dataset in an anonymized way so I could debug and see where the problem originated.

    Best, Andy

    05/17/2016 at 11:16 AM #977
    sahbi_m
    Participant

    Hi Andy,

    Thank you very much for your last email. Actually, it worked with Dartel but it didn’t show right results, and the issue was that the 2 leads in the final 3D image weren’t in the right place.

    Please find here my email: malloulisahbi@gmail.com So I can send my anonymized files.

    Best, sahbi

    05/17/2016 at 12:08 PM #978
    sahbi_m
    Participant

    Hi,

    please find here the errors after the reconstruction step (and the normalization was done with ANTs):

    Error using spm_vol>spm_vol_hdr (line 80)
    File “C:\Users\Sahbi\Desktop\Tuesday_results\patient_tues\y_ea_normparams.nii” does not exist.

    Error in spm_vol (line 61)
    v = spm_vol_hdr(deblank(P(i,:)));

    Error in ea_checkforwardinv (line 5)
    V=spm_vol([options.root,options.patientname,filesep,’y_ea_normparams.nii’]);

    Error in ea_reconstruction2native (line 16)
    ea_checkforwardinv(options,’forward’)

    Error in ea_load_reconstruction (line 20)
    ea_reconstruction2native(options);

    Error in ea_manualreconstruction (line 38)
    [coords_mm,trajectory,markers,elmodel,manually_corrected]=ea_load_reconstruction(options);

    Error in ea_autocoord (line 219)
    ea_manualreconstruction(mcfig,patientname,options);

    Error in lead>run_button_Callback (line 337)
    ea_autocoord(options);

    Error in gui_mainfcn (line 95)
    feval(varargin{:});

    Error in lead (line 42)
    gui_mainfcn(gui_State, varargin{:});

    Error in
    matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)lead(‘run_button_Callback’,hObject,eventdata,guidata(hObject))
    Error while evaluating UIControl Callback

    Have a nice day,
    sahbi

    05/19/2016 at 10:43 AM #986
    sahbi_m
    Participant

    Hi Andy,

    I am so sorry for all these messages. I actually realized that after a stimulation (in the final 3D framework) there is always an error message. If you could kindly take a look at it just below.

    Best,
    sahbi
    Error using mkdir
    The filename, directory name, or volume label syntax is incorrect.

    Error in ea_genvat_maedler (line 109)
    mkdir([options.root,options.patientname,filesep,’stimulations’,filesep,stimname]);

    Error in ea_stimparams>stimulate_Callback (line 948)
    [stimparams(1,side).VAT(el).VAT,volume]=feval(ea_genvat,elstruct(el).coords_mm,S,side,options,stimname);

    Error in gui_mainfcn (line 95)
    feval(varargin{:});

    Error in ea_stimparams (line 42)
    gui_mainfcn(gui_State, varargin{:});

    Error in
    matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)ea_stimparams(‘stimulate_Callback’,hObject,eventdata,guidata(hObject))
    Error while evaluating UIControl Callback

    08/26/2018 at 5:32 PM #5334
    rubenscury
    Participant

    Hi Sahbi,

    How have you fix this issue?
    I’m having the same problem right now. I cannot reconstruct the VTA….

    Error in ea_genvat_horn (line 117)
    tess = mesh.tet(:,1:4);

    Error in ea_stimparams>stimulate_Callback (line 950)
    [stimparams(1,side).VAT(el).VAT,volume]=feval(ea_genvat,elstruct(el).coords_mm,getappdata(handles.stimfig,’S’),side,options,stimname,options.prefs.machine.vatsettings.horn_ethresh,handles.stimfig);

    Error in gui_mainfcn (line 95)
    feval(varargin{:});

    Error in ea_stimparams (line 42)
    gui_mainfcn(gui_State, varargin{:});

    Error in
    @(hObject,eventdata)ea_stimparams(‘stimulate_Callback’,hObject,eventdata,guidata(hObject))

    Error while evaluating UIControl Callback

    Thanks
    Best
    Rubens Cury

    08/26/2018 at 7:59 PM #5337
    andreashorn
    Keymaster

    Hi Rubens,

    could you please send the full error message? The first (most crucial) line is missing..

    If you haven’t done so, it might also make sense to watch the walkthrough video to check if things look the same on your side:

    Walkthrough-Videos

    Best, Andy

  • Author
    Posts
Viewing 15 posts - 1 through 15 (of 15 total)
  • The forum ‘Support Forum (ARCHIVED – Please use Slack Channel instead)’ is closed to new topics and replies.

Forum Statistics

Registered Users
130
Forums
1
Topics
185
Replies
607
Topic Tags
81
Empty Topic Tags
12

Subscribe to our newsletter

Recent Posts

  • Lead-DBS 3.0 out now!
  • Lead-OR out now
  • Bug in Lead-DBS v2.5
  • Lead-DBS v2.5 out now!
  • Lead-DBS on the cover of NeuroImage

Archives

  • October 2023
  • August 2021
  • July 2021
  • March 2021
  • September 2020
  • June 2019
  • November 2018
  • September 2018
  • August 2018
  • March 2018
  • November 2017
  • September 2017
  • July 2017
  • April 2017
  • July 2016
  • June 2016
  • May 2016
  • March 2016
  • December 2015
  • November 2015
  • April 2015
  • January 2015
  • December 2014
  • October 2014
  • September 2014
  • July 2014
  • June 2014

Imprint | Privacy Policy

Scroll to top
We use cookies to ensure that we give you the best experience on our website. You may “Accept All” or visit "Cookie Settings" to provide a controlled consent.
Cookie SettingsAccept All
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
CookieDurationDescription
cookielawinfo-checkbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
PHPSESSIDsessionThis cookie is native to PHP applications. The cookie is used to store and identify a users' unique session ID for the purpose of managing user session on the website. The cookie is a session cookies and is deleted when all the browser windows are closed.
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Analytics
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
CookieDurationDescription
_ga2 yearsThis cookie is installed by Google Analytics. The cookie is used to calculate visitor, session, campaign data and keep track of site usage for the site's analytics report. The cookies store information anonymously and assign a randomly generated number to identify unique visitors.
_gat_gtag_UA_52019623_11 minuteThis cookie is set by Google and is used to distinguish users.
_gid1 dayThis cookie is installed by Google Analytics. The cookie is used to store information of how visitors use a website and helps in creating an analytics report of how the website is doing. The data collected including the number visitors, the source where they have come from, and the pages visted in an anonymous form.
Third-party
Cookies from third-party contents on the website.
CookieDurationDescription
CONSENT16 years 5 months 17 days 13 hoursThese cookies are set via embedded youtube-videos. They register anonymous statistical data on for example how many times the video is displayed and what settings are used for playback.No sensitive data is collected unless you log in to your google account, in that case your choices are linked with your account, for example if you click “like” on a video.
IDE1 year 24 daysUsed by Google DoubleClick and stores information about how the user uses the website and any other advertisement before visiting the website. This is used to present users with ads that are relevant to them according to the user profile.
test_cookie15 minutesThis cookie is set by doubleclick.net. The purpose of the cookie is to determine if the user's browser supports cookies.
VISITOR_INFO1_LIVE5 months 27 daysThis cookie is set by Youtube. Used to track the information of the embedded YouTube videos on a website.
vuid2 yearsThis domain of this cookie is owned by Vimeo. This cookie is used by vimeo to collect tracking information. It sets a unique ID to embed videos to the website.
YSCsessionThis cookies is set by Youtube and is used to track the views of embedded videos.
yt-remote-connected-devicesneverNo description available.
yt-remote-device-idneverNo description available.
SAVE & ACCEPT
Powered by CookieYes Logo