Lead-DBS
  • Home
  • About
    • Deep Brain Stimulation
    • Quickstart Primer (Post-OP CT-Scans)
    • Quickstart Primer (Post-OP MR-Scans)
    • Publications
    • Citing Lead-DBS
    • Data & Code inclusion philosophy
    • List of Lead-DBS dependencies
    • Lead Connectome
  • News
  • Help/Support
    • 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
        • FEM-based VTA model
      • 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

The GUI is not working and showing error messages

You are here: Home1 / Forums2 / Support Forum (ARCHIVED – Please use Slack Channel instead)3 / The GUI is not working and showing error messages4
Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • 03/08/2016 at 4:54 PM #818
    Sushain Magotra
    Participant

    Hi there,
    After I run the GUI by entering ‘lead’ command in MATLAB ,it opens the GUI but i cannot do anything because if I click anything on the GUI it shows error messages like :

    Cell contents reference from a non-cell array object.
    Error in lead>handles2options (line 1266)
    options.normalize.method=options.normalize.method{get(handles.normmethod,’Value’)};
    Error in lead>storeui (line 1144)
    options=handles2options(handles);
    Error in lead>setdicomin_Callback (line 1028)
    storeui(handles);
    Error in gui_mainfcn (line 96)
    feval(varargin{:});
    Error in lead (line 42)
    gui_mainfcn(gui_State, varargin{:});
    Error in @(hObject,eventdata)lead(‘setdicomin_Callback’,hObject,eventdata,guidata(hObject))
    Error while evaluating uicontrol Callback

    I am using MATLAB R2013a but don’t know why is it not working.. Any help would be really appreciated.

    Thanks
    Sushain Magotra

    03/08/2016 at 5:00 PM #819
    andreashorn
    Keymaster

    Dear Sushain,

    it seems that the problem is simply that SPM is not on your Matlab path.
    Lead DBS essentially needs SPM8 or 12 to run. SPM8 is not really supported anymore but should in principle work for most functions. I’d recommend you download SPM12 (http://www.fil.ion.ucl.ac.uk/spm/software/spm12/), save it to a convenient permanent destination and add it to your Matlab path.

    I might be wrong with this diagnosis so please write back if this didn’t solve your problem.

    Best, Andy

    • This reply was modified 7 years ago by andreashorn.
    03/29/2016 at 9:28 PM #869
    Sushain Magotra
    Participant

    Hello Andy,

    Thanks for your help, I installed the SPM 12 and now its working fine. But now I have a new problem :( , when I try to reconstruct the electrode trajectories it shows the following error messages :

    Running job #1
    ————————————————————————
    Running ‘Image Calculator’

    SPM12: spm_imcalc (v6124) 16:46:30 – 29/03/2016
    ========================================================================
    Failed ‘Image Calculator’
    Error using spm_vol>spm_vol_hdr (line 80)
    File “Y:\Sushain\lead_dbs\lead_dbs\templates\bb.nii” does not exist.
    In file “Y:\Sushain\lead_dbs\lead_dbs\spm12\spm_vol.m” (v5958), function “spm_vol_hdr” at line 80.
    In file “Y:\Sushain\lead_dbs\lead_dbs\spm12\spm_vol.m” (v5958), function “spm_vol” at line 61.
    In file “Y:\Sushain\lead_dbs\lead_dbs\spm12\spm_imcalc.m” (v6124), function “spm_imcalc” at line 99.
    In file “Y:\Sushain\lead_dbs\lead_dbs\spm12\config\spm_cfg_imcalc.m” (v6536), function “my_spm_imcalc” at line 225.

    The following modules did not run:
    Failed: Image Calculator

    Error using MATLABbatch system
    Job execution failed. The full log of this run can be found in MATLAB command window, starting with the lines (look for the line showing the exact
    #job as displayed in this error message)
    ——————
    Running job #1
    ——————
    Error while evaluating uicontrol Callback

    I am not sure whether its the problem with SPM or something else.It says that some file ‘ bb.nii ‘ does not exist.
    It would be really great if you could help.
    Thanks
    Regards
    Sushain Magotra

    03/29/2016 at 11:18 PM #873
    andreashorn
    Keymaster

    Dear Sushain,

    sorry to hear. We did have a small problem with the last release (which is already fixed) but I think it didn’t really concern bb.nii
    Just to be sure, I just downloaded the web-version of Lead-DBS myself and found the file bb.nii correctly within the /templates directory. Did you perchance get Lead-DBS completely from github? Because if so, we don’t have all the large datafiles in the git repository. Github is great to get fast bugfixes and updates but you need to once download the whole repository here from the website.

    Could you please retry and download Lead-DBS and check yourself whether bb.nii lies within the /templates directory? Then go ahead and replace your old version of it, make sure, it is on the Matlab path and retry?

    Please tell us if there are more issues.

    Best, Andy

    03/30/2016 at 2:32 PM #876
    Sushain Magotra
    Participant

    Hello,

    I was trying to download Lead-DBS from the website ,but it seems there is some problem with the webpage and when I click download nothing appears but just blank page with the title ‘DOWNLOAD’ at the top.

    So, could you please check the webpage and see if the download link is working properly.

    Regards
    Sushain Magotra

    03/30/2016 at 3:52 PM #878
    andreashorn
    Keymaster

    Dear Sushain,

    on my end, the download page works fine. We also have continuous downloads from other users.
    Maybe you could try using a different browser?
    If you still can’t dl the software, please shoot me an email.

    Best, Andy

    03/30/2016 at 4:18 PM #883
    andreashorn
    Keymaster

    Dear Sushain,

    just as a follow up – just realized after sending my last response that the Download page indeed was broken.
    Thanks for the hint. I saw you could download now.

    Best, Andy

    03/31/2016 at 4:02 PM #886
    Sushain Magotra
    Participant

    Hey Andy,

    Yes, I was finally able to download the lead-DBS from the website and now I have the bb.nii file in the templates directory so its reconstructing the leads and I am even getting the reconstructed file in the output folder of patient.
    The reconstruction file consists of coordinates for the lead contacts and even for the trajectories.

    But now the problem is that when I check review reconstruction and run lead-DBS ,it does not show the leads and gives the following error:

    Error using svd
    Input to SVD must not contain NaN or Inf.
    Error in null (line 67)
    [~,S,V] = svd(A,0);
    Error in ea_reconstruction2native (line 24)
    orth=null(normtrajvector{side})*(options.elspec.lead_diameter/2);
    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 96)
    feval(varargin{:});
    Error in lead (line 42)
    gui_mainfcn(gui_State, varargin{:});
    Error in @(hObject,eventdata)lead(‘run_button_Callback’,hObject,eventdata,guidata(hObject))
    Error while evaluating uicontrol Callback

    Thanks for your quick replies. :)
    Regards
    Sushain

    03/31/2016 at 4:05 PM #887
    andreashorn
    Keymaster

    Hi Sushain,

    sorry that you are having so much trouble.. But at least we got one step further.
    It could either be a Matlab-version problem or some weird issue with the normalization routine you used.
    Could you please tell me which ML version you use, which SPM version you use and which normalization routine you selected/used within Lead-DBS?

    Best, Andy

    03/31/2016 at 5:51 PM #888
    Sushain Magotra
    Participant

    Hi Andy,

    I am using MATLAB R2013a and SPM 12 and for normalization i am using SPM12 Segment nonlinear[MR/CT]

    Regards
    Sushain

    03/31/2016 at 5:56 PM #889
    andreashorn
    Keymaster

    Hi,
    okay.. this is weird. Could you please write me an email? I couldn’t find yours.
    Best, Andy

    04/19/2016 at 2:18 PM #928
    Sushain Magotra
    Participant

    Hi Andy,

    I was trying to visualize the leads and also find VAT .I did all the steps you told i.e running ea_reslice_nii and then doing normalization using ANTs but the normalization does not work properly and shows this error in a pop up window ”antsApplyTransform.exe has stopped working”.

    I was only able to visualize the leads in 3D using the non linear segment method but that too was not correct as the leads were horizontally placed instead of being vertical.

    The mri images I used were already in .nii format but we only had a sagittal view for postoperative image and no transversal view.Could this be a problem?

    I also have mri images in DICOM format but when I converted them into .nii using the toolbox they were also sagittal view so those also did not work as when I reached the reconstruction step it said mask out of bounds.

    So, these are the problems I am facing.Your help will be really appreciated.

    Regards
    Sushain

  • Author
    Posts
Viewing 12 posts - 1 through 12 (of 12 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

Subscribe to our newsletter

Latest Tweets

  • Tweet Avatar
    leaddbs
    @leaddbs
    RT @MichaelOkun: Congrats to @DBSThinkTank for the new Frontiers ebook of 26 articles and so far over 100,000 views.… https://t.co/BB5xZQsYr7

    1 year
  • Tweet Avatar
    leaddbs
    @leaddbs
    An automated programming algorithm building on top of Lead-DBS! 🎉😀🎈 https://t.co/2NxaVs9K9z

    1 year
  • Tweet Avatar
    leaddbs
    @leaddbs
    There will be a live demo of @leaddbs in Workshop #5! https://t.co/JCvSGZrkuH

    1 year

Recent Posts

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

Archives

  • 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