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.
This is work in progress and not meant to be used as a medical tool.
- Kreilkamp, B.A.K., Das, K., Wieshmann, U.C., Tyler, K., Kiel, S., Gould, S., Marson, A.G., Keller, S.S. (2017) Voxel-based MRI Analysis Can Assist Clinical Diagnostics in Patients with MRI-negative Epilepsy. Organization of Human Brain Mapping, Vancouver, Canada, June 2017. http://tiny.cc/VBM_epilepsy
Copyright © 2019, Barbara A.K. Kreilkamp. This project is licensed under BSD-3-Clause.
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 |
- Download the latest release and unzip it. From command line change directory to the package:
cd /path/to/CLF-python/
- Pip-Users: Install the requirements by running the following command:
pip install -r requirements.txt
- Conda-Users: Install the requirements by running the following command:
conda install --file requirements.txt
- You can then simply run the code:
python CLF/example_workflow.py
- Depending on your installations of the python version, you may have to specify the versions explicitly, e.g.:
python3.7 CLF/example_workflow.py
OVERVIEW of DCT_compile.m script (steps in the pipeline)
-
Load dicoms, and convert dicoms to nifti.
-
Set origin along ac-pc in T1w (probably not necessary to do this explicitly/manually in FSL).
-
Coregistration, deformation (including registration to MNI-template).
-
Segmentation with cat12-equivalent.
-
Calculate TIV.
-
Remove subcortical GM (using AAL template).
-
Remove cerebellum (using AAL template).
-
Calculate junction area ("blurring", voxels with intensity between WM and GM) and cortical extension area (thresholded above 0.5 - gives GM voxels) images.
-
Smooth junction and extension file.
-
ttestJCT, ttestEXT (between patient and controls, confounds: age, sex, TIV)
-
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
-
For each finding, remove duplicate (summary) file in case summary and non-summary are the same.
-
Move newly-created dicom files to subject's results directory (tell clinician results are ready, and where to find them).
Please use GitHub issues for questions, bug reports or feature requests.
- Samuel Berry: @el-suri
- Tom Chambers
- Devin Crowley: @devincrowley
- Omer Faruk Gulban: @ofgulban
- Johnny King Lau: @jonkingseestheworld
- Roopa Pai: @roopa-pai
- Carsten Schmidt-Samoa: @carsten.schmidt-samoa
- Lennart Wittkuhn: @lnnrtwttkhn
This method is extended and modified from this publication on the Morphometric Analysis Pipeline (MAP) developed by Huppertz et al. 2005:
- Huppertz, H.-J., Grimm, C., Fauser, S., Kassubek, J., Mader, I., Hochmuth, A., Schulze-Bonhage, A. (2005). Enhanced visualization of blurred gray-white matter junctions in focal cortical dysplasia by voxel-based 3D MRI analysis. Epilepsy Research, 67(1-2), 35-50. https://doi.org/10.1016/j.eplepsyres.2005.07.009
