Giter VIP home page Giter VIP logo

smacc's Introduction

SMACC-MRI:

Segment, Measure and AutoQC the midsagittal Corpus Callosum

This automated pipeline can be used for accurate Corpus Callosum (CC) segmentation across multiple MR modalities (T1, T2 and FLAIR) and extract a variety of features to describe the shape of the CC. We also include an automatic quality control function to detect poor segmentations using Machine Learning.

workflow

How to use the tool:

Clone the github directory using:

git clone https://github.com/ShrutiGadewar/smacc.git

Virtual environment:

Navigate to the "smacc" folder and then create a virtual environment using the requirements.txt file:

conda create -n smacc python==3.11 -y
conda activate smacc
pip install -r requirements.txt
pip install .

Input Preprocessing:

All the MR images should be registred to MNI 1mm template(182 X 218 X 182) with 6dof. You can use the template provided in the "model" folder on github. You can use the FSL's flirt command for linear registration:

flirt -in ${inpdir}/${subj}.nii.gz \
	-ref ${MNI_1mm_template} \
  	-out ${outdir}/${subj} \
 	-dof 6 \
  	-cost mutualinfo \
  	-omat ${outdir}/matrices/${subj}_MNI_6p.xfm

Test the tool:

smacc -f ./subject_list.txt -o ./smacc_output -m t1

-f : Text file with a list of absolute paths to the niftis to be processed and names to save the outputs for each subject. Check example text file "subject_list.txt" provided.
-o : Absolute path of output folder
-m : Modality of the images to be processed (t1/t2/flair)
-q : Optional flag to perform Automated QC on the segmentations
The final output is a csv which will contain all the extracted shape metrics and a column "QC label" indicating whether the segmentations were accurate(0)/fail(1) if the QC flag is provided.

If you use this code, please cite the following paper:

Gadewar SP, Nourollahimoghadam E, Bhatt RR, Ramesh A, Javid S, Gari IB, Zhu AH, Thomopoulos S, Thompson PM, Jahanshad N. A Comprehensive Corpus Callosum Segmentation Tool for Detecting Callosal Abnormalities and Genetic Associations from Multi Contrast MRIs. Annu Int Conf IEEE Eng Med Biol Soc. 2023 Jul;2023:1-4. doi: 10.1109/EMBC40787.2023.10340442. PMID: 38083493.

smacc's People

Contributors

shrutigadewar avatar

Watchers

 avatar

Forkers

usc-lobes

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.