study_info

This program searches through a directory tree and lists salient information about each imaging file that it encounters.

Usage:

study_info top_dir
  • top_dir: Top-most directory in the hierarchy of directories to be searched.

Output:

A tab-delimited list of file contents. If redirected to a file, the file can be imported into any spreadsheet. The following parameters are extracted (some do not apply to all file types):

Directory
Series Description
Acquisition Time
Pulse Sequence
Imaging Plane
File Type
Exam Description
Patient ID
Patient Name
Patient Age
Patient Sex
Patient Weight
Exam number
XYZ origin
TR
TE
Subdirectory
File name

Example of the output:

Directory Series Description Acquisition Time Pulse Sequence Imaging Plane File Type Exam Description Patient ID Patient Name Patient Age Patient Sex Patient Weight Exam number XYZ origin TR TE Subdirectory File name
./fMRI/faces High Order Shim 28cm 2003Aug19 at 07:35:59 ssprl812 axial ge_data BRDEVEL BRDEVEL AG 10 2 22 2059 (137.808,137.808,130.500) 1.5 7 ./fMRI/faces P14848.7
./fMRI/faces High Order Shim 28cm 2003Aug19 at 07:37:44 ssprl812 axial ge_data BRDEVEL BRDEVEL AG 10 2 22 2059 (137.808,137.808,130.500) 1.5 7 ./fMRI/faces P15360.7
./fMRI/faces High Order Shim 28cm 2003Aug19 at 07:38:20 ssprl812 axial ge_data BRDEVEL BRDEVEL AG 10 2 22 2059 (137.808,137.808,130.500) 1.5 7 ./fMRI/faces P15872.7
./fMRI/gonogo SAG EPI Test 4 skip 1 2003Aug19 at 07:48:28 EPI sagittal ge_data BRDEVEL BRDEVEL AG 10 2 22 2059 (118.125,146.283,-72.636) 1.999996 30 ./fMRI/gonogo P20992.7
./fMRI/gonogo SAG EPI Test 4 skip 1 2003Aug19 at 07:56:26 EPI sagittal ge_data BRDEVEL BRDEVEL AG 10 2 22 2059 (118.125,146.283,-72.636) 1.999996 30 ./fMRI/gonogo P21504.7
./fMRI/p_files High Order Shim 28cm 2003Aug19 at 07:38:55 ssprl812 axial ge_data BRDEVEL BRDEVEL AG 10 2 22 2059 (137.808,137.808,130.500) 1.5 7 ./fMRI/p_files P16384.7
./fMRI/p_files SAG EPI Test 4 skip 1 2003Aug19 at 07:42:32 EPI sagittal ge_data BRDEVEL BRDEVEL AG 10 2 22 2059 (118.125,146.283,-72.636) 1.999996 30 ./fMRI/p_files P18432.7
./fMRI/p_files SAG EPI Test 4 skip 1 2003Aug19 at 07:42:47 EPI sagittal ge_data BRDEVEL BRDEVEL AG 10 2 22 2059 (118.125,146.283,-72.636) 1.999996 31 ./fMRI/p_files P18944.7
./fMRI/p_files SAG EPI Test 4 skip 1 2003Aug19 at 07:43:01 EPI sagittal ge_data BRDEVEL BRDEVEL AG 10 2 22 2059 (118.125,146.283,-72.636) 1.999996 33 ./fMRI/p_files P19456.7
./fMRI/p_files SAG EPI Test 4 skip 1 2003Aug19 at 07:43:16 EPI sagittal ge_data BRDEVEL BRDEVEL AG 10 2 22 2059 (118.125,146.283,-72.636) 1.999996 36 ./fMRI/p_files P19968.7
./fMRI/p_files SAG EPI Test 4 skip 1 2003Aug19 at 07:44:03 EPI sagittal ge_data BRDEVEL BRDEVEL AG 10 2 22 2059 (118.125,146.283,-72.636) 1.999996 30 ./fMRI/p_files P20480.7
./fMRI/motor sagittal brik (-118.125,146.285, 72.640) 0 -1 ./fMRI/motor motor_glm_gam+orig.HEAD
./fMRI/motor sagittal brik (-118.125,146.285, 72.640) 0 -1 ./fMRI/motor motor_glm_gam+orig.BRIK
./fMRI/motor sagittal brik (-118.125,146.285, 72.640) 0 -1 ./fMRI/motor motor_8mm_gam+orig.HEAD
./fMRI/motor axial brik (-119.500,-119.500,-52.300) 0 -1 ./fMRI/motor T1W+orig.BRIK
./fMRI/motor axial brik (-119.500,-119.500,-52.300) 0 -1 ./fMRI/motor T1W+orig.HEAD
./fMRI/motor sagittal brik (-118.125,146.285, 72.640) 0 -1 ./fMRI/motor motor_8mm_gam+orig.BRIK
./fMRI/motor sagittal brik (-118.125,146.285, 72.640) 1999.996 -1 ./fMRI/motor run_1+orig.BRIK
./fMRI/motor sagittal brik (-118.125,146.285, 72.640) 1999.996 -1 ./fMRI/motor run_1+orig.HEAD
./fMRI/motor sagittal brik (-118.125,146.285, 72.640) 1999.996 -1 ./fMRI/motor run_1_stc+orig.BRIK
./fMRI/motor sagittal brik (-118.125,146.285, 72.640) 1999.996 -1 ./fMRI/motor run_1_stc+orig.HEAD
./fMRI/motor sagittal brik (-118.125,146.285, 72.640) 1999.996 -1 ./fMRI/motor run_1_vr+orig.BRIK
./fMRI/motor sagittal brik (-118.125,146.285, 72.640) 1999.996 -1 ./fMRI/motor run_1_vr+orig.HEAD
./fMRI/motor sagittal brik (-119.531,147.731, 72.600) 0 -1 ./fMRI/motor subject_3_anat+orig.BRIK
./fMRI/motor sagittal brik (-119.531,147.731, 72.600) 0 -1 ./fMRI/motor subject_3_anat+orig.HEAD
./fMRI/motor axial brik (-119.766,-119.766,-52.600) 0 -1 ./fMRI/motor subject_3_T1W+orig.BRIK
./fMRI/motor axial brik (-119.766,-119.766,-52.600) 0 -1 ./fMRI/motor subject_3_T1W+orig.HEAD
./fMRI/motor axial brik (-80.000,-80.000,-65.000) 0 -1 ./fMRI/motor T1W+tlrc.HEAD
./fMRI/motor axial brik (-80.000,-80.000,-65.000) 0 -1 ./fMRI/motor motor_8mm_gam+tlrc.HEAD
./fMRI/motor axial brik (-80.000,-80.000,-65.000) 0 -1 ./fMRI/motor motor_8mm_gam+tlrc.BRIK
./fMRI/motor axial brik (-80.000,-80.000,-65.000) 0 -1 ./fMRI/motor T1W+tlrc.BRIK
./anatomicals/S1 3plane 2003Aug19 at 07:30:16 3-Plane axial ge_img BRDEVEL 003 BRDEVEL  003 AG 10 2 22 2059 (-125.488,-124.512,-25.000) 74.9 1.7 ./anatomicals/S1 I.001
./anatomicals/S2 T2W coreg w/ fMRI 2003Aug19 at 07:32:58 fse-xl sagittal ge_img BRDEVEL 003 BRDEVEL  003 AG 10 2 22 2059 (-119.531,147.690, 74.870) 5800 56.128 ./anatomicals/S2 I.001
./anatomicals/S4 SAG EPI Test 4 skip 1 2003Aug19 at 07:40:14 epibold sagittal ge_img BRDEVEL 003 BRDEVEL  003 AG 10 2 22 2059 (-118.125,146.283, 74.870) 1999.996 30 ./anatomicals/S4 I.001
./anatomicals/fmap gre field map rhrcctrl = 15 2003Aug19 at 08:17:04 2dfast axial ge_img BRDEVEL 003 BRDEVEL  003 AG 10 2 22 2059 (-120.469,-115.583,-26.668) 720 8 ./anatomicals/fmap I.001
./anatomicals/S7 3D IR AX T1 2003Aug19 at 08:23:10 efgre3d axial ge_img BRDEVEL 003 BRDEVEL  003 AG 10 2 22 2059 (-120.234,-119.770,-52.259) 8.9 1.836 ./anatomicals/S7 I.001
./anatomicals/S8 Axial T2 W fse 2003Aug19 at 08:32:21 fse-xl axial ge_img BRDEVEL 003 BRDEVEL  003 AG 10 2 22 2059 (-120.234,-119.770,-44.461) 10000 103.608 ./anatomicals/S8 I.001
./anatomicals/EPI2 dti w/ card gate 2003Aug19 at 08:08:18 /usr/g/M/aa/dti axial ge_img BRDEVEL 003 BRDEVEL  003 AG 10 2 22 2059 (-120.469,-115.583,-26.668) 10985.916 78.2 ./anatomicals/EPI2 I.001

Last modified October 18, 2008