Open tombresser opened 7 months ago
First commit was insufficient to make CATO compatible with synb0-DISCO undistorted b0 images.
Issue: CATO expects reverse encoded scans when preparing+running TOPUP and eddy. Synb0-DISCO is a toolbox to estimate undistorted b0 images based on the distorted b0 and a T1 scan. The distorted+undistorted b0 images can be used to run TOPUP and eddy to correct for distortions. However, the undistorted image is not a reverse encoded scan. Hence it is important to provide an acqp.txt with the correct directions and totalreadout times.
Modifications:
Modification: If acqpFile exists and has the required dimensions, it can directly be used in the preprocessing steps. Otherwise acqpFile is created according to the original code.
Problem: Some Topup cases require a specific acqpFile. Tool such as SynB0-DISCO can synthesize a b0 image for diffusion distortion correction. When running Topup, the acqpFile should contain two rows in the same direction (see example below). CATO currently auto generates an acqpFile and overwrites existing files in the location.