Tuesday, 8 March 2011

Brainvoyager QX; rename DICOM files in multiple folders at once



This GUI script can be used to rename DICOM files in multiple folders at once. It depends on “rename DICOM files” tab in File tab menu of Brainvoyager QX.

Tuesday, 1 March 2011

Multiple DICOM to NIfTI converter using dcm2nii and AppleScript



dcm2nii is used to convert from DICOM format to various data format such as; 
Compressed 4D NIfTI nii.gz, 4D NIfTI nii, 3D NIfTI hdr/img and 3D Anlyze hdr/img. Or even it modify NIfTI format. There are two versions; the dcm2niigui and command line dcm2nii. This software was written by Dr. Chris Rorden. It can be downloaded with mricron package;
(http://www.cabiatl.com/mricro/mricron/install.html), 
where mac version link is;
For more information about dcm2nii please visit 
MAC gui version is user friendly but it can convert one data set at a time. Therefore, I wrote an applescript to convert multiple DICOM data sets to NIfTI/Analyze format at one instance using dcm2nii command.


Click below to download script
Multiple dcm2nii converter

For converting Nifti to Analyze and vice versa please visit the following entry;
http://www.easyneuroimaging.com/2012/01/batching-fsl-tools-and-utilities-using.html

And for splitting compressed or single images please visit the following entry;
http://www.easyneuroimaging.com/2011/12/batching-fsl-tools-and-utilities-using.html




Bash script works on both Linux and MAC.
user needs to copy this script to data directory and execute it from there using chmod +x to make it executable as following;
chmod +x dicom2nii.command or chmod +x dicom2nii.sh 
If you will use dicom2nii.command file copy it to your subjects' directory then execute it using dicom2nii.command. dicom2nii.sh you can do the same thing but you cant double click dicom2nii.sh.
Note: If mricron directory is not **** /Applications/mricronmac ****
Please do not forget to change it in **dicom2nii.command**  or  **dicom2nii.command** using any text editor



Please leave your feedback if you like this tool or a suggestion if you think it needs to be improved!

Multiple directories creator


I’ve written this simple applescript to create multiple directories. An example of its use in neuroimaging is creating multiple subjects’ directories for freesurfer. In addition, there is an option to add subdirectories in each folder automatically like “mri/orig” in freesurfer. Those subdirectories are created using Terminal application, so you will see terminal application flashing because it will start and quit every 2 to 3 second during script running. It would create 100 folder within less than 10 seconds and up to 5 minutes for creating 100 folders with subdirectories. 

Multiple directories creator.zip

Please leave your feedback if you like this tool or a suggestion if you think it needs to be improved!