barbrakr / CLF-python

Cortical Lesion Finder in Python (work in progress, not a medical tool)
GNU General Public License v3.0
1 stars 1 forks source link

Cortical Lesion Finder

Cortical Lesion Finder is a free and open source voxel-based-morphometry method to identify epileptogenic lesions. This tool works on structural MRI (T1-weighted MPRAGE or FSPGR) and is designed to identify malformations of cortical development such as focal cortical dysplasias, hippocampal sclerosis, amygdala enlargment, encephaloceles and gliosis.

Disclaimer

This is work in progress and not meant to be used as a medical tool.

Citation

License

Copyright © 2019, Barbara A.K. Kreilkamp. This project is licensed under BSD-3-Clause.

Core dependencies

Python 3.7 (other versions of python (>=3.0) should be fine too)

Package Tested version
NumPy 1.16.1
NiBabel 2.4.1
NiPype 1.4.0
niflow-nipype1-workflows 0.0.4

Installation

Workflow

OVERVIEW of DCT_compile.m script (steps in the pipeline)

  1. Load dicoms, and convert dicoms to nifti.

  2. Set origin along ac-pc in T1w (probably not necessary to do this explicitly/manually in FSL).

  3. Coregistration, deformation (including registration to MNI-template).

  4. Segmentation with cat12-equivalent.

  5. Calculate TIV.

  6. Remove subcortical GM (using AAL template).

  7. Remove cerebellum (using AAL template).

  8. Calculate junction area ("blurring", voxels with intensity between WM and GM) and cortical extension area (thresholded above 0.5 - gives GM voxels) images.

  9. Smooth junction and extension file.

  10. ttestJCT, ttestEXT (between patient and controls, confounds: age, sex, TIV)

  11. Create dicoms: (T1 proc., JL, EL, JS, ES) a. Cleaned-up T1w (normalized, standard space) b. Junction file binary, overlaid on T1w (P>C) c. Extension file binary (P>C) d. Junction (P<C) e. Extension (P<C) f. Summary (JL, EL) g. Summary (JL, ES) - HS gliosis h. Summary total (JL, JS, EL, ES all overlaid on T1w)

    **NOTE: diagnosis notes: in one case, FCD detected when blurring (junction) is larger, and extension (cortical extension) is greater. in alternative diagnosis (hippocampal scarring), the GM gets smaller, but blurring region increases

  12. For each finding, remove duplicate (summary) file in case summary and non-summary are the same.

  13. Move newly-created dicom files to subject's results directory (tell clinician results are ready, and where to find them).

Support

Please use GitHub issues for questions, bug reports or feature requests.

Collaborators

Reference

This method is extended and modified from this publication on the Morphometric Analysis Pipeline (MAP) developed by Huppertz et al. 2005: