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

Localize DBS electrodes

You are here: Home1 / Forums2 / Support forum ARCHIVED – Please use Slack Channel instead3 / Localize DBS electrodes4

Tagged: f

Viewing 15 posts - 1 through 15 (of 34 total)
1 2 3 →
  • Author
    Posts
  • 12/06/2016 at 12:48 PM #1734
    ada.sevillamu
    Participant

    Hi,
    I was able to run each process of lead dbs some weeks ago. Now, I updated the program and I have some errors, so I am not able to localize dbs electrodes.
    First, when I am using Post-Operative CT scans, I run “Check Normalization” and I get these errors:

    Preparing images to show Normalization…
    No glgrid.nii file found!
    Done.
    ** Process done.
    >>

    Despite these lines, I continue the steps and when I try to localize the electrodes, I get these errors:

    Reference to non-existent field ‘acpc’.

    Error in ea_load_reconstruction (line 39)
    coords_acpc=reco.acpc.coords_mm;

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

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

    Error in ea_run (line 95)
    ea_autocoord(options);

    Error in lead_dbs>run_button_Callback (line 240)
    ea_run(‘run’,options);

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

    Error in lead_dbs (line 43)
    gui_mainfcn(gui_State, varargin{:});

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

    >>

    Thank you, Ada

    12/06/2016 at 5:13 PM #1736
    andreashorn
    Keymaster

    Hi Ada,

    sorry for the problems,

    the “acpc” bug is already known and will be fixed in the next release. In the meantime, please comment (add a ‘%’ in front) line 39 in the ea_load_reconstruction.m file to make it work.

    Re. your first error, these are no errors and you should be fine. However, in case nothing happens, please make sure you find a file called “mni_wires.mat” inside lead/templates folder.
    If you don’t, you can download the file here (https://dl.dropboxusercontent.com/u/18255196/mni_wires.mat) – or redownload lead-dbs from the website.

    Best, Andy

    12/09/2016 at 3:26 PM #1752
    ada.sevillamu
    Participant

    Thank you Andy. I solved this problem with your tip, but now, I get some different errors. When I try tolocalize electrodes, I get:

    Index exceeds matrix dimensions.

    Error in ea_manualreconstruction>updatescene (line 429)
    memp_eldist=mean([emp_eldist{1},emp_eldist{2}]);

    Error in ea_manualreconstruction (line 43)
    updatescene([],[],mcfig);

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

    Error in ea_run (line 95)
    ea_autocoord(options);

    Error in lead_dbs>run_button_Callback (line 240)
    ea_run(‘run’,options);

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

    Error in lead_dbs (line 43)
    gui_mainfcn(gui_State, varargin{:});

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

    >>

    Thank you, Ada

    12/09/2016 at 5:07 PM #1753
    andreashorn
    Keymaster

    Hi Ada,

    glad it worked.
    What you could do is i) try with a “manual” entrypoint, i.e. set the popup menu to “manual” before running the pre-localization step. You’ll be prompted with a window in which you may click on the electrodes within a red rectangle.
    If you don’t see the electrodes at all, something went wrong in normalization.
    ii) try with another patient – just to verify it works in general on your side. If that works, we can definitely fix it for the current patient, as well.

    Best, Andy

    02/24/2017 at 8:20 PM #2135
    Atefeh
    Participant

    Hello,
    I was aslo able to work with lead DBS 2 weeks ago but now I updated it and it does not work!
    when I type lead dbs in the command window, I get these errors:

    Error using ea_firstrun
    Too many input arguments.

    Error in lead_dbs>lead_dbs_OpeningFcn (line 158)
    ea_firstrun(handles,options);

    Error in gui_mainfcn (line 220)
    feval(gui_State.gui_OpeningFcn, gui_hFigure, [], guidata(gui_hFigure), varargin{:});

    Error in lead_dbs (line 43)
    gui_mainfcn(gui_State, varargin{:});

    Error in lead>lead_OpeningFcn (line 79)
    lead_dbs;

    Error in gui_mainfcn (line 220)
    feval(gui_State.gui_OpeningFcn, gui_hFigure, [], guidata(gui_hFigure), varargin{:});

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

    I would be grateful, if you could help.

    Best wishes,
    Atefeh

    • This reply was modified 3 years, 11 months ago by Atefeh.
    02/24/2017 at 8:29 PM #2137
    andreashorn
    Keymaster

    Please replace this file: https://dl.dropboxusercontent.com/u/18255196/ea_firstrun.m

    02/24/2017 at 8:34 PM #2138
    Atefeh
    Participant

    Thank you so much! It is working now :)

    02/24/2017 at 8:39 PM #2139
    andreashorn
    Keymaster

    Sure, no problem!

    02/27/2017 at 8:49 PM #2146
    Atefeh
    Participant

    Hello,
    I am trying to normalize the images, but I get this error:

    Undefined function or variable “to”.

    Error in ea_normalize_ants (line 80)
    ea_ants_nonlinear(to,from,[directory,options.prefs.gprenii],weights,metrics,options);

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

    Error in ea_run (line 89)
    ea_autocoord(options);

    Error in lead_dbs>run_button_Callback (line 192)
    ea_run(‘run’,options);

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

    Error in lead_dbs (line 43)
    gui_mainfcn(gui_State, varargin{:});

    Error in @(hObject,eventdata)lead_dbs(‘run_button_Callback’,hObject,eventdata,guidata(hObject))

    Error while evaluating UIControl Callback

    I would be happy, if someone could help.

    Best,
    Atefeh

    02/27/2017 at 8:51 PM #2147
    andreashorn
    Keymaster

    Hi Atefeh,

    it seems that some files are not properly installed in your installation. Please try a fresh installation from the website which should fix this.

    Best, Andy

    02/27/2017 at 8:55 PM #2148
    Atefeh
    Participant

    Hi Andy,

    I also installed lead dbs again, but it is still not working…

    Best,
    Atefeh

    02/27/2017 at 8:59 PM #2149
    andreashorn
    Keymaster

    Okay. Then it seems that the files in your subject directory are not named correctly. Can you tell me which files you put into the patient’s folder?

    Also, has it worked for you in the past?

    Best, Andy

    02/27/2017 at 9:10 PM #2150
    Atefeh
    Participant

    I dont think that it is because of the patient’s folder, because I could localize the electrodes successfully some weeks ago and it is not working anymore now!

    Best,
    Atefeh

    02/27/2017 at 9:14 PM #2151
    andreashorn
    Keymaster

    Can’t really help you without that information though.. Need some more info to reproduce this and debug.

    Does this only happen for this specific patient or for all patients you tried?

    02/27/2017 at 9:39 PM #2152
    Atefeh
    Participant

    Here you can see a screen shot of my patient’s folder:
    http://tinypic.com/r/2q1xixf/9

    It is not working for any patients…

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

Your Account

Log In
Register

Forum Statistics

Registered Users
131
Forums
1
Topics
185
Replies
607
Topic Tags
81

Subscribe to our newsletter

Latest Tweets

  • Tweet Avatar
    leaddbs
    @leaddbs
    RT @ingmatman: As BrainHack Micro2Macro is getting closer, it is time to have a look at the projects proposed so far to (1) get yo… https://t.co/n4vFQcT22o

    5h
  • Tweet Avatar
    leaddbs
    @leaddbs
    Nice study investigating effect of pallidal stimulation on camptocormia in Parkinson's Disease… https://t.co/cPpvX7Kh3F

    19h
  • Tweet Avatar
    leaddbs
    @leaddbs
    Cool application of fNIRS recordings under active DBS to the subthalamic nucleus 👇👇 https://t.co/lLnrhrwXfq

    19h

Recent Posts

  • Lead-DBS on the cover of NeuroImage
  • Lead-DBS on the cover of Biological Psychiatry
  • Lead-DBS on the cover of Annals of Neurology
  • Crucial methodological updates for Lead-DBS
  • 2nd Lead-DBS Workshop in Shanghai, China

Archives

  • 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

Impressum & Datenschutzerklärung

Scroll to top