That looks like a convolution of matlab and bash syntax. The first two
lines could read:
fn_list="/B2501.35 /B2501.45"
for fn in ${fn_list} ; do
cd $fn
I don't really know what your file structure is, but you would need to do
something with the $fn variable like CD into that folder if it is a folder
or use it as a variable part of a filename "$fn"-DTI-s007
Peace,
Matt.
-----Original Message-----
From: FSL - FMRIB's Software Library [mailto:[log in to unmask]] On Behalf
Of <Alireza> <Sal>
Sent: Tuesday, October 19, 2010 11:06 AM
To: [log in to unmask]
Subject: [FSL] correct bvec
Thanks a lot for your help regarding my previous post.
one last question is that, as I mentioned before, I am going to investigate
the effect of aging on 365 subjects , hence batching at least a part of the
analysis procedure would be quite helpful. I have already wrote a code to
concatenate multiple with-in-subject acquisition of DTI data. However, I
don't know how one can extend it to such a big sample. First I made an array
contains the folders (let's say 2 folder for the moment) including the
different acquisition files (e.g. 2501.35-DTI1-s007 2501.35-DTI2-s008
2501.35-DTI3-s009) :
fn_list= ['/B2501.35','/B2501.45']
for fn in fn_list; do
fsl4.1-fslmerge -t big4D 2501.35-DTI1-s007 2501.35-DTI2-s008
2501.35-DTI3-s009; done
fsl4.1-fsl eddy-correct big4D big4D-correct 0
fsl4.1-fslroi big4D-correct av1-corr 0 38
fsl4.1-fslroi big4D-correct av2-corr 38 38
fsl4.1-fslroi big4D-correct av3-corr 76 38
fsl4.1-fslmaths av1-corr -add av2-corr -add av3-corr -div 3 data
however it seems that it can not get pointed to the correct folder to read
the files.I guess something is wrong within the first two lines of the code!
Any help would be highly appreciated.
/Alireza
|