DSPRelated.com
Forums

File sorting and batch conversion to Analyze format

Started by Bushra Siddiqui December 29, 2005
Hello all,

I'm Bushra and I'm a newbie in this field. I'm doing a mini project with the
Neurology Clinic here in Vancouver. The clinic takes MRI scans of patients
and each slice in the MRI is stored in a file of the extension *.fil
(proprietary GE format). Now the technician delivers all the *.fil files of
all patients dumped in one tape to the clinic. The clinic doesn't know how
to group files belonging to a particular patient. There are 53 patients,
each patient has had 9 scans and each scan has 7 sequences and each sequence
has 28 slices. So we are talking about a good 100,000 files here all
haphazardly placed in the tape. Now the common identifier in all these files
is the patient ID, date and sequence code. This information is kept in the
header of each file. To view these files we are using a software called
MRIcro. This software requires each *.fil file to be converted into Analyze
format for it to be readable. Now the user needs to manually convert each
group of slices from *.fil format to Analyze format from within MRIcro.
However, if the number of files is 100,000, I don't think that is feasible.

My questions are the following:
1- How and in what language can I write a program that will group all the
*.fil files into various directories belonging to the 53 patients, so that
each patient directory will only have files pertaining to that patient.
(systematic ordering of the files into directories)
2- Is there a pre-written script that will allow me to do that?
3- How can I automate the process of converting *.fil files into Analyze
format from MRIcro. MRIcro doesn't support automation.
4- Do you know of any other software that can hep me automate this process
of conversion so that the clinician will only have to view the preconverted
slices and not convert them manually into Analyze format?
5- Do you know of any alternative easier way of handling this problem?

I will really appreciate any feedback from you as this will truly save a lot
of research hours in this subject.

Thank you so much for your help.

Bushra