This was the code used to generate the results in the paper: Tacrolimus protects against age-associated microstructural changes in the beagle brain published in the Journal of Neuroscience, May 2021. (DOI)
The external atlases used in this project can be found at: Czeibert Atlas: https://figshare.com/s/628cbf7d4210271ffe70 Nitzsche Atlas: http://brainmapping.matrikel2001.de/dog/
Please cite if using any part of this repository: Radhakrishnan, H., Ubele, M., Krumholz, S., Boaz, K., Mefford, J., & Jones, E. et al. (2021). Tacrolimus protects against age-associated microstructural changes in the beagle brain. The Journal Of Neuroscience, JN-RM-0361-21. doi: 10.1523/jneurosci.0361-21.2021
Contact us at [email protected] for help.
Make sure anat and dwi files are in BIDs format before proceeding. (https://github.com/NILAB-UvA/bidsify) This script assumes each subject has multiple sessions. It can be easily modified for single session analysis.
Instructions on config.sh
- Preprocess diffusion image.
- Generate tensor metrics.
- Generate NODDI metrics.
- Align T1w to diffusion space.
- Skull strip and segment T1w image.
- Warp individual subject spaces to atlas spaces.
- Get averaged metrics (diffusion, volume) for each subject in a specified ROI (into an excel sheet).
- Get AFNI whole brain results.
Uses MRtrix3 to:
- Denoise diffusion data
- Correct Gibbs Ringing Artifacts
- Make brain masks.
- Generate averaged B0 images
Results in derivatives/mrtrix/preprocessed
./preprocess_dwi.sh <config_file> <subject_ID> <session_ID>
Uses MRtrix3 to estimate tensor metrics and generate ADC maps. Results in derivatives/mrtrix/tensors and derivatives/diffusion_metrics
./get_tensor_metrics.sh <config_file> <subject_ID> <session_ID>
Uses the MDT python toolbox to generate NODDI parametric maps after creating a protocol file from the diffusion gradient table. Results in derivatives/mdt and derivatives/diffusion_metrics
./get_mdt_metrics.sh <config_file> <subject_ID> <session_ID>
Extracts the B0 volumes from the diffusion image, averages across them and aligns the T1w image to that space. *Results in derivatives/ANTS
./align_t1b0.sh <config_file> <subject_ID> <session_ID>
Modified ANTS' Brain Extraction pipeline to be compatible with canine orientation.
./antsBrainExtraction_k9.sh #for detailed list of parameters.