JiscMail Logo
Email discussion lists for the UK Education and Research communities

Help for FSL Archives


FSL Archives

FSL Archives


FSL@JISCMAIL.AC.UK


View:

Message:

[

First

|

Previous

|

Next

|

Last

]

By Topic:

[

First

|

Previous

|

Next

|

Last

]

By Author:

[

First

|

Previous

|

Next

|

Last

]

Font:

Proportional Font

LISTSERV Archives

LISTSERV Archives

FSL Home

FSL Home

FSL  June 2014

FSL June 2014

Options

Subscribe or Unsubscribe

Subscribe or Unsubscribe

Log In

Log In

Get Password

Get Password

Subject:

Re: MATLAB interface into FSL: error - libtiff.so.5

From:

Duncan Mortimer <[log in to unmask]>

Reply-To:

FSL - FMRIB's Software Library <[log in to unmask]>

Date:

Thu, 26 Jun 2014 15:31:21 +0000

Content-Type:

multipart/signed

Parts/Attachments:

Parts/Attachments

text/plain (172 lines) , signature.asc (172 lines)

Try using the call_fsl function from within MATLAB to run the FEAT task.

Background:

MATLAB ships a large number of dynamic libraries to allow old Linux distros to run the software. Unfortunately, these are often significantly older than the version the OS provides and so the FSL C++ programs try to link against the older MATLAB libraries rather than the OS ones they were built against. Mathworks official line on this, is you don’t need these libraries so they can be removed *with care*.
However, the call_fsl function does the work necessary to make the shell that the FSL commands run in forget about the MATLAB libraries for the duration of the external program so there is no need to mess around with the MATLAB internals, possibly breaking it.

We actually created this wrapper because on our cluster the extra overhead of searching all the additional locations for shared libraries that MATLAB references slowed down our compute nodes and NFS file server significantly.

Duncan
On 26 Jun 2014, at 15:24, Chris McNorgan <[log in to unmask]> wrote:

> I'm assisting a colleague in debugging an FSL processing pipeline. He is carrying out a series of preprocessing steps and running a GLM. When executed through MATLAB, the procedure crashes with several errors when calling slicer. I'm attaching a representative output report containing the errors. To summarize: when the script calls slicer, repeated errors are thrown, complaining about libtiff.so.5:
> 
> e.g.:
> /usr/share/fsl/5.0/bin/slicer: /usr/local/MATLAB/R2013b/bin/glnxa64/libtiff.so.5: no version information available (required by /usr/lib/x86_64-linux-gnu/libgd.so.3)
> /usr/share/fsl/5.0/bin/pngappend: /usr/local/MATLAB/R2013b/bin/glnxa64/libtiff.so.5: no version information available (required by /usr/lib/x86_64-linux-gnu/libgd.so.3)
> etc.
> 
> Curiously, the same processing steps executed via the command-line, using files generated during the failed MATLAB script, runs without any problem (A report from a successful run is available, but I am not attaching to this message it to avoid confusion). This suggests the problem stems from the way in which MATLAB interacting with FSL. Is this a known problem, or does anyone have any suggestions?
> 
> Thanks
> 
> Progress Report / Log
> 
> Started at Wed Jun 25 10:24:58 EDT 2014
> Feat main script
> 
> /bin/cp /home/smacd49/Documents/FSL_analyses/BZ22/Tool1.fsf design.fsf
> 
> /usr/share/fsl/5.0/bin/feat_model design 
> 
> mkdir .files;cp /usr/share/fsl/5.0/doc/fsl.css .files;ln -s /usr/share/fsl/5.0/doc/images .files/images
> 
> /usr/share/fsl/5.0/bin/fsl_sub -T 10 -l logs -N feat0_init   /usr/share/fsl/5.0/bin/feat /home/smacd49/Documents/FSL_analyses/BZ22/BZ22_o1.feat/design.fsf -D /home/smacd49/Documents/FSL_analyses/BZ22/BZ22_o1.feat -I 1 -init
> 19912
> 
> /usr/share/fsl/5.0/bin/fsl_sub -T 60 -l logs -N feat1b_reg -j 19912  /usr/share/fsl/5.0/bin/feat /home/smacd49/Documents/FSL_analyses/BZ22/BZ22_o1.feat/design.fsf -D /home/smacd49/Documents/FSL_analyses/BZ22/BZ22_o1.feat -I 1 -reg
> 
> FATAL ERROR ENCOUNTERED
> 
> /usr/share/fsl/5.0/bin/mainfeatreg -F 6.00 -d /home/smacd49/Documents/FSL_analyses/BZ22/BZ22_o1.feat -l /home/smacd49/Documents/FSL_analyses/BZ22/BZ22_o1.feat/logs/feat5_reg -R /home/smacd49/Documents/FSL_analyses/BZ22/BZ22_o1.feat/report_unwarp.html -r /home/smacd49/Documents/FSL_analyses/BZ22/BZ22_o1.feat/report_reg.html  -i /home/smacd49/Documents/FSL_analyses/BZ22/BZ22_o1.feat/example_func.nii.gz  -n 10 -h /home/smacd49/Documents/FSL_analyses/BZ22/struct_brain -w  BBR -x 180 -s /usr/share/fsl/data/standard/MNI152_T1_1mm_brain -y 12 -z 180 
> Option -F ( FEAT version parameter ) selected with  argument "6.00"
> Option -d ( output directory ) selected with  argument "/home/smacd49/Documents/FSL_analyses/BZ22/BZ22_o1.feat"
> Option -l ( logfile )input with argument "/home/smacd49/Documents/FSL_analyses/BZ22/BZ22_o1.feat/logs/feat5_reg"
> Option -R ( html unwarping report ) selected with  argument "/home/smacd49/Documents/FSL_analyses/BZ22/BZ22_o1.feat/report_unwarp.html"
> Option -r ( html registration report ) selected with  argument "/home/smacd49/Documents/FSL_analyses/BZ22/BZ22_o1.feat/report_reg.html"
> Option -i ( main input ) input with argument "/home/smacd49/Documents/FSL_analyses/BZ22/BZ22_o1.feat/example_func.nii.gz"
> Option -n ( use nonlinear reg ) input with argument "10"
> Option -h ( high-res structural image ) selected with  argument "/home/smacd49/Documents/FSL_analyses/BZ22/struct_brain"
> Option -w ( highres dof ) selected with  argument "BBR"
> Option -x ( highres search ) selected with  argument "180"
> Option -s ( standard image ) selected with  argument "/usr/share/fsl/data/standard/MNI152_T1_1mm_brain"
> Option -y ( standard dof ) selected with  argument "12"
> Option -z ( standard search ) selected with  argument "180"
> /usr/share/fsl/5.0/bin/slicer: /usr/local/MATLAB/R2013b/bin/glnxa64/libtiff.so.5: no version information available (required by /usr/lib/x86_64-linux-gnu/libgd.so.3)
> /usr/share/fsl/5.0/bin/pngappend: /usr/local/MATLAB/R2013b/bin/glnxa64/libtiff.so.5: no version information available (required by /usr/lib/x86_64-linux-gnu/libgd.so.3)
> /usr/share/fsl/5.0/bin/slicer: /usr/local/MATLAB/R2013b/bin/glnxa64/libtiff.so.5: no version information available (required by /usr/lib/x86_64-linux-gnu/libgd.so.3)
> /usr/share/fsl/5.0/bin/pngappend: /usr/local/MATLAB/R2013b/bin/glnxa64/libtiff.so.5: no version information available (required by /usr/lib/x86_64-linux-gnu/libgd.so.3)
> /usr/share/fsl/5.0/bin/pngappend: /usr/local/MATLAB/R2013b/bin/glnxa64/libtiff.so.5: no version information available (required by /usr/lib/x86_64-linux-gnu/libgd.so.3)
> /usr/share/fsl/5.0/bin/slicer: /usr/local/MATLAB/R2013b/bin/glnxa64/libtiff.so.5: no version information available (required by /usr/lib/x86_64-linux-gnu/libgd.so.3)
> /usr/share/fsl/5.0/bin/pngappend: /usr/local/MATLAB/R2013b/bin/glnxa64/libtiff.so.5: no version information available (required by /usr/lib/x86_64-linux-gnu/libgd.so.3)
> /usr/share/fsl/5.0/bin/slicer: /usr/local/MATLAB/R2013b/bin/glnxa64/libtiff.so.5: no version information available (required by /usr/lib/x86_64-linux-gnu/libgd.so.3)
> /usr/share/fsl/5.0/bin/pngappend: /usr/local/MATLAB/R2013b/bin/glnxa64/libtiff.so.5: no version information available (required by /usr/lib/x86_64-linux-gnu/libgd.so.3)
> /usr/share/fsl/5.0/bin/pngappend: /usr/local/MATLAB/R2013b/bin/glnxa64/libtiff.so.5: no version information available (required by /usr/lib/x86_64-linux-gnu/libgd.so.3)
> /usr/share/fsl/5.0/bin/slicer: /usr/local/MATLAB/R2013b/bin/glnxa64/libtiff.so.5: no version information available (required by /usr/lib/x86_64-linux-gnu/libgd.so.3)
> /usr/share/fsl/5.0/bin/pngappend: /usr/local/MATLAB/R2013b/bin/glnxa64/libtiff.so.5: no version information available (required by /usr/lib/x86_64-linux-gnu/libgd.so.3)
> /usr/share/fsl/5.0/bin/slicer: /usr/local/MATLAB/R2013b/bin/glnxa64/libtiff.so.5: no version information available (required by /usr/lib/x86_64-linux-gnu/libgd.so.3)
> /usr/share/fsl/5.0/bin/pngappend: /usr/local/MATLAB/R2013b/bin/glnxa64/libtiff.so.5: no version information available (required by /usr/lib/x86_64-linux-gnu/libgd.so.3)
> /usr/share/fsl/5.0/bin/pngappend: /usr/local/MATLAB/R2013b/bin/glnxa64/libtiff.so.5: no version information available (required by /usr/lib/x86_64-linux-gnu/libgd.so.3)
> 
> FATAL ERROR ENCOUNTERED
> 
> Initialisation
> /usr/share/fsl/5.0/bin/fslmaths /home/smacd49/Documents/FSL_analyses/BZ22/Tool1 prefiltered_func_data -odt float
> Total original volumes = 246
> 
> /usr/share/fsl/5.0/bin/fslroi prefiltered_func_data example_func 123 1
> /usr/share/fsl/5.0/bin/pngappend: /usr/local/MATLAB/R2013b/bin/glnxa64/libtiff.so.5: no version information available (required by /usr/lib/x86_64-linux-gnu/libgd.so.3)
>     while executing
> "if { [ catch {
> 
> 
> 
> for { set argindex 1 } { $argindex < $argc } { incr argindex 1 } {
>     switch -- [ lindex $argv $argindex ] {
> 
> 	-I {
> 	    incr argin..."
>     (file "/usr/share/fsl/5.0/bin/feat" line 119)
> 
> Registration
> /bin/mkdir -p /home/smacd49/Documents/FSL_analyses/BZ22/BZ22_o1.feat/reg
> 
> 
> /usr/share/fsl/5.0/bin/fslmaths /home/smacd49/Documents/FSL_analyses/BZ22/struct_brain highres
> 
> 
> /usr/share/fsl/5.0/bin/fslmaths /home/smacd49/Documents/FSL_analyses/BZ22/struct  highres_head
> 
> 
> /usr/share/fsl/5.0/bin/fslmaths /usr/share/fsl/data/standard/MNI152_T1_1mm_brain standard
> 
> 
> /usr/share/fsl/5.0/bin/fslmaths /usr/share/fsl/data/standard/MNI152_T1_1mm standard_head
> 
> 
> /usr/share/fsl/5.0/bin/fslmaths /usr/share/fsl/data/standard/MNI152_T1_1mm_brain_mask_dil standard_mask
> 
> did not find file: example_func2highres.mat. Generating transform.
> 
> /usr/share/fsl/5.0/bin/epi_reg --epi=example_func --t1=highres_head --t1brain=highres --out=example_func2highres
> Running FAST segmentation FLIRT pre-alignment Running BBR 0.403044 0.999886 -0.012033 0.009113 0.000000 0.011996 0.999920 0.004062 0.000000 -0.009161 -0.003952 0.999950 0.000000 -0.365464 4.252835 0.823210 1.000000
> 
> /usr/share/fsl/5.0/bin/convert_xfm -inverse -omat highres2example_func.mat example_func2highres.mat
> 
> 
> /usr/share/fsl/5.0/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 ; /usr/share/fsl/5.0/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 ; /usr/share/fsl/5.0/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 ; /usr/share/fsl/5.0/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 ; /usr/share/fsl/5.0/bin/pngappend example_func2highres1.png - example_func2highres2.png example_func2highres.png; /bi
>  n/rm -f sl?.png example_func2highres2.png
> 
> 
> /bin/rm example_func2highres1.png
> 
> did not find file: highres2standard.mat. Generating transform.
> 
> /usr/share/fsl/5.0/bin/flirt -in highres -ref standard -out highres2standard -omat highres2standard.mat -cost corratio -dof 12 -searchrx -180 180 -searchry -180 180 -searchrz -180 180 -interp trilinear 
> 
> 
> /usr/share/fsl/5.0/bin/fnirt --iout=highres2standard_head --in=highres_head --aff=highres2standard.mat --cout=highres2standard_warp --iout=highres2standard --jout=highres2highres_jac --config=T1_2_MNI152_2mm --ref=standard_head --refmask=standard_mask --warpres=10,10,10
> 
> 
> /usr/share/fsl/5.0/bin/applywarp -i highres -r standard -o highres2standard -w highres2standard_warp
> 
> 
> /usr/share/fsl/5.0/bin/convert_xfm -inverse -omat standard2highres.mat highres2standard.mat
> 
> 
> /usr/share/fsl/5.0/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 ; /usr/share/fsl/5.0/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 ; /usr/share/fsl/5.0/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 ; /usr/share/fsl/5.0/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 ; /usr/share/fsl/5.0/bin/pngappend highres2standard1.png - highres2standard2.png highres2standard.png; /bin/rm -f sl?.png highres2st
>  andard2.png
> 
> 
> /bin/rm highres2standard1.png
> 
> 
> /usr/share/fsl/5.0/bin/convert_xfm -omat example_func2standard.mat -concat highres2standard.mat example_func2highres.mat
> 
> 
> /usr/share/fsl/5.0/bin/convertwarp --ref=standard --premat=example_func2highres.mat --warp1=highres2standard_warp --out=example_func2standard_warp
> 
> 
> /usr/share/fsl/5.0/bin/applywarp --ref=standard --in=example_func --out=example_func2standard --warp=example_func2standard_warp
> 
> 
> /usr/share/fsl/5.0/bin/convert_xfm -inverse -omat standard2example_func.mat example_func2standard.mat
> 
> 
> /usr/share/fsl/5.0/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 ; /usr/share/fsl/5.0/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 ; /usr/share/fsl/5.0/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 ; /usr/share/fsl/5.0/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 ; /usr/share/fsl/5.0/bin/pngappend example_func2standard1.png - example_func2standard2.png example_func2standard
>  .png; /bin/rm -f sl?.png example_func2standard2.png
> 
> 
> 

-- 
Duncan Mortimer
Computing Officer, FMRIB Centre, University of Oxford
John Radcliffe Hospital, Oxford, UK





Top of Message | Previous Page | Permalink

JiscMail Tools


RSS Feeds and Sharing


Advanced Options


Archives

April 2024
March 2024
February 2024
January 2024
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
2006
2005
2004
2003
2002
2001


JiscMail is a Jisc service.

View our service policies at https://www.jiscmail.ac.uk/policyandsecurity/ and Jisc's privacy policy at https://www.jisc.ac.uk/website/privacy-notice

For help and support help@jisc.ac.uk

Secured by F-Secure Anti-Virus CataList Email List Search Powered by the LISTSERV Email List Manager