Gone are the days of having messy, disorganized directories of neuroimaging files! Or, in my case, needing to process 800 datasets, for which each subject has three runs, and not knowing which one has the correct number of timepoints!

This python script takes in a top directory (to search all directories underneath) for nifti (.nii or .nii.gz) files, and then uses fsl or the MRtools module to read header data and output a list of images with paths and important information.

  • MRlog: Details, usage, and the scripts
  • Github: Straight to the script!


Suggested Citation:
Sochat, Vanessa. "MRlog to create text log of nifti brain images." @vsoch (blog), 23 Sep 2011, https://vsoch.github.io/2011/mrlog-to-create-text-log-of-nifti-brain-images/ (accessed 16 Apr 24).