Skip to content

Commit c444511

Browse files
authored
Merge pull request #1917 from effigies/bbreg_dof
Add hidden DOF (and --fsl-dof) options to BBRegister
2 parents f13290e + 2afece9 commit c444511

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

nipype/interfaces/freesurfer/preprocess.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1028,6 +1028,10 @@ class BBRegisterInputSpec(FSTraitedSpec):
10281028
desc="force use of nifti rather than analyze with SPM")
10291029
epi_mask = traits.Bool(argstr="--epi-mask",
10301030
desc="mask out B0 regions in stages 1 and 2")
1031+
dof = traits.Enum(6, 9, 12, argstr='--%d',
1032+
desc='number of transform degrees of freedom')
1033+
fsldof = traits.Int(argstr='--fsl-dof %d',
1034+
desc='degrees of freedom for initial registration (FSL)')
10311035
out_fsl_file = traits.Either(traits.Bool, File, argstr="--fslmat %s",
10321036
desc="write the transformation matrix in FSL FLIRT format")
10331037
registered_file = traits.Either(traits.Bool, File, argstr='--o %s',
@@ -1054,9 +1058,8 @@ class BBRegister(FSCommand):
10541058
"""Use FreeSurfer bbregister to register a volume to the Freesurfer anatomical.
10551059
10561060
This program performs within-subject, cross-modal registration using a
1057-
boundary-based cost function. The registration is constrained to be 6
1058-
DOF (rigid). It is required that you have an anatomical scan of the
1059-
subject that has already been recon-all-ed using freesurfer.
1061+
boundary-based cost function. It is required that you have an anatomical
1062+
scan of the subject that has already been recon-all-ed using freesurfer.
10601063
10611064
Examples
10621065
--------

nipype/interfaces/freesurfer/tests/test_BBRegister.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@ def test_BBRegister_inputs():
66
input_map_5_3 = dict(
77
args=dict(argstr='%s',),
88
contrast_type=dict(argstr='--%s', mandatory=True,),
9+
dof=dict(argstr='--%d',),
910
environ=dict(nohash=True, usedefault=True,),
1011
epi_mask=dict(argstr='--epi-mask',),
12+
fsldof=dict(argstr='--fsl-dof %d',),
1113
ignore_exception=dict(nohash=True, usedefault=True,),
1214
init=dict(argstr='--init-%s', mandatory=True, xor=['init_reg_file'],),
1315
init_reg_file=dict(argstr='--init-reg %s', mandatory=True, xor=['init'],),
@@ -26,8 +28,10 @@ def test_BBRegister_inputs():
2628
input_map_6_0 = dict(
2729
args=dict(argstr='%s',),
2830
contrast_type=dict(argstr='--%s', mandatory=True,),
31+
dof=dict(argstr='--%d',),
2932
environ=dict(nohash=True, usedefault=True,),
3033
epi_mask=dict(argstr='--epi-mask',),
34+
fsldof=dict(argstr='--fsl-dof %d',),
3135
ignore_exception=dict(nohash=True, usedefault=True,),
3236
init=dict(argstr='--init-%s', xor=['init_reg_file'],),
3337
init_reg_file=dict(argstr='--init-reg %s', xor=['init'],),

0 commit comments

Comments
 (0)