Main content

Home

Menu

Loading wiki pages...

View
Wiki Version:
# KUL_FWT "KULeuven - Fun With Tracts" - is a fully automated subject specific workflow for parcellation-based tractography using MRTrix3 for tractography, and ScilPy and Dipy tools for filtering, taking screenshots and generating bundle profiles. Please refer to the BioRXiv preprint, "An atlas of white matter anatomy, its variability, and reproducibility based on Constrained Spherical Deconvolution of diffusion MRI", available here -> https://doi.org/10.1101/2021.10.13.464139 The accompanying code can be found on the Github repository -> https://github.com/KUL-Radneuron/KUL_FWT.git ## Introduction FWT employs automated tractography using MRTrix3 (Tournier et al., 2019, p. 3) v3.0.2, which is constrained by a selection of grey matter and WM 3D VOIs/parcels used to create “inclusion” and “exclusion” areas, based on the neuroanatomical literature. These VOIs/parcels are obtained from FreeSurfer (Fischl, 2012) v6 (FS), the Multi-Scale Brain Parcellator (Tourbier et al., 2019) v1.1.1 (MSBP), and several apriori atlases (see supplementary materials for details), along with custom VOIs manually defined in template space (the anterior commissure midline, and posterior commissure VOIs), and other custom VOIs that are generated by label propagation, (e.g., subsegmentation of the periventricular white matter, temporal stem, insula, and superior temporal gyrus subcortical white matter). Streamlines filtering is done using ScilPy (Bore et al., 2021; “Scilpy documentation,” 2021) v.1.1.0 and DIPY (Garyfallidis et al., 2014) tools and v1.3.0 for all bundles except the optic radiations for which we used the fiber-to-Bundle Coherence tool in DIPY (Garyfallidis et al., 2014) v1.3.0. FWT can be used for individual bundle tractography or whole brain tractography followed by streamlines segmentation. ## Description The KUL_FWT repo contains 2 main workflows for individual datasets: - The first is called KUL_FWT_make_VOIs.sh is responsible for the automated generation of all data preparation, and inclusion and exclusion VOIs from the FreeSurfer and MSBP parcellations, and the preprocessed diffusion data. - The second is called KUL_FWT_make_TCKs.sh is responsible for the automated generation of all tractograms, and streamline filtering, using the output from KUL_FWT_make_VOIs.sh Equivalent workflows are also provided for group-averaged template data (T1 and FOD), as described in our manuscript. These are called KUL_FWT_make_VOIs_4Temp.sh and KUL_FWT_make_TCKs_4Temp.sh Equivalent workflows are also provided for group-averaged template data (T1 and FOD), as described in our manuscript. These are called KUL_FWT_make_VOIs_4Temp.sh and KUL_FWT_make_TCKs_4Temp.sh ![enter image description here][1] Below is a schematic of the FWT workflow, followed by the user instructions for each part: ![enter image description here][2] ### Required inputs for both parts are: 1) BIDS participant name (anonymised name of the subject without the "sub-" prefix) (input to -p) 2) BIDS participant session, if you have multiple sessions (session no. without the "ses-" prefix) (input to -s) 3) Full path and file name of scale 3 MSBP parcellation (input to -M) 4) full path and file name of aparc+aseg.mgz from FreeSurfer (input to -F) 5) Full path and name of FWT configuration file with list of tracks to segment from the whole brain tractogram (input to -c) *** See KUL_FWT directory for example configuration text file 6) Full path to directory with preprocessed diffusion data (specific to subject and session) (input to -d) ** Please note that while FWT will do some internal image processing and registration, it **requires** all input diffusion data to be fully preprocessed in advance, and full FreeSurfer recon-all and MSBP output directories ** ## KUL_FWT_make_VOIs.sh generates all inclusion and exclusion VOIs for fully automated fiber tractography according to an input config file Usage: KUL_FWT_make_VOIs.sh -p pat001 -s 01 -F /path_to/FS_dir/aparc+aseg.mgz -M /path_to/MSBP_dir/sub-pat001_label-L2018_desc-scale3_atlas.nii.gz -d /path_to/dMRI_dir -c /path_to/KUL_FWT_tracks_list.txt -o /fullpath/output Examples: KUL_FWT_make_VOIs.sh -p pat001 -s 01 -F /path_to/FS_dir/aparc+aseg.mgz -M /path_to/MSBP_dir/sub-pat001_label-L2018_desc-scale3_atlas.nii.gz -d /path_to/dMRI_dir -c /path_to/KUL_FWT_tracks_list.txt -o /fullpath/output -n 6 Purpose: This workflow generates the VOIs needed for fiber tracking by KUL_FWT_make_TCKs.sh from input FS and MSBP for all bundles specified in the input config file for single subject data Required arguments: -p: BIDS participant name (anonymised name of the subject without the "sub-" prefix) -s: BIDS participant session (session no. without the "ses-" prefix) -M: full path and file name of scale 3 MSBP parcellation -F: full path and file name of aparc+aseg.mgz from FreeSurfer -c: path to config file with list of tracks to segment from the whole brain tractogram -d: path to directory with preprocessed diffusion data (specific to subject and run) Optional arguments: -n: number of cpu for parallelisation (default is 6) -h: prints help menu -o: full path to output dir (if not set reverts to default output ./sub-*_ses-*_KUL_FWT_output) ## KUL_FWT_make_TCKs.sh part of the KUL_FWT package of fully automated workflows for fiber tracking Usage: KUL_FWT_make_TCKs.sh -p pat001 -s 01 -F /path_to/FS_dir/aparc+aseg.mgz -M /path_to/MSBP_dir/sub-pat001_label-L2018_desc-scale3_atlas.nii.gz -d /path_to/dMRI_dir -c /path_to/KUL_FWT_tracks_list.txt -o /fullpath/output -T 2 -f 2 Examples: KUL_FWT_make_TCKs.sh -p pat001 -s 01 -F /path_to/FS_dir/aparc+aseg.mgz -M /path_to/MSBP_dir/sub-pat001_label-L2018_desc-scale3_atlas.nii.gz -d /path_to/dMRI_dir -c /path_to/KUL_FWT_tracks_list.txt -o /fullpath/output -n 6 -T 1 -f 1 -S -Q Purpose: This workflow creates all bundles specified in the input config file using the inclusion and exclusion VOIs created by KUL_FWT_make_VOIs.sh for single subject data Required arguments: -p: BIDS participant name (anonymised name of the subject without the "sub-" prefix) -s: BIDS participant session (session no. without the "ses-" prefix) -T: Tracking and segmentation approach (1 = Bundle-specific tckgen, 2 = Whole brain tckgen & bundle segmentation) -M: Full path and file name of scale 3 MSBP parcellation -F: Full path and file name of aparc+aseg.mgz from FreeSurfer -c: Path to config file with list of tracks to segment from the whole brain tractogram -d: Path to directory with preprocessed diffusion data (specific to subject and run) Optional arguments: -a: Specify algorithm for tckgen fiber tractography (tckgen -algorithm options are: iFOD2, iFOD1, SD_STREAM, Tensor_Det, Tensor_Prob) -f: Specify filtering approach (0 = No filtering, 1 = conservative, 2 = liberal) -o: Full path to output dir (if not set reverts to default output ./sub-*_ses-*_KUL_FWT_output) -Q: If set quantitative and qualitative analyses will be done -S: If set screenshots will taken of each bundle -n: Number of cpu for parallelisation (default is 6) -h: Prints help menu [1]: https://files.osf.io/v1/resources/snq2d/providers/osfstorage/61cba744ce4dbc0669c73e93?mode=render [2]: https://files.osf.io/v1/resources/snq2d/providers/osfstorage/61cba771b0ea71062cb2aa68?mode=render
OSF does not support the use of Internet Explorer. For optimal performance, please switch to another browser.
Accept
This website relies on cookies to help provide a better user experience. By clicking Accept or continuing to use the site, you agree. For more information, see our Privacy Policy and information on cookie use.
Accept
×

Start managing your projects on the OSF today.

Free and easy to use, the Open Science Framework supports the entire research lifecycle: planning, execution, reporting, archiving, and discovery.