Hello,
I’m trying to run a FBA on 20 Subjects using MRTRIX3. All steps including ‘dwibiascorrect’ worked just fine.
Unfortunately I have problems running the next step ‘dwiintensitynorm’.
I created the necessary folders (dwi_input, dwi-mask) as described in the documentation and this is my script I want to run:
"${mrtrix_bin}/foreach * : ln -sr IN/dwi_ec_denoised_bias.mif ${out_dir}/dwiintensitynorm/dwi_input/IN.mif
${mrtrix_bin}/foreach * : ln -sr IN/dwi_mask.mif ${out_dir}/dwiintensitynorm/mask_input/IN.mif
${mrtrix_bin}/dwiintensitynorm ${out_dir}/dwiintensitynorm/dwi_input/ ${out_dir}/dwiintensitynorm/mask_input/ ${out_dir}/dwiintensitynorm/dwi_output/ ${out_dir}/dwiintensitynorm/fa_template.mif ${out_dir}/dwiintensitynorm/fa_template_wm_mask.mif
${mrtrix_bin}/foreach ${out_dir}/dwiintensitynorm/dwi_output/* : ln -sr IN PRE/dwi_ec_denoised_bias_norm.mif "
The symbolic linking works just fine as well as ‘dwi2tensor’ for each subject.
Subsequently the script crashes and the FA-template and wm_mask is not created.
This is the command line/error output:
dwiintensitynorm: Generating FA population template
Command: population_template fa -mask_dir /tmp/dwiintensitynorm-tmp-0G0P83/mask_input fa_template.mif -linear_scale 0.25,0.5,1.0,1.0 -nl_scale 0.5,0.75,1.0,1.0,1.0 -nl_niter 5,5,5,5,5 -warp_dir warps -nocleanup -tempdir population_template
Traceback (most recent call last):
File “/data/p_nro152/mrtrix3/scripts/dwiintensitynorm”, line 88, in
runCommand(‘population_template fa -mask_dir ’ + maskTempDir + ’ fa_template.mif -linear_scale 0.25,0.5,1.0,1.0 -nl_scale 0.5,0.75,1.0,1.0,1.0 -nl_niter 5,5,5,5,5 -warp_dir warps -nocleanup -tempdir population_template’)
File “/data/p_nro152/mrtrix3/scripts/lib/runCommand.py”, line 103, in runCommand
process = subprocess.Popen(cmdstack[0], stdin=None, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
File “/usr/lib/python2.7/subprocess.py”, line 711, in init
errread, errwrite)
File “/usr/lib/python2.7/subprocess.py”, line 1343, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
ln: failed to create symbolic link ‘*/dwi_ec_denoised_bias_norm.mif’: No such file or directory
Any help/advice is much appreciated!
Thanks in advance!
Tom