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

✨ Read in field map's TotalReadoutTime for use in FSL TOPUP (distortion correction) #1768

Closed sgiavasis closed 8 months ago

sgiavasis commented 2 years ago

Related problem

Blip distortion correction via FSL TOPUP (uses the *_epi field maps) reads in DwellTime from the field map's meta-data in the JSON sidecars. It uses the dwell time to calculate the total readout time for use in the acquisition parameters file that is supplied to the topup commandline call.

However, some datasets have field maps that only have the TotalReadoutTime but no DwellTime listed in the meta-data. For these data, the total readout time should be easily read into topup directly. But right now, CPAC will complain that DwellTime is missing and cannot proceed.

Proposed feature

Build the plumbing to read in TotalReadoutTime from the JSON meta-data, and use that first for topup if supplied.

Acceptance criteria

Alternatives

No response

Additional context

No response

sgiavasis commented 8 months ago

This was resolved in v1.8.5.