AD: ANTs
Prior to following these instructions, install Windows Subsystem for Linux (i.e. WSL) and then install Ubuntu. Also install ITK-SNAP and MRICroGL.
Follow the instructions in the 'ANTs Installation' confluence page: https://osabrainresearch.atlassian.net/wiki/spaces/AN/pages/2623504387
Make a new folder named Analysis_ANTs_Test, with a ‘projects’ folder, a ‘stats’ folder and a subfolder called ‘CONTROL’ in the ‘projects’ folder.
Copy in a few of your subject folders into the ‘CONTROL’ folder. Also make sure to copy in your ‘method’ file into the ’metadata' folder in each subjects' DTI folder.
In the following directory, make a folder and name it ‘rats_mri_project’: \\wsl.localhost\Ubuntu\home\*your user folder*. Note - If you are able to access the ‘root’ folder in your ‘Ubuntu’ folder, make this ‘rats_mri_project’ folder in the ‘root’ folder, instead of the ‘home’ folder.
Open CSPM → Preclinical.
In the ‘Main’ tab, tick the ‘VBM’ and ‘DTI’ boxes.
In the ‘Setup’ tab, make sure ‘Rat’ is selected (with a scale factor of 8), paste your ‘projects’ folder path into the ‘Project folder’ box, the folder path of your ‘rats_mri_project' into the ‘Linux folder’ box and the folder path of your ‘stats' folder into the ‘Stats’ box. E.g.
In the ‘VBM’ and ‘DTI’ tabs, enter your voxel size and desired smoothing kernel size.
Click the ‘ANTs In-n-Out’ button.
Once ‘ANTs In-n-Out’ has finished running, go through each subjects’ folder in the ‘subjects’ folder of your ‘rats_mri_project’ folder and open the images with the suffixes ‘BrainExtractionBrain’, ‘BrainExtractionMask’ and ‘InverseWarped’, side by side. Note- these images are in GZ file format. You don’t have to convert them to nifti format to view them. Simply drag and drop them into MRIcroGL windows.
Also open the SIGMA template (or anatomical mean, if you have decided to run ANTs after running ‘Preprocess after Coreg’), next to the above images.
Compare the three images to the SIGMA template. This is an example of a subject for which the brain was extracted properly:
If you find a subject for which the brain was not extracted properly, e.g.
read the instructions on page https://osabrainresearch.atlassian.net/wiki/spaces/AN/pages/2623733772 for how to use ITK-SNAP to improve brain extraction.
Then re-run ‘ANTs In-n-Out’.
Go through and check the ‘BrainExtractionBrain’, ‘BrainExtractionMask’ and ‘InverseWarped’ images for subjects which you masked in ITK-SNAP, to check their brains were extracted properly.
If it works on this sub-set of your subjects, go ahead and paste the folder path of your analysis folder with all your subjects in it, into the ‘Preclinical’ GUI and click ‘ANTs In-n-Out’. Then repeat steps 10-15.
You can now analyse your data by following the instructions in the https://osabrainresearch.atlassian.net/wiki/spaces/AN/pages/2627109034/AD+Data+Analysis+and+Visualisation?atlOrigin=eyJpIjoiMTZiODQ0OWJkMmNiNGM1NTkxZTRjZDUyOWRmMDE5Y2MiLCJwIjoiYyJ9 page.