Closed madisoth closed 9 months ago
Just rewriting for readability:
antsApplyTransforms --default-value 0 --dimensionality 3 --float 1 \
--input /wd/fmriprep_0_0_wf/sub_XXXXXX_wf/bold_ses_1_task_rest_run_01_echo_1_wf/bold_native_wf/bold_t2smap_wf/t2smap_node/T2starmap.nii.gz \
--interpolation LanczosWindowedSinc --output T2starmap_trans.nii.gz \
--reference-image /home/feczk001/tmadison/.cache/templateflow/tpl-MNI152NLin6Asym/tpl-MNI152NLin6Asym_res-02_T1w.nii.gz \
--transform /output_dir/sub-XXXXXX/ses-1/func/sub-XXXXXX_ses-1_task-rest_run-01_from-boldref_to-T1w_mode-image_desc-coreg_xfm.txt \
--transform /output_dir/sub-XXXXXX/ses-1/anat/sub-XXXXXX_ses-1_from-T1w_to-MNI152NLin6Asym_mode-image_xfm.h5
So it seems like the problem is specifically with the order of transforms in boldref2target
in init_ds_volumes_wf
, right?
Ah, okay. Yes, the problem is that nitransforms builds a list of transforms while antsApplyTransforms builds a stack, so we can't pass the same sequence to our own resampler versus antsApplyTransforms
.
What happened?
In a subject processed with
--output-spaces MNI152NLin6Asym:res-2
, the MNI-space boldref, t2star, and BOLD mask volumes appear misregistered to the MNI template, though the BOLD timeseries appear correctly registered. No errors in processing reportedWhat command did you use?
What version of fMRIPrep are you running?
current Dockerhub unstable
How are you running fMRIPrep?
Singularity
Is your data BIDS valid?
Yes
Are you reusing any previously computed results?
No
Please copy and paste any relevant log output.
No response
Additional information / screenshots
from the command.txts in the work dir, it looks like xfms are being passed in the opposite of the expected order for antsApplyTransforms: