-
Notifications
You must be signed in to change notification settings - Fork 297
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rf: Reconstruct motion confounds from minimal derivatives (#3424)
After an exploration in nipreps/fmripost-aroma#94, we now know how to reconstruct the original motion parameters (to at least 0.001 mm/rad precision) from the ITK transforms we generate. To ensure consistency between single-shot and fit+apply runs, I propose to use this function in place of the original outputs.
- Loading branch information
Showing
9 changed files
with
259 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+229 KB
fmriprep/interfaces/tests/data/sub-01_task-mixedgamblestask_run-01_desc-hmc_boldref.nii.gz
Binary file not shown.
17 changes: 17 additions & 0 deletions
17
...prep/interfaces/tests/data/sub-01_task-mixedgamblestask_run-01_desc-motion_timeseries.tsv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
trans_x trans_y trans_z rot_x rot_y rot_z framewise_displacement | ||
1.19425e-05 0.0443863 0.00472985 0.000356176 -0.000617445 0.0 n/a | ||
-2.57666e-05 0.0463662 0.0623273 -0.000208795 -0.00012937 0.0 0.1122673591 | ||
-2.64055e-05 -0.00438628 0.067513 -2.59508e-05 -0.00012937 0.000173904 0.0737762289 | ||
0.0161645 -0.0226134 0.0630764 -2.59508e-05 -0.000199844 0.000279081 0.0476371754999999 | ||
0.0161497 -0.0263834 0.0464668 0.000161259 -0.00012937 0.000573335 0.04799129 | ||
0.0161482 -0.0226144 0.0345415 6.52323e-05 -7.276439999999998e-05 0.000573335 0.023327415 | ||
0.0121946 -0.00426109 0.0671039 -2.59508e-05 -0.00012937 0.000312581 0.075296445 | ||
0.0121556 -0.0175135 0.04042 -2.59508e-05 -0.00012937 0.000166363 0.04728621 | ||
0.0126526 -0.000813328 0.0778061 -2.59508e-05 -0.00012937 0.000166363 0.054583272 | ||
0.012614 0.0250656 0.106248 -0.000320333 0.000149271 0.000166363 0.0830105879999999 | ||
0.0126599 -0.0252459 0.0731423999999999 2.99512e-05 -0.000204037 0.000166363 0.11864261 | ||
-0.00608005 0.0349207 0.110289 -0.000485119 -0.00012937 8.57718e-05 0.1495695699999999 | ||
-0.00607796 -0.00933714 0.0796319999999999 -0.000126125 -0.00012937 0.000166363 0.09689619 | ||
0.0124531 0.00996903 0.0986678 -0.000266813 -0.000207949 0.000166363 0.06783638 | ||
0.010915 -0.00933714 0.0986667 -0.000126125 -0.000248281 0.000166363 0.02989637 | ||
0.0119349 0.00531637 0.0808524 -0.000209587 -0.0 0.000226933 0.0531033599999999 |
80 changes: 80 additions & 0 deletions
80
...data/sub-01_task-mixedgamblestask_run-01_from-orig_to-boldref_mode-image_desc-hmc_xfm.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
#Insight Transform File V1.0 | ||
#Transform 0 | ||
Transform: AffineTransform_float_3_3 | ||
Parameters: 1 2.19652e-07 -0.000617 2.19652e-07 1 0.000356 0.000617 -0.000356 0.999999 -0.0198273 0.0558417 -0.00925011 | ||
FixedParameters: 0 0 0 | ||
|
||
#Transform 1 | ||
Transform: AffineTransform_float_3_3 | ||
Parameters: 1 -2.6961e-08 -0.000129 -2.6961e-08 1 -0.000209 0.000129 0.000209 1 -0.00408853 0.0396441 -0.0579032 | ||
FixedParameters: 0 0 0 | ||
|
||
#Transform 2 | ||
Transform: AffineTransform_float_3_3 | ||
Parameters: 1 0.000173997 -0.000129005 -0.000174003 1 -2.59776e-05 0.000128995 2.60224e-05 1 -0.000785439 -0.00589913 -0.0665673 | ||
FixedParameters: 0 0 0 | ||
|
||
#Transform 3 | ||
Transform: AffineTransform_float_3_3 | ||
Parameters: 1 0.000278995 -0.000200007 -0.000279005 1 -2.59442e-05 0.000199993 2.60558e-05 1 -0.0172875 -0.0245076 -0.0618151 | ||
FixedParameters: 0 0 0 | ||
|
||
#Transform 4 | ||
Transform: AffineTransform_float_3_3 | ||
Parameters: 1 0.000573021 -0.000128908 -0.000572979 1 0.000161074 0.000129092 -0.000160926 1 -0.00936206 -0.0233705 -0.0490914 | ||
FixedParameters: 0 0 0 | ||
|
||
#Transform 5 | ||
Transform: AffineTransform_float_3_3 | ||
Parameters: 1 0.000573005 -7.29627e-05 -0.000572995 1 6.50418e-05 7.30372e-05 -6.49581e-05 1 -0.0076044 -0.0226739 -0.0354961 | ||
FixedParameters: 0 0 0 | ||
|
||
#Transform 6 | ||
Transform: AffineTransform_float_3_3 | ||
Parameters: 1 0.000312997 -0.000129008 -0.000313003 1 -2.59596e-05 0.000128992 2.60404e-05 1 -0.0103974 -0.00632903 -0.0661615 | ||
FixedParameters: 0 0 0 | ||
|
||
#Transform 7 | ||
Transform: AffineTransform_float_3_3 | ||
Parameters: 1 0.000165997 -0.000129004 -0.000166003 1 -2.59786e-05 0.000128996 2.60214e-05 1 -0.0130841 -0.0189498 -0.0394762 | ||
FixedParameters: 0 0 0 | ||
|
||
#Transform 8 | ||
Transform: AffineTransform_float_3_3 | ||
Parameters: 1 0.000165997 -0.000129004 -0.000166003 1 -2.59786e-05 0.000128996 2.60214e-05 1 -0.0135735 -0.00224875 -0.0768618 | ||
FixedParameters: 0 0 0 | ||
|
||
#Transform 9 | ||
Transform: AffineTransform_float_3_3 | ||
Parameters: 1 0.000166048 0.000148947 -0.000165952 1 -0.000320025 -0.000149053 0.000319975 1 -0.00466364 0.014244 -0.100674 | ||
FixedParameters: 0 0 0 | ||
|
||
#Transform 10 | ||
Transform: AffineTransform_float_3_3 | ||
Parameters: 1 0.000166006 -0.000203995 -0.000165994 1 3.00339e-05 0.000204005 -2.99661e-05 1 -0.0160123 -0.0248835 -0.0729365 | ||
FixedParameters: 0 0 0 | ||
|
||
#Transform 11 | ||
Transform: AffineTransform_float_3_3 | ||
Parameters: 1 8.59374e-05 -0.000129042 -8.60625e-05 1 -0.000484989 0.000128958 0.000485011 1 0.00358861 0.0190405 -0.100594 | ||
FixedParameters: 0 0 0 | ||
|
||
#Transform 12 | ||
Transform: AffineTransform_float_3_3 | ||
Parameters: 1 0.000165984 -0.000129021 -0.000166016 1 -0.000125979 0.000128979 0.000126021 1 0.00515558 -0.0139722 -0.0767701 | ||
FixedParameters: 0 0 0 | ||
|
||
#Transform 13 | ||
Transform: AffineTransform_float_3_3 | ||
Parameters: 1 0.000165944 -0.000208044 -0.000166056 1 -0.000266965 0.000207956 0.000267034 1 -0.0159206 0.000794425 -0.0928171 | ||
FixedParameters: 0 0 0 | ||
|
||
#Transform 14 | ||
Transform: AffineTransform_float_3_3 | ||
Parameters: 1 0.000165969 -0.000248021 -0.000166031 1 -0.000125959 0.000247979 0.000126041 1 -0.0156607 -0.0139734 -0.0953506 | ||
FixedParameters: 0 0 0 | ||
|
||
#Transform 15 | ||
Transform: AffineTransform_float_3_3 | ||
Parameters: 1 0.000227 -4.767e-08 -0.000227 1 -0.00021 -4.767e-08 0.00021 1 -0.00762153 -0.00231912 -0.0768985 | ||
FixedParameters: 0 0 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.