Closed oesteban closed 2 years ago
Okay, I've tried to set up some basics, and implemented a unit-test for the TrivialB0Model
sketching what we intend to do here:
Unit tests of ANTs' config for b=0.
I see this implemented in test_estimator.py
. To do so:
nibabel.eulerangles.euler2mat
(e.g., https://github.com/poldracklab/nitransforms/blob/master/nitransforms/tests/test_linear.py#L107). For the resampling, I would use nitransforms.linear.Affine.resample()
.Introduce a series of transforms (e.g., copy them from another dataset) and resample the b=0 through that motion series. Then run the whole estimator and check the proximity of the estimated transforms.
I see this implemented in test_integration.py
. To do so:
TrivialB0Model
with this B0 map and feed the dwi object with the moved data (simulate perhaps several transforms).Hi there! I've uploaded some data under https://github.com/nipreps/eddymotion/tree/main/eddymotion/tests/data, generated by @dPys with FiberFox.
@oesteban I am progressing! For now, I managed to:
sub-01_dwi.nii.gz
provided by Céline.I haven't opened a PR yet but here is a quick preview of the motion introduced
What do think?
This looks so awesome.
Two low-hanging fruit tests using only a b=0:
TrivialB0Model
implementation