Skip to content

Commit 950b5fb

Browse files
committed
ENH: Beef-up LTA tests with one equivalent to mri_concatenate_lta
This PR adds more LTA and corresponding ITK conversions. The ITK conversions have been calculated with ``lta_convert``. The original NIfTI files have also been added to this PR for the implementation of future tests. Files have been named with some sort of BIDS derived nomenclature. Some provenance has been recorded as initial comments of the LTA files.
1 parent 111c52a commit 950b5fb

15 files changed

+105
-19
lines changed
Binary file not shown.
Binary file not shown.

nitransforms/tests/data/regressions/bbregister.tfm

Lines changed: 0 additions & 5 deletions
This file was deleted.
Binary file not shown.
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# This file was generated with bbregister, with fMRIPrep-20.0.5's settings
2+
type = 0 # LINEAR_VOX_TO_VOX
3+
nxforms = 1
4+
mean = 0.0000 0.0000 0.0000
5+
sigma = 10000.0000
6+
1 4 4
7+
3.124095916748047e+00 -2.993918396532536e-02 -8.824434876441956e-02 3.380017089843750e+01
8+
-7.292380183935165e-02 -1.901555061340332e+00 -3.172848463058472e+00 2.405808868408203e+02
9+
-1.820227503776550e-02 2.479679346084595e+00 -2.434180974960327e+00 7.082101440429688e+01
10+
0.000000000000000e+00 0.000000000000000e+00 0.000000000000000e+00 1.000000000000000e+00
11+
src volume info
12+
valid = 1 # volume info valid
13+
filename = /home/oesteban/tmp/fmriprep-ds005/fprep-work/fmriprep_wf/single_subject_01_wf/func_preproc_task_mixedgamblestask_run_01_wf/bold_reg_wf/bbreg_wf/bbregister/uni_xform_masked.nii.gz
14+
volume = 64 64 34
15+
voxelsize = 3.125000000000000e+00 3.125000000000000e+00 4.000000000000000e+00
16+
xras = -1.000000000000000e+00 0.000000000000000e+00 0.000000000000000e+00
17+
yras = 0.000000000000000e+00 1.000000000000000e+00 0.000000000000000e+00
18+
zras = 0.000000000000000e+00 0.000000000000000e+00 1.000000000000000e+00
19+
cras = 1.000000000000000e+00 2.800000000000000e+01 -3.100000000000000e+01
20+
dst volume info
21+
valid = 1 # volume info valid
22+
filename = /oak/stanford/groups/russpold/data/openfmri/derivatives/ds000005/freesurfer-6.0.1/sub-01/mri/orig.mgz
23+
volume = 256 256 256
24+
voxelsize = 1.000000000000000e+00 1.000000000000000e+00 1.000000000000000e+00
25+
xras = -9.999999403953552e-01 0.000000000000000e+00 0.000000000000000e+00
26+
yras = 0.000000000000000e+00 0.000000000000000e+00 -9.999999403953552e-01
27+
zras = 0.000000000000000e+00 9.999999403953552e-01 0.000000000000000e+00
28+
cras = -9.999847412109375e-01 -5.000015258789062e+00 -1.000038146972656e+00
29+
subject sub-01
30+
fscale 0.100000
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#Insight Transform File V1.0
2+
#Transform 0
3+
Transform: AffineTransform_double_3_3
4+
Parameters: 0.99971085786819458 0.0058247237466275692 0.023335624486207962 0.0095805395394563675 0.79349809885025024 -0.608498215675354 -0.022061100229620934 0.60854566097259521 0.79321271181106567 -5.5388064384460449 -45.559787750244141 -48.801029205322266
5+
FixedParameters: 0 0 0

nitransforms/tests/data/regressions/bbregister.lta renamed to nitransforms/tests/data/regressions/from-scanner_to-bold_mode-image.lta

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
1+
# This file was generated with bbregister, with fMRIPrep-20.0.5's settings
2+
# mri_concatenate_lta from-fsnative_to-bold_mode-image.lta from-scanner_to-fsnative_mode-image.lta from-scanner_to-bold_mode-image.lta
13
type = 0 # LINEAR_VOX_TO_VOX
24
nxforms = 1
35
mean = 0.0000 0.0000 0.0000
46
sigma = 1.0000
57
1 4 4
6-
-3.124080896377563e+00 2.981145866215229e-02 8.914728462696075e-02 1.741926879882812e+02
7-
-1.405486371368170e-02 1.859627604484558e+00 -1.825850725173950e+00 5.312585067749023e+01
8-
5.505303665995598e-02 1.426339745521545e+00 2.379452466964722e+00 1.154438781738281e+01
9-
0.000000000000000e+00 0.000000000000000e+00 0.000000000000000e+00 9.999998807907104e-01
8+
-3.124080896377563e+00 2.981145866215229e-02 8.914728462696075e-02 1.741926879882812e+02
9+
-1.405486371368170e-02 1.859627604484558e+00 -1.825850725173950e+00 5.312585067749023e+01
10+
5.505303665995598e-02 1.426339745521545e+00 2.379452466964722e+00 1.154438781738281e+01
11+
0.000000000000000e+00 0.000000000000000e+00 0.000000000000000e+00 9.999998807907104e-01
1012
src volume info
1113
valid = 1 # volume info valid
1214
filename = /home/oesteban/tmp/fmriprep-ds005/fprep-work/fmriprep_wf/single_subject_01_wf/func_preproc_task_mixedgamblestask_run_01_wf/bold_reg_wf/bbreg_wf/bbregister/uni_xform_masked.nii.gz

0 commit comments

Comments
 (0)