Lead-DBS
  • Home
  • About
    • Deep Brain Stimulation
    • Quickstart Primer (Post-OP CT-Scans)
    • Quickstart Primer (Post-OP MR-Scans)
    • Publications
    • Citing Lead-DBS
    • Data & Code inclusion philosophy
    • List of Lead-DBS dependencies
    • Lead Connectome
  • News
  • Help/Support
    • Slack User Channel
    • Forum
    • Knowledge Base
      • Lead-DBS Methods
        • AC/PC to MNI conversion
        • DBS Network Mapping
        • Subcortical Electrophysiology Mapping (SEM)
      • Atlases/Resources
        • Cortical Atlas Parcellations (MNI-Space)
        • Subcortical Atlases (MNI-Space)
        • The DISTAL atlas
        • Macaque Atlases (MNI-Space)
        • Normative Connectomes
        • FEM-based VTA model
      • Walkthrough-Videos
      • Other Videos
      • Screenshots
  • Manual
  • Workshops
    • Brisbane February 2020
    • Machine Learning – Berlin September 2019
    • Berlin September 2019
    • Past workshops
      • Hamburg February 2019
      • Shanghai September 2018
      • Berlin 2016
  • Download
  • Contact
  • Search
  • Menu Menu

error message when trying to reconstruct lead

You are here: Home1 / Forums2 / Support Forum (ARCHIVED – Please use Slack Channel instead)3 / error message when trying to reconstruct lead4
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • 01/23/2015 at 12:34 PM #352
    mheldmann
    Participant

    Dear all,
    after normalization I am trying to reconstruct my electrode positions. Unfortunately, I get several error messages starting with “Preparing contrasted volume…
    Undefined function or variable ‘t’.

    Error in nanmean (line 7)
    N = sum(~isnan(t), dim);”

    Any idea what’s wrong? I am runnning lead-dbs under matlab 2012b, spm 8 and linux Debian.

    Thanks in advance, Marcus

    01/23/2015 at 8:36 PM #357
    andreashorn
    Keymaster

    Dear Marcus,

    I’m sorry for this error, most of all because I’ve known about it for some time now and should definitely fix it soon. The problem is that lead tries to use some builtin Matlab functions but instead uses functions supplied with fieldtrip (part of SPM) which have the same name.
    The functions in doubt should be located here:
    spmfolder/external/fieldtrip/connectivity/

    and are called nansum, nanmean and nanvar.

    A quick-fix would be to just rename these functions (maybe append a _ft to them or something temporarily) and the whole thing should work again. If you are a fieldtrip user, it might get a bit complicated since I guess that fieldtrip will need these versions for some connectivity analyses.
    I will fix this issue in an update soon.

    Yours, Andy

    01/26/2015 at 10:54 AM #366
    mheldmann
    Participant

    Thanks for your fast reply. I discovered another minor “typo”. The code refers to “/spm8/toolbox/seg/TPM.nii” when trying to use DARTEL normalization. Unfortunately, in SPM 8 it is written “Seg” instead of “seg”.

    Greetings, Marcus

    01/26/2015 at 9:15 PM #369
    andreashorn
    Keymaster

    Hi Marcus,

    thanks a lot for reporting this typo! I have fixed both errors and am uploading an update at the moment.
    In theory, there should be an “Update” button in the top row of the lead-GUI and you can press it to download the update.
    If not, you can run ea_update(‘force’) to do so.

    Did the rest of the process work for you so far?

    Yours, Andy

    01/27/2015 at 9:01 AM #371
    mheldmann
    Participant

    Dear Andy, actually I am fighting with the resolution of our structural MRs. All MRs were T1 images recorded with 1 mm isovoxel, I realized from your – by the way very nice – publication, that you recorded T2 with 0.5 mm in 2 dimensions. This makes the detection of the contacts much easier. Greetings, Marcus

    01/27/2015 at 3:02 PM #373
    andreashorn
    Keymaster

    Okay – I have made the same experience with MPRAGEs before, also T1 doesn’t seem to be as well suited to reconstruct the trajectory, but in general it seems to work for me. In some cases, you can’t delineate all 4 contacts of both electrodes, however, sometimes the uppermost contact seems to show a slightly larger artifact. Since the contacts are equidistant, this might help to place the contacts correctly. Also, you might want to estimate the distance between the electrode contacts, which is usually slightly greater than 2 mm (or 3 mm in 3387 electrodes) depending how much warping has been done in the normalization process. The distance should be displayed in the Manual Review window.
    When doing the first reconstructions, I agree that it sometimes feels a bit difficult where to exactly place the contacts, but after about 10 reconstructions, in my experience one gets a confident feeling about where to put them.
    If you happen to have some imaging data from 3387 electrodes, it might be easier to start with those as well.
    But in any case I’m happy that there were no further technical errors so far.
    Best, Andy

  • Author
    Posts
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.

Forum Statistics

Registered Users
130
Forums
1
Topics
185
Replies
607
Topic Tags
81

Subscribe to our newsletter

Latest Tweets

  • Tweet Avatar
    leaddbs
    @leaddbs
    RT @MichaelOkun: Congrats to @DBSThinkTank for the new Frontiers ebook of 26 articles and so far over 100,000 views.… https://t.co/BB5xZQsYr7

    1 year
  • Tweet Avatar
    leaddbs
    @leaddbs
    An automated programming algorithm building on top of Lead-DBS! 🎉😀🎈 https://t.co/2NxaVs9K9z

    1 year
  • Tweet Avatar
    leaddbs
    @leaddbs
    There will be a live demo of @leaddbs in Workshop #5! https://t.co/JCvSGZrkuH

    1 year

Recent Posts

  • Lead-OR out now
  • Bug in Lead-DBS v2.5
  • Lead-DBS v2.5 out now!
  • Lead-DBS on the cover of NeuroImage
  • Lead-DBS on the cover of Biological Psychiatry

Archives

  • August 2021
  • July 2021
  • 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

Imprint | Privacy Policy

Scroll to top
We use cookies to ensure that we give you the best experience on our website. You may “Accept All” or visit "Cookie Settings" to provide a controlled consent.
Cookie SettingsAccept All
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
CookieDurationDescription
cookielawinfo-checkbox-analytics11 monthsThis 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-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary11 monthsThis 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-others11 monthsThis 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-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
PHPSESSIDsessionThis 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_policy11 monthsThe 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.
Analytics
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
CookieDurationDescription
_ga2 yearsThis 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_11 minuteThis cookie is set by Google and is used to distinguish users.
_gid1 dayThis 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.
Third-party
Cookies from third-party contents on the website.
CookieDurationDescription
CONSENT16 years 5 months 17 days 13 hoursThese 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.
IDE1 year 24 daysUsed 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_cookie15 minutesThis cookie is set by doubleclick.net. The purpose of the cookie is to determine if the user's browser supports cookies.
VISITOR_INFO1_LIVE5 months 27 daysThis cookie is set by Youtube. Used to track the information of the embedded YouTube videos on a website.
vuid2 yearsThis 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.
YSCsessionThis cookies is set by Youtube and is used to track the views of embedded videos.
yt-remote-connected-devicesneverNo description available.
yt-remote-device-idneverNo description available.
SAVE & ACCEPT
Powered by CookieYes Logo