Giter Club home page Giter Club logo

virtuallesion's Introduction

Virtual Lesion

This series of notebooks is used to determine the evidence for a pathway connecting two ROIs following those described in Pestilli et al.[1] and Leong et al.[2].

Image

Required steps before running these notebooks:

  1. Regions of interest (ROIs) were defined in MNI space and subsequently warped from MNI space to each individual subject’s native space (e.g., fsl5.0-applywarp -i roi.nii.gz -r T1w/Diffusion/nodif_brain_mask.nii.gz -w MNINonLinear/xfms/standard2acpc_dc.nii.gz -o roi_warped)
  2. Whole-brain connectomes were generated (see mrtrix.py and mrtrix.sh for details):
    1. Constrained spherical deconvolution (CSD)[3] was used to estimate the fiber orientation distribution function (fODF). The fODFs were combined with tissue segmentations derived from the high resolution T1-weighted images to perform anatomically-constrained tractography[4]
    2. A whole-brain connectome was then generated by seeding all voxels in the white matter. These were filtered down using spherical-deconvolution informed filtering of tractograms (SIFT)[5]

Calculation steps done in these notebooks:

  1. Virtual_Lesion_Step1
    1. Generate fiber tracks by seeding from ROI1 and selecting only those that pass through ROI2, and vise versa, with MRtrix3
    2. Remove the fibers from the previous step that do not start in one ROI and end in the other (The fibers that pass through the ROIs but do not terminate in them)
    3. Combine all valid fiber tracks into one candiadate streamline set
    4. Cluster the candiadate streamlines with the dipy[6] QuickBundles algorithm[7] to remove outliers
  2. Virtual_Lesion_Step2
    1. Calculate the neighborhood of the candidate streamlines (Voxels where the streamlines pass through)
    2. Find fibers in the whole brain connectome that pass through the neighborhood
    3. Combine whole brain connectome with candidate streamlines into one steamline set
    4. Run the LiFE optimization on this combined streamline set and retrieve RMSE between the original diffusion data set and the LiFE prediction
    5. Run the LiFE otimization and RMSE calculation again on the whole brain, but this time without the candidate streamlines
  3. Virtual_Lesion_Step3
    1. Calculating the normalized difference of the two RMSEs provides the Strength of Evidence
    2. Save the LiFE optimized candidate streamlines between the two ROIs

**Do not run the parallization on all cores. These notebooks are parallalized by subjects. The limiting factor is the memory usage per process.

[1] PMID: 25194848
[2] PMID: 26748088
[3] PMID: 18583153
[4] PMID: 22705374
[5] PMID: 23238430
[6] PMID: 24600385
[7] PMID: 23248578

virtuallesion's People

Contributors

rfdougherty avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.