I am not actually sure where your errors are occuring, and am now entirely confused.
Now that Steven has joined the conversation, he can maybe shed some light on the problem--arent the semicolon characters throughtout the feat script a problem, as the semicolon is a special character indicating to continue to next line?
Date: Mon, 25 Jun 2012 01:09:10 -0700
From:
[log in to unmask]Subject: Re: [FSL] Some error happened in cluster/server but not in the private computer
To:
[log in to unmask]Sorry. I attached two times of the right one. Now it is the error one in attachment. I also attached the logs folder.
Yes, I tried on my private computer, no problem. I checked design.fsf for many times. It should be the problem on the cluster setup.
The administrative staff said if I can find out where the error happen (like which script of fsl program was being executed when error came out ), he could figure out it.
On Mon, Jun 25, 2012 at 12:09 AM, Stephen Smith
<[log in to unmask]> wrote:
Hi - did you confirm that your .fsf file runs correctly just on a local computer - e.g.
feat design.fsf
That should help you work out if the problem is in your design.fsf or on the cluster setup.
The error message you are getting is not a familiar one. If your admin looks at the individual error and log files in the "logs" directory inside the FEAT output directory.
Cheers.
On 25 Jun 2012, at 02:53, zhang mingxia wrote:
Dear FSL experts,
Sorry to bring this problem again. Very hopefully that some one knows the problem below:
I was running the first-level analysis of some functional data recent in a cluster/server and got this error:: /bin/sh: module: line 1: syntax error: unexpected end of file /bin/sh: error importing function definition for `module'. People would always think there are problems with the .fsf script. But I created the .fsf script by FSL in Linux environment and did not move it to Windows. The interesting thing is that I could run the data normally in my own computer without any error by the same version of FSL with the same way.
The administrative staff of the the server is very nice to want to figure out the problem. He thought there was something wrong with some FSL program scripts in cluster/server environment. But we could not know which script the .fsf script (the .fsf script is very brief, it will ask many scripts in FSL program) called when the error came out.
Any one who met such problem before just on cluster/server?
Attachment is the report log. Does any body know what script of FSL program was executed when the error came out?
I really appreciate to get the reply. Thanks.
Mingxia
<report_log.html>
---------------------------------------------------------------------------
Stephen M. Smith, Professor of Biomedical Engineering
Associate Director, Oxford University FMRIB Centre
FMRIB, JR Hospital, Headington, Oxford OX3 9DU, UK
+44 (0) 1865 222726 (fax 222717)
[log in to unmask] http://www.fmrib.ox.ac.uk/~steve
---------------------------------------------------------------------------
--Forwarded Message Attachment--
Progress Report / Log
Started at Wed Jun 13 12:16:49 PDT 2012
Feat main script
/bin/cp /tmp/feat_yNnJoc.fsf design.fsf
/apps/fsl/4.1.6/bin/feat_model design
mkdir .files;cp /apps/fsl/4.1.6/doc/fsl.css .files;ln -s /apps/fsl/4.1.6/doc/images .files/images
/apps/fsl/4.1.6/bin/fsl_sub -T 24 -l logs -N feat2_pre -j featModelID /apps/fsl/4.1.6/bin/feat /home/mingxiaz/data/Restingstate_Training/try/try_pre+.feat/design.fsf -D /home/mingxiaz/data/Restingstate_Training/try/try_pre+.feat -I 1 -prestats
2112438
/apps/fsl/4.1.6/bin/fsl_sub -T 30 -l logs -N feat5_reg -j 2112438 /apps/fsl/4.1.6/bin/feat /home/mingxiaz/data/Restingstate_Training/try/try_pre+.feat/design.fsf -D /home/mingxiaz/data/Restingstate_Training/try/try_pre+.feat -I 1 -reg
2112439
/apps/fsl/4.1.6/bin/fsl_sub -T 1 -l logs -N feat5_stop -j 2112438,2112439 /apps/fsl/4.1.6/bin/feat /home/mingxiaz/data/Restingstate_Training/try/try_pre+.feat/design.fsf -D /home/mingxiaz/data/Restingstate_Training/try/try_pre+.feat -stop
2112440
Prestats
/apps/fsl/4.1.6/bin/fslmaths /home/mingxiaz/data/Restingstate_Training/try/rest prefiltered_func_data -odt float
Total original volumes = 240
Deleting 5 volume(s) - BE WARNED for future analysis!
/apps/fsl/4.1.6/bin/fslroi prefiltered_func_data prefiltered_func_data 5 235
/apps/fsl/4.1.6/bin/fslroi prefiltered_func_data example_func 117 1
/apps/fsl/4.1.6/bin/mcflirt -in prefiltered_func_data -out prefiltered_func_data_mcf -mats -plots -refvol 117 -rmsrel -rmsabs
/bin/mkdir -p mc ; /bin/mv -f prefiltered_func_data_mcf.mat prefiltered_func_data_mcf.par prefiltered_func_data_mcf_abs.rms prefiltered_func_data_mcf_abs_mean.rms prefiltered_func_data_mcf_rel.rms prefiltered_func_data_mcf_rel_mean.rms mc
/apps/fsl/4.1.6/bin/fsl_tsplot -i prefiltered_func_data_mcf.par -t 'MCFLIRT estimated rotations (radians)' -u 1 --start=1 --finish=3 -a x,y,z -w 640 -h 144 -o rot.png
/apps/fsl/4.1.6/bin/fsl_tsplot -i prefiltered_func_data_mcf.par -t 'MCFLIRT estimated translations (mm)' -u 1 --start=4 --finish=6 -a x,y,z -w 640 -h 144 -o trans.png
/apps/fsl/4.1.6/bin/fsl_tsplot -i prefiltered_func_data_mcf_abs.rms,prefiltered_func_data_mcf_rel.rms -t 'MCFLIRT estimated mean displacement (mm)' -u 1 -w 640 -h 144 -a absolute,relative -o disp.png
/apps/fsl/4.1.6/bin/fslmaths prefiltered_func_data_mcf -Tmean mean_func
/apps/fsl/4.1.6/bin/bet2 mean_func mask -f 0.3 -n -m; /apps/fsl/4.1.6/bin/immv mask_mask mask
/apps/fsl/4.1.6/bin/fslmaths prefiltered_func_data_mcf -mas mask prefiltered_func_data_bet
/apps/fsl/4.1.6/bin/fslstats prefiltered_func_data_bet -p 2 -p 98
0.000000 974.761292
/apps/fsl/4.1.6/bin/fslmaths prefiltered_func_data_bet -thr 97.4761292 -Tmin -bin mask -odt char
/apps/fsl/4.1.6/bin/fslstats prefiltered_func_data_mcf -k mask -p 50
820.489075
/apps/fsl/4.1.6/bin/fslmaths mask -dilF mask
/apps/fsl/4.1.6/bin/fslmaths prefiltered_func_data_mcf -mas mask prefiltered_func_data_thresh
/apps/fsl/4.1.6/bin/fslmaths prefiltered_func_data_thresh -Tmean mean_func
/apps/fsl/4.1.6/bin/susan prefiltered_func_data_thresh 615.36680625 2.12314225053 3 1 1 mean_func 615.36680625 prefiltered_func_data_smooth
/apps/fsl/4.1.6/bin/fslmaths prefiltered_func_data_smooth -mas mask prefiltered_func_data_smooth
/apps/fsl/4.1.6/bin/fslmaths prefiltered_func_data_smooth -inm 10000 prefiltered_func_data_intnorm
/apps/fsl/4.1.6/bin/fslmaths prefiltered_func_data_intnorm -bptf 37.5 -1 prefiltered_func_data_tempfilt
/apps/fsl/4.1.6/bin/fslmaths prefiltered_func_data_tempfilt filtered_func_data
/apps/fsl/4.1.6/bin/fslmaths filtered_func_data -Tmean mean_func
/bin/rm -rf prefiltered_func_data*
/bin/sh: module: line 1: syntax error: unexpected end of file
/bin/sh: error importing function definition for `module'
Registration
/bin/mkdir -p reg
/apps/fsl/4.1.6/bin/fslmaths /home/mingxiaz/data/Restingstate_Training/try/3d_brain highres
/apps/fsl/4.1.6/bin/fslmaths /home/mingxiaz/apps/fsl/data/standard/MNI152_T1_2mm_brain standard
/apps/fsl/4.1.6/bin/flirt -ref highres -in example_func -out example_func2highres -omat example_func2highres.mat -cost corratio -dof 6 -searchrx -90 90 -searchry -90 90 -searchrz -90 90 -interp trilinear
/apps/fsl/4.1.6/bin/convert_xfm -inverse -omat highres2example_func.mat example_func2highres.mat
/apps/fsl/4.1.6/bin/slicer example_func2highres highres -s 2 -x 0.35 sla.png -x 0.45 slb.png -x 0.55 slc.png -x 0.65 sld.png -y 0.35 sle.png -y 0.45 slf.png -y 0.55 slg.png -y 0.65 slh.png -z 0.35 sli.png -z 0.45 slj.png -z 0.55 slk.png -z 0.65 sll.png ; /apps/fsl/4.1.6/bin/pngappend sla.png + slb.png + slc.png + sld.png + sle.png + slf.png + slg.png + slh.png + sli.png + slj.png + slk.png + sll.png example_func2highres1.png ; /apps/fsl/4.1.6/bin/slicer highres example_func2highres -s 2 -x 0.35 sla.png -x 0.45 slb.png -x 0.55 slc.png -x 0.65 sld.png -y 0.35 sle.png -y 0.45 slf.png -y 0.55 slg.png -y 0.65 slh.png -z 0.35 sli.png -z 0.45 slj.png -z 0.55 slk.png -z 0.65 sll.png ; /apps/fsl/4.1.6/bin/pngappend sla.png + slb.png + slc.png + sld.png + sle.png + slf.png + slg.png + slh.png + sli.png + slj.png + slk.png + sll.png example_func2highres2.png ; /apps/fsl/4.1.6/bin/pngappend example_func2highres1.png - example_func2highres2.png example_func2highres.png; /bin/rm -f sl?.png
/apps/fsl/4.1.6/bin/flirt -ref standard -in highres -out highres2standard -omat highres2standard.mat -cost corratio -dof 12 -searchrx -90 90 -searchry -90 90 -searchrz -90 90 -interp trilinear
/apps/fsl/4.1.6/bin/convert_xfm -inverse -omat standard2highres.mat highres2standard.mat
/apps/fsl/4.1.6/bin/slicer highres2standard standard -s 2 -x 0.35 sla.png -x 0.45 slb.png -x 0.55 slc.png -x 0.65 sld.png -y 0.35 sle.png -y 0.45 slf.png -y 0.55 slg.png -y 0.65 slh.png -z 0.35 sli.png -z 0.45 slj.png -z 0.55 slk.png -z 0.65 sll.png ; /apps/fsl/4.1.6/bin/pngappend sla.png + slb.png + slc.png + sld.png + sle.png + slf.png + slg.png + slh.png + sli.png + slj.png + slk.png + sll.png highres2standard1.png ; /apps/fsl/4.1.6/bin/slicer standard highres2standard -s 2 -x 0.35 sla.png -x 0.45 slb.png -x 0.55 slc.png -x 0.65 sld.png -y 0.35 sle.png -y 0.45 slf.png -y 0.55 slg.png -y 0.65 slh.png -z 0.35 sli.png -z 0.45 slj.png -z 0.55 slk.png -z 0.65 sll.png ; /apps/fsl/4.1.6/bin/pngappend sla.png + slb.png + slc.png + sld.png + sle.png + slf.png + slg.png + slh.png + sli.png + slj.png + slk.png + sll.png highres2standard2.png ; /apps/fsl/4.1.6/bin/pngappend highres2standard1.png - highres2standard2.png highres2standard.png; /bin/rm -f sl?.png
/apps/fsl/4.1.6/bin/convert_xfm -omat example_func2standard.mat -concat highres2standard.mat example_func2highres.mat
/apps/fsl/4.1.6/bin/flirt -ref standard -in example_func -out example_func2standard -applyxfm -init example_func2standard.mat -interp trilinear
/apps/fsl/4.1.6/bin/convert_xfm -inverse -omat standard2example_func.mat example_func2standard.mat
/apps/fsl/4.1.6/bin/slicer example_func2standard standard -s 2 -x 0.35 sla.png -x 0.45 slb.png -x 0.55 slc.png -x 0.65 sld.png -y 0.35 sle.png -y 0.45 slf.png -y 0.55 slg.png -y 0.65 slh.png -z 0.35 sli.png -z 0.45 slj.png -z 0.55 slk.png -z 0.65 sll.png ; /apps/fsl/4.1.6/bin/pngappend sla.png + slb.png + slc.png + sld.png + sle.png + slf.png + slg.png + slh.png + sli.png + slj.png + slk.png + sll.png example_func2standard1.png ; /apps/fsl/4.1.6/bin/slicer standard example_func2standard -s 2 -x 0.35 sla.png -x 0.45 slb.png -x 0.55 slc.png -x 0.65 sld.png -y 0.35 sle.png -y 0.45 slf.png -y 0.55 slg.png -y 0.65 slh.png -z 0.35 sli.png -z 0.45 slj.png -z 0.55 slk.png -z 0.65 sll.png ; /apps/fsl/4.1.6/bin/pngappend sla.png + slb.png + slc.png + sld.png + sle.png + slf.png + slg.png + slh.png + sli.png + slj.png + slk.png + sll.png example_func2standard2.png ; /apps/fsl/4.1.6/bin/pngappend example_func2standard1.png - example_func2standard2.png example_func2standard.png; /bin/rm -f sl?.png
/bin/sh: module: line 1: syntax error: unexpected end of file
/bin/sh: error importing function definition for `module'
/bin/sh: module: line 1: syntax error: unexpected end of file
/bin/sh: error importing function definition for `module'