GithubHelp home page GithubHelp logo

civet_volumetric_atlas's Introduction

civet_volumetric_atlas

Scripts to map a volumetric atlas to CIVET surfaces.

A common procedure in neuroimaging is to take a volumetric (3D) atlas and map it onto the cortical surface. These scripts help with this procedure when the surfaces come from the CIVET pipeline.

Briefly, the idea is to randomly select a set of processed subjects, align their processed T1-weighted images to the atlas template, transform the processed and resampled ("rsl") mid-surfaces onto the template using the transforms obtained from the previous step, and determine the atlas label at each vertex. A vertex vote is then carried out across all the sampled subjects to determine a singular label at each vertex.

Requirements

These scripts require:

  • minc-toolkit-v2
  • ANTs
  • VTK
  • ITK
  • itk-vtkglue

Align surfaces to the atlas

  1. Run setup_alignment.py. This sets up the pipeline to be run, and requires the CIVET output directory, template (over which the atlas labels are defined, and registration output directory (where all the outputs of the subsequent steps will be written out). The registration output directory will contain scripts to be run; these can be run with GNU parallel and the number of threads can be customized.
  2. Run registrations.sh in the registration output directory. This can be run locally, in parallel to speed things up (but note that this might require a fair amount of memory), or passed to a compute cluster.
  3. Run surface_transforms.sh when the registrations are complete. This will transform surfaces to the template.

Get labels at vertices

Once the surfaces are transformed onto the atlas template, run probe_labels.py to get label values at each vertex. This script requires one or more surfaces, determines the closest (non-zero) label to each vertex in each surface, and subsequently carries out a vertex vote.

civet_volumetric_atlas's People

Contributors

yohanyee avatar

Stargazers

Gabriel A. Devenyi avatar

Watchers

Gabriel A. Devenyi avatar  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.