Giter VIP home page Giter VIP logo

data-driven-tractography's Introduction

Data-driven-tractography

This repository contains scripts to perform data-driven mapping of white matter bundles and corresponding grey matter networks from whole brain tractography data, as descibed in this pre-print: Non-Negative Data-Driven Mapping of Structural Connections in the Neonatal Brain; E. Thompson, A.R. Mohammadi-Nejad, E.C. Robinson, M.F. Glasser, S. Jbabdi, M. Bastiani, S.N. Sotiropoulos (2020).

Code Overview

  • pre_mat2.sh, run_mat2.sh and post_mat2.sh contain scripts to generate a grey matter to whole brain connectivity matrices, using probabilistic tractography (matrix2 in FSL).
  • dot2npz.py converts the sparse .dot files output from probtrackx to numpy's sparse format .npz, so that they can be manipulated in python.
  • the .npz files can then be averaged using average_matrices.py
  • run_PCA.py, run_ICA.py and run_NMF.py are used to run decompositions on the connectivity matrices
  • the output .npy files from the decompositions can be converted into cifti (grey matter) and nifti (white matter) formats using npy2cifti.py and npy2nifti.py, respectively
  • parcellate.py generates hard cortical parcellations based on the grey matter components
  • NNLS_dual_regression.py can be used to generate subject-level representations of the group level components

Usage

  • An example pipeline is given in example_pipeline.sh
  • The scripts were written based on data from the developing Human Connectome Project (http://www.developingconnectome.org), and so many require inputs of a subject and session ID to locate files because of the way the dHCP data are organised. A separate branch is being developed without the session IDs and some other features that are tailored to data from the young adult HCP (thanks Shaun)

Requirements

  • FSL is required for the tractography (ideally with GPUs for speed)
  • Python scripts run in Python 2.7

data-driven-tractography's People

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.