-
AuthorPosts
-
06/22/2018 at 5:56 PM #4967
m.versteijlen
ParticipantDear Andreas,
First of all thank you for making all features of Lead-DBS publicly available.
But also I wanted to ask if there is a command-like method to warp a list of MNI coordinates to ACPC coordinates?
The manual way works like a charm, but for working from a Matlab script, it would be very nice to transform an entire array at once as a command.
Thanks in advance for your reply.Kind regards,
Monique06/22/2018 at 6:02 PM #4968ningfei
KeymasterDear Monique,
Please check the function
ea_reconstruction2acpc(in whichea_native2acpcis called). You just need to set properoptions.root,options.patientnameandoptions.sidesto make it work.Best,
Ningfei06/25/2018 at 6:21 PM #4983m.versteijlen
ParticipantHi Ningfei,
I’m sorry but I am still not quite clear how this works.
Other than manually setting the options to the desired patientname and rootfolder, I’m not getting further.
Later in the ea_native2acpc file there is another referral to options, which there does not exist, because I set them locally.
So is there a function or script in which the options are defined?Kind regards,
Monique06/25/2018 at 8:27 PM #4985ningfei
KeymasterHi Monique,
You need to manually set
optionsproperly for custom script. Which field ofoptionsdoesn’t exist when you tried?Best,
Ningfei06/25/2018 at 9:43 PM #4986andreashorn
KeymasterHi Monique,
I think what ningfei said may have been helpful but wasn’t exactly what you were looking for.
You can just use this snippet:
uipatdir={'/path/to/my/patientfolder1','/path/to/my/patientfolder2','/path/to/my/patientfolder3'}; cfg.xmm=-4; % x-coordinate cfg.ymm=-5; % y-coordinate cfg.zmm=10; % z-coordinate cfg.acmcpc=2; % relative to midcommissural point, AC would be 1, PC would be 3. fid=ea_mni2acpc(cfg,uipatdir);The first line would point to at least one patient normalized with Lead-DBS. Please do read the Horn 2017 NI paper to see why it may make a lot of sense to use a whole cohort to do this conversion. Instead, if you’re interested in the coordinate in ACPC in exactly one specific patient, then just using one patient is ideal.
The transformed coordinate will be fid.WarpedPointACPC;
AC, PC and MSP in native space will also be defined.
Then ea_acpc2mni would do the reverse.
Hope this helps!
Best, Andy
06/27/2018 at 3:48 PM #4993m.versteijlen
ParticipantAh thank you so much.
This did exactly what I was looking for.
Best,
Monique -
AuthorPosts
- The forum ‘Support Forum (ARCHIVED – Please use Slack Channel instead)’ is closed to new topics and replies.
