-
AuthorPosts
-
03/12/2019 at 11:05 AM #6963
maria
ParticipantHello 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 #6967andreashorn
KeymasterHi 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 usingoptions=ea_getptopts(‘/path/to/your/patient/’);
Best, Andy
03/12/2019 at 10:07 PM #6968andreashorn
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
-
AuthorPosts
- The forum ‘Support Forum (ARCHIVED – Please use Slack Channel instead)’ is closed to new topics and replies.
