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

error message when trying to reconstruct lead

You are here: Home1 / Forums2 / Support forum ARCHIVED – Please use Slack Channel instead3 / 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.

Your Account

Log In
Register

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 @jefffMRI: These figures 🤯🤯 Congrats on an awesome paper and outcomes with the BNST! 🧠 I can see this being a key study that h… https://t.co/qMrA5U71Zh

    3d
  • Tweet Avatar
    leaddbs
    @leaddbs
    @GilmoreGreydon @DembekTill Sure makes sense just saying the code is there 🤗

    4d
  • Tweet Avatar
    leaddbs
    @leaddbs
    @GilmoreGreydon @DembekTill Hi Greydon, Till has incorporated DiODe into Lead-DBS and hence it’s in there already (… https://t.co/tlhxlM9DLy

    4d

Recent Posts

  • Lead-DBS v2.5 out now!
  • Lead-DBS on the cover of NeuroImage
  • Lead-DBS on the cover of Biological Psychiatry
  • Lead-DBS on the cover of Annals of Neurology
  • Crucial methodological updates for Lead-DBS

Archives

  • 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

Impressum & Datenschutzerklärung

Scroll to top