dutchconnectomelab / CATO

Toolbox for structural and functional brain connectivity reconstruction.
http://www.dutchconnectomelab.nl/CATO/
Other
15 stars 0 forks source link

Use Synb0-DISCO for TOPUP and eddy #38

Open tombresser opened 7 months ago

tombresser commented 7 months ago

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.

$ cat acqparams.txt 
0 1 0 0.062
0 1 0 0.000
tombresser commented 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: