Find AAL brain atlas region name, from World(NIfTI)/MNI coordinate input
This procedure is embedded in brain image programs(Vinci, MRIcron), but it's hard to find codes for those who want to develop their own program.
In the meantime, yunshiuan/label4MRI was the best source that I utilized, but it was in R code. I ported it to python for making GUI program.
I also added World(NIfTI) coordinate input to MNI coordinate transformation (by using nilearn.image.coord_transform function), while yunshiuan/label4MRI only accepts MNI coordinate input.
python 3.8.1
pip 19.3.1
Try following commands (there could be more)
pip install numpy
pip install numbers
python AAL_check_program.py
Input : World (NifT) Coordinates Output : AAL brain region name
Windows standalone (.exe) program can be created from the .py code.
Try following commands
pyinstaller --onefile --noconsole AAL_check_program.py
If numpy error happens, add following path to Windows PATH variable
C:\Users\rccd\AppData\Local\Programs\Python\Python38-32\Lib\site-packages\numpy\.libs
In order to execute standalone program on Windows, following items in dist folder should be in the same folder
- data folder
- log folder
- AAL_check_program.exe