Skip to content

cnnp-lab/2023Leiberg_ATLRmorphology

Repository files navigation

2023Leiberg_ATLRmorphology

Analysis code for the paper "Effects of anterior temporal lobe resection on cortical morphology".

Dependencies:

The script voxel_featuers_excludeTL.m requires the MATLAB libraries CorticalFoldingAnalysisTools and iso2mesh. The script run_analysis.m requires the MATLAB library SurfStat. The scripts run on MATLAB versions starting with R2016b.

Details on how to run:

Data used for the analysis can be found on zenodo, DOI.

The script fs_voxel_features_excludeTL.m is a version of the script published along with the paper Local Morphological Measures Confirm that Folding within Small Partitions of the Human Cortex Follows Universal Scaling Law, adapted to allow the exclusion of the temporal lobe region from the morphological analysis. We ran the script on individuals with temporal lobe epilepsy pre- and postoperatively excluding the ipsilateral temporal lobe, and we used it to process all controls twice, with and without temporal lobes. The script requires the FreeSurfer annotation files ?.aparc.annot, in addition to the files used in the previous version ?h.pial, ?h.thickness, ?h.pial-outer-smoothed (see the FreeSurfer lGI website), and an expansion of the ?h.white surface by 0.5 saved as ?h.mid (using FreeSurfer mris_expand -thickness ?h.white 0.5 ?h.mid).

After running fs_voxel_features_excludeTL.m, we registered each subject's data to the fsaverage using the FreeSurfer function mri_surf2surf. We then collated the subjects' data into one file for each measure, hemisphere, and onset side (to use healthy controls with their left temporal lobe excluded when correcting left onset patients etc). We also produced corresponding meta data files containing age, sex, site/scanning protocol, and whether the subject is a control, in the same order as the data.

These data and meta data files can be found in the folder not_corrected on zenodo. They are required to run the script pointwiseGAM.R. Line 7 of the script can be edited to run for different measures, onset side, and hemisphere. (Paths on line 9,10,38 can be edited for different input/ output folders.)

After running the GAM correction, we used the freesurfer function mris_apply_reg with the Xhemi interhemispheric registration to convert left hemisphere data to right hemisphere and vice versa for individuals with right onset epilepsy. We then collated (using SurfStat functions SurfStatListDir & SurfStatReadData) data of all subjects with TLE into pre- and postoperative tables for each measure to use in the run_analysis.m script. The data can be found in the folder age_sex_corrected on zenodo. The script requires the surfstat folder in its path, as well as the fsaverage FreeSurfer folder. (Paths on line 11 and 14 can be edited for different input/ output folders.)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published