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

Export Code for VTA calculation

You are here: Home1 / Forums2 / Support forum ARCHIVED – Please use Slack Channel instead3 / Export Code for VTA calculation4
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • 03/12/2019 at 11:05 AM #6963
    maria
    Participant

    Hello Lead-DBS team,

    I would like to see if it is possible to export the code for VTA calculation. I have tried checking the “Render 3D” and selecting the Export Code button, however I keep getting an error:

    Error using ea_export (line 8)
    Unable to run the
    ‘@(hObject,eventdata)lead_dbs(‘exportcode_Callback’,hObject,eventdata,guidata(hObject))’
    function because it calls the ‘uiputfile’ function, which is not supported
    for this product offering.

    Error in ea_run (line 80)
    ea_export(options);

    Error in lead_dbs>exportcode_Callback (line 1103)
    ea_run(‘export’,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(‘exportcode_Callback’,hObject,eventdata,guidata(hObject))
    Error while evaluating UIControl Callback.

    I am not sure if that can be done in that way, since the VTA simmulations is in another gui button in the 3D render.

    Looking at the GitHub repository I found the function ea_genvat_dembek, which requires inputs:
    VAT=ea_genvat(coords_mm,stimparams,options).
    I assume that each of the inputs correspond to:
    – coords_mm = reco.mni.coords_mm (from ea_reconstruction.mat)
    – stimparams = S (from stimparameters.mat)
    But I am not able to find what “options” refers to, could you let me know where to find it?
    In theory, if I generated the two structs needed, and give the options, could I ran the dembek simulation and generate the nifti files with “VAT=ea_genvat(coords_mm,stimparams,options)”, or do I need any other function?

    Thank you!

    Maria

    03/12/2019 at 10:06 PM #6967
    andreashorn
    Keymaster

    Hi Maria,

    yes, the export code.. button doesn’t help you there.
    But you’re right that the ea_genvat_*.m files should work.
    You can generate an options struct by using

    options=ea_getptopts(‘/path/to/your/patient/’);

    Best, Andy

    03/12/2019 at 10:07 PM #6968
    andreashorn
    Keymaster

    …maybe also check out this page for some general advice about how Lead-DBS is built:

    https://netstim.gitbook.io/leaddbs/ways-to-contribute-to-lead-dbs

    Best, Andy

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • 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 @nastasiayendiki: 1/ Update from round 2 of the IronTract Challenge (for more, watch out for #ISMRM2021 talk by @chiaramff - with… https://t.co/Fgxg8kds4d

    2d
  • Tweet Avatar
    leaddbs
    @leaddbs
    RT @andreashorn_: I was very honored about the possibility to interview one of my true heroes in the field of DBS modeling in a new… https://t.co/GTtgDOwZBi

    4d
  • Tweet Avatar
    leaddbs
    @leaddbs
    RT @MGHNeuroSci: Mark Richardson, MD, PhD, director of Functional Neurosurgery at @mghneurosurg, discusses the successful use of dee… https://t.co/zyPXo98pvt

    4d

Recent Posts

  • Lead-DBS v2.5 out now!
  • 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

Archives

  • 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

Impressum & Datenschutzerklärung

Scroll to top