03/12/2019 at 11:05 AM #6963
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
function because it calls the ‘uiputfile’ function, which is not supported
for this product offering.
Error in ea_run (line 80)
Error in lead_dbs>exportcode_Callback (line 1103)
Error in gui_mainfcn (line 95)
Error in lead_dbs (line 43)
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:
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?
Maria03/12/2019 at 10:06 PM #6967
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
Best, Andy03/12/2019 at 10:07 PM #6968
…maybe also check out this page for some general advice about how Lead-DBS is built:
You must be logged in to reply to this topic.