Thanks Jesper.  if I append the full filename without the extension it fails, but with the extension it works:

poldrack::dentate:=>/space/raid/fmri/fsl-4.1.0-centos5_64/bin/fnirt --in=highres_head --aff=highres2standard.mat --cout=highres2standard_warp --iout=highres2standard --jout=highres2standard_jac --config=/space/raid/fmri/fsl-4.1.0-centos5_64/etc/flirtsch/T1_2_MNI152_2mm --ref=standard_head --refmask=standard_mask --warpres=10,10,10

Cannot find config-file /space/raid/fmri/fsl-4.1.0-centos5_64/etc/flirtsch/T1_2_MNI152_2mm

poldrack::dentate:=>/space/raid/fmri/fsl-4.1.0-centos5_64/bin/fnirt --in=highres_head --aff=highres2standard.mat --cout=highres2standard_warp --iout=highres2standard --jout=highres2standard_jac --config=/space/raid/fmri/fsl-4.1.0-centos5_64/etc/flirtsch/T1_2_MNI152_2mm.cnf --ref=standard_head --refmask=standard_mask --warpres=10,10,10

Setting subsampling

however, when I add the following to $FSLDIR/etc/fslconf/feat.tcl:

set fmri(fnirt_config) "/space/raid/fmri/fsl-4.1.0-centos5_64/etc/flirtsch/T1_2_MNI152_2mm.cnf"

it doesn't seen to have any effect on the call to fnirt, as seen in this line from report_log.html:

/space/raid/fmri/fsl-4.1.0-centos5_64/bin/fnirt --in=highres_head --aff=highres2standard.mat --cout=highres2standard_warp --iout=highres2standard --jout=highres2standard_jac --config=T1_2_MNI152_2mm --ref=standard_head --refmask=standard_mask --warp
res=10,10,10
Cannot find config-file T1_2_MNI152_2mm

it seems as if the setting from feat.tcl is not being propagated to the actual analysis. any further debugging suggestions would be most welcome
cheers
russ



On Tue, Aug 26, 2008 at 2:45 AM, Jesper Andersson <[log in to unmask]> wrote:
Hi Russ,

I haven't been able to replicate your problem. As Anderson writes it should find it even without the explicit path. The search rules for config files are 

When you specify --config=my_file, i.e. without explicit path or extension, fnirt will search for ./my_file, ./my_file.cnf, ${FSLDIR}/etc/flirtsch/my_file and ${FSLDIR}/etc/flirtsch/my_file.cnf in that order and use the first one that is found.

and if an explicit path is specified it should use that. For my version all that seems to work. It basically tests to append and prepend the relevant strings and then attempts to open the file until it succeeds. In your case it must therefore fail to open the file when it resides in /space/raid/fmri/fsl-4.1.0-centos5_64/etc/flirtsch/ . What happens if you specify the full path on the command line, i.e.

space/raid/fmri/fsl-4.1.0-centos5_64/bin/fnirt --in=highres_head --aff=highres2standard.mat --cout=highres2standard_warp --iout=highres2standard --jout=highres2standard_jac --config=/space/raid/fmri/fsl-4.1.0-centos5_64/etc/flirtsch/T1_2_MNI152_2mm 
--ref=standard_head --refmask=standard_mask --warpres=10,10,10

?

Jesper


On 26 Aug 2008, at 06:19, Russ Poldrack wrote:

Hi Anderson - thanks. unfortunately changing it to the absolute path does not seem to have worked when running it from the GUI or command line. Any other suggestions?

Cheers,
Russ


On Mon, Aug 25, 2008 at 3:37 PM, Anderson Winkler <[log in to unmask]> wrote:
Hi Russ,

People from the FMRIB may give a better answer, but I noticed that FNIRT can
find the default config files (like T1_2_MNI152_2mm) even without the
extension .cnf or the full path (as long as $FSLDIR is properly set).  In
any case, you may try editing the file ${FSLDIR}/etc/fslconf/feat.tcl,
changing the last line, where it reads:

set fmri(fnirt_config) "T1_2_MNI152_2mm"

for:

set fmri(fnirt_config)
"/space/raid/fmri/fsl-4.1.0-centos5_64/etc/flirtsch/T1_2_MNI152_2mm.cnf"

to see if this solves the problem when calling from the GUI.

Anderson



--
Russell A. Poldrack, Ph.d.
Professor
Wendell Jeffrey and Bernice Wenzel Term Chair in Behavioral Neuroscience
UCLA Department of Psychology
Franz Hall, Box 951563
Los Angeles, CA 90095-1563

phone: 310-794-1224
fax: 310-206-5895
email: [log in to unmask]
web: www.poldracklab.org




--
Russell A. Poldrack, Ph.d.
Professor
Wendell Jeffrey and Bernice Wenzel Term Chair in Behavioral Neuroscience
UCLA Department of Psychology
Franz Hall, Box 951563
Los Angeles, CA 90095-1563

phone: 310-794-1224
fax: 310-206-5895
email: [log in to unmask]
web: www.poldracklab.org