I run synb0-disco and got topup output files of topup_fieldcoef.nii.gz and topup_movpar.txt. Can I feed the files to Mrtrix3 dwipreproc process? If not, I run the
As mentioned in another thread, this capability is implemented and publicly available and will be included in the 3.1.0 update, but is not present in the most recent release (3.0.2).
For some reason I can’t find the thread, but another user was trying to utilise: dwifslpreproc ... -eddy_options " ... --topup=../field ..."
, which is kind of bypassing dwifslpreproc’s machinations and giving eddy a direct path to the topup output (assuming the topup output files are called “field_*” in the current working directory, and since eddy is run within the script scratch directory, the path to such needs to go up to the parent directory). But this is a hack and might require some experimentation and/or code modification.
Should I use output eddy_corrected.nii.gz as input to mrconvert to mif, denoise, and then dwipreproc?
dwidenoise is not applicable to any image data that have undergone an image interpolation process; this includes the various corrections applied by eddy.
Given that the principal purpose of dwifslpreproc is to execute eddy, it’s unclear why you would want to execute it on data where eddy has already been applied.
The trick with this “hack” is that the path to the topup output that is provided to eddy needs to be an appropriate path given that eddy is being executed *from within the scratch directory. Once the script has navigated into the scratch directory, file "my_topup_results_fieldcoef.nii.gz" no longer exists in the current working directory. Therefore, you either need to specify the appropriate relative file given where the scratch directory will be located, or provide an *absolute* filesystem path. You also likely need to specify the *prefix* to the topupoutputs, aseddy` needs to locate not only the NIfTI image containing the spline coefficients, but also the text file containing the transformations between the image volumes it used to estimate that field.
I changed the line to the following by adding the absolute path to the file and add ‘*’ to the ‘my_topup_results’ to include both nii.gz and txt result.
dwipreproc denoise.mif denoise_preproc.mif -pe_dir PA -rpe_none -eddy_options "--topup=absolute_path/my_topup_results_* ".
However, now it cannot retrieve both nii.gz and txt and think the file is named “my_top_results_*”. So is there any way that I can add two files after the “–topup=”
BTW, I also tried -eddy_options "–topup=absolute_path/my_topup_results_fieldcoef.nii.gz --topup=my_topup_results_movpar.txt "
and add ‘*’ to the ‘my_topup_results’ to include both nii.gz and txt result.
I’m pretty sure that won’t work. What eddy expects as the input to that command-line option is the same as what was used for the --out option for topup; this is the common prefix of these two files, from which eddy will infer the two file paths by appending the filename suffixes. So you would most likely want something like: