Giter VIP home page Giter VIP logo

corticalthickness's Introduction

Measuring Cortical Thickness in V1 using Freesurfer

Measuring cortical thickness in the primary visual cortex (V1), focusing on the pericalcarine region, using Freesurfer.

Prerequisites

  • Ensure Freesurfer is installed and properly configured on your system.
  • Have the subject’s T1-weighted MRI scan available for processing.

1. Environment Setup

Open a terminal and set the SUBJECTS_DIR environment variable to point to the directory where Freesurfer will store processing outputs. Replace /path/to/your/freesurfer_subjects_directory with the actual path to your subjects directory.

export SUBJECTS_DIR=/path/to/your/freesurfer_subjects_directory

2. Running recon-all

Navigate to the directory containing the T1-weighted MRI. Start Freesurfer's processing pipeline using recon-all. Replace subjid with your subject's unique identifier, and /path/to/T1.nii with the actual path to the T1-weighted MRI file.

recon-all -s subjid -i /path/to/T1.nii -all

This will take several hours to complete!!!!!!!!!!!! maybe try FastSurfer if you are impatient!

3. Visualising Processed Data

FreeView Example

Once recon-all has finished, use freeview to visually inspect the cortical parcellations, including the pericalcarine area.

freeview -v $SUBJECTS_DIR/subjid/mri/T1.mgz \
         -f $SUBJECTS_DIR/subjid/surf/lh.pial:annot=aparc.annot \
         -f $SUBJECTS_DIR/subjid/surf/rh.pial:annot=aparc.annot

Explore the parcellations to familiarise yourself with the anatomical structures.

4. Extracting Cortical Thickness Measurements

For the pericalcarine region, use mris_anatomical_stats to extract cortical thickness measurements. Perform this for both hemispheres:

Right hemisphere command:

mris_anatomical_stats -b -f $SUBJECTS_DIR/subjid/stats/rh.aparc.stats subjid rh

FreeView Example

Repeat for the left/right hemisphere by replacing rh with lh.

5. Reviewing Results

Open the rh.aparc.stats and lh.aparc.stats files located in $SUBJECTS_DIR/subjid/stats to find detailed measurements. Search for the Pericalcarine entry for cortical thickness metrics.

6. Interpreting Data

The Pericalcarine entry provides average cortical thickness, surface area, volume, and other metrics for the primary visual cortex region (not actually, but as a practice assume this is the case). Use these measurements for comparisons or correlations.

corticalthickness's People

Contributors

cohanr avatar

Watchers

 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.