I’m getting a strange error after executing this dwipreproc command for example:
dwipreproc -rpe_none AP 040/dwidn.mif 040/dwipp.mif
dwipreproc:
dwipreproc: Note that this script makes use of commands / algorithms that have relevant articles for citation; INCLUDING FROM EXTERNAL SOFTWARE PACKAGES. Please consult the help page (-help option) for more information.
dwipreproc:
dwipreproc: Generated temporary directory: /tmp/dwipreproc-tmp-NFNIWJ/
Command: mrconvert /mridata/workingdata/BIN/subjects/040/dwidn.mif /tmp/dwipreproc-tmp-NFNIWJ/series.mif
dwipreproc: Changing to temporary directory (/tmp/dwipreproc-tmp-NFNIWJ/)
Command: mrconvert series.mif dwi_pre_topup.nii -stride -1,+2,+3,+4
dwipreproc: Creating phase-encoding configuration file
Command: dwi2mask series.mif - | maskfilter - dilate - | mrconvert - mask.nii -datatype float32 -stride -1,+2,+3
Command: mrconvert series.mif - -stride -1,+2,+3,+4 | mrinfo - -export_grad_fsl bvecs bvals
dwipreproc:
dwipreproc: [ERROR] Command failed: mrconvert series.mif - -stride -1,+2,+3,+4 | mrinfo - -export_grad_fsl bvecs bvals
dwipreproc: Output of failed command:
mrinfo: [ERROR] no filename supplied to standard input (broken pipe?)
mrinfo: [ERROR] error opening image “-”
dwipreproc: Changing back to original directory (/mridata/workingdata/BIN/subjects)
dwipreproc: Deleting temporary directory /tmp/dwipreproc-tmp-NFNIWJ/
I suspect it may be a memory issue as if I execute this command first (ie deleting the contents of the mrtrix tmp directory) it works ok.
rm /tmp/mrtrix-tmp-*
then:
dwipreproc -rpe_none AP 040/dwidn.mif 040/dwipp.mif
dwipreproc:
dwipreproc: Note that this script makes use of commands / algorithms that have relevant articles for citation; INCLUDING FROM EXTERNAL SOFTWARE PACKAGES. Please consult the help page (-help option) for more information.
dwipreproc:
dwipreproc: Generated temporary directory: /tmp/dwipreproc-tmp-AG3CZA/
Command: mrconvert /mridata/workingdata/BIN/subjects/040/dwidn.mif /tmp/dwipreproc-tmp-AG3CZA/series.mif
dwipreproc: Changing to temporary directory (/tmp/dwipreproc-tmp-AG3CZA/)
Command: mrconvert series.mif dwi_pre_topup.nii -stride -1,+2,+3,+4
dwipreproc: Creating phase-encoding configuration file
Command: dwi2mask series.mif - | maskfilter - dilate - | mrconvert - mask.nii -datatype float32 -stride -1,+2,+3
Command: mrconvert series.mif - -stride -1,+2,+3,+4 | mrinfo - -export_grad_fsl bvecs bvals
Command: eddy --imain=dwi_pre_topup.nii --mask=mask.nii --index=indices.txt --acqp=config.txt --bvecs=bvecs --bvals=bvals --out=dwi_post_eddy
dwipreproc: [WARNING] eddy has not provided rotated bvecs file; using original gradient table
Command: mrconvert dwi_post_eddy.nii.gz result.mif -stride -2,-3,4,1 -fslgrad bvecs bvals
Command: mrconvert result.mif /mridata/workingdata/BIN/subjects/040/dwipp.mif
dwipreproc: Changing back to original directory (/mridata/workingdata/BIN/subjects)
dwipreproc: Deleting temporary directory /tmp/dwipreproc-tmp-AG3CZA/
Just wondered if you had any thoughts on this?