Viewing 6 posts - 1 through 6 (of 6 total)
Viewing 6 posts - 1 through 6 (of 6 total)
- The forum ‘Support Forum (ARCHIVED – Please use Slack Channel instead)’ is closed to new topics and replies.
Dear 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,
Monique
Dear Monique,
Please check the function ea_reconstruction2acpc
(in which ea_native2acpc
is called). You just need to set proper options.root
, options.patientname
and options.sides
to make it work.
Best,
Ningfei
Hi 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,
Monique
Hi Monique,
You need to manually set options
properly for custom script. Which field of options
doesn’t exist when you tried?
Best,
Ningfei
Hi 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
Ah thank you so much.
This did exactly what I was looking for.
Best,
Monique
Cookie | Duration | Description |
---|---|---|
cookielawinfo-checkbox-analytics | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics". |
cookielawinfo-checkbox-functional | 11 months | The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional". |
cookielawinfo-checkbox-necessary | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary". |
cookielawinfo-checkbox-others | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other. |
cookielawinfo-checkbox-performance | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance". |
PHPSESSID | session | This cookie is native to PHP applications. The cookie is used to store and identify a users' unique session ID for the purpose of managing user session on the website. The cookie is a session cookies and is deleted when all the browser windows are closed. |
viewed_cookie_policy | 11 months | The cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data. |
Cookie | Duration | Description |
---|---|---|
_ga | 2 years | This cookie is installed by Google Analytics. The cookie is used to calculate visitor, session, campaign data and keep track of site usage for the site's analytics report. The cookies store information anonymously and assign a randomly generated number to identify unique visitors. |
_gat_gtag_UA_52019623_1 | 1 minute | This cookie is set by Google and is used to distinguish users. |
_gid | 1 day | This cookie is installed by Google Analytics. The cookie is used to store information of how visitors use a website and helps in creating an analytics report of how the website is doing. The data collected including the number visitors, the source where they have come from, and the pages visted in an anonymous form. |
Cookie | Duration | Description |
---|---|---|
CONSENT | 16 years 5 months 17 days 13 hours | These cookies are set via embedded youtube-videos. They register anonymous statistical data on for example how many times the video is displayed and what settings are used for playback.No sensitive data is collected unless you log in to your google account, in that case your choices are linked with your account, for example if you click “like” on a video. |
IDE | 1 year 24 days | Used by Google DoubleClick and stores information about how the user uses the website and any other advertisement before visiting the website. This is used to present users with ads that are relevant to them according to the user profile. |
test_cookie | 15 minutes | This cookie is set by doubleclick.net. The purpose of the cookie is to determine if the user's browser supports cookies. |
VISITOR_INFO1_LIVE | 5 months 27 days | This cookie is set by Youtube. Used to track the information of the embedded YouTube videos on a website. |
vuid | 2 years | This domain of this cookie is owned by Vimeo. This cookie is used by vimeo to collect tracking information. It sets a unique ID to embed videos to the website. |
YSC | session | This cookies is set by Youtube and is used to track the views of embedded videos. |
yt-remote-connected-devices | never | No description available. |
yt-remote-device-id | never | No description available. |