FCP-INDI / C-PAC

Configurable Pipeline for the Analysis of Connectomes
https://fcp-indi.github.io/
GNU Lesser General Public License v3.0
62 stars 40 forks source link

FSL write func to MNI space performs double interpolation #1067

Open ccraddock opened 4 years ago

ccraddock commented 4 years ago

https://github.com/FCP-INDI/C-PAC/blob/63c66c3b1d5e3f662ce2ffb521598364805156e4/CPAC/pipeline/cpac_pipeline.py#L2434

When writing functional data to MNI space, if a linear anat-MNI transform was calculated, it performs two transform+interpolation procedures, func-anat then func_in_anat-mni. These two transforms should be combined and written once, so that interpolation only occurs once.

sgiavasis commented 4 years ago

For reference, here is where the second warp node is: https://github.com/FCP-INDI/C-PAC/blob/master/CPAC/pipeline/cpac_pipeline.py#L2290-L2292