Skip to content

Commit f963d7f

Browse files
author
bpinsard
committed
adding fsl6 options (bbr)
1 parent 84a40e1 commit f963d7f

File tree

1 file changed

+33
-2
lines changed

1 file changed

+33
-2
lines changed

nipype/interfaces/fsl/preprocess.py

Lines changed: 33 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -398,13 +398,13 @@ class FLIRTInputSpec(FSLCommandInputSpec):
398398
argstr='-datatype %s',
399399
desc='force output data type')
400400
cost = traits.Enum('mutualinfo', 'corratio', 'normcorr', 'normmi',
401-
'leastsq', 'labeldiff',
401+
'leastsq', 'labeldiff','bbr',
402402
argstr='-cost %s',
403403
desc='cost function')
404404
# XXX What is the difference between 'cost' and 'searchcost'? Are
405405
# these both necessary or do they map to the same variable.
406406
cost_func = traits.Enum('mutualinfo', 'corratio', 'normcorr', 'normmi',
407-
'leastsq', 'labeldiff',
407+
'leastsq', 'labeldiff','bbr',
408408
argstr='-searchcost %s',
409409
desc='cost function')
410410
uses_qform = traits.Bool(argstr='-usesqform',
@@ -464,6 +464,37 @@ class FLIRTInputSpec(FSLCommandInputSpec):
464464
verbose = traits.Int(argstr='-verbose %d',
465465
desc='verbose mode, 0 is least')
466466

467+
# BBR options
468+
wm_seg = File(
469+
argstr='-wmseg %s',
470+
desc='white matter segmentation volume needed by BBR cost function')
471+
wmcoords = File(
472+
argstr='-wmcoords %s',
473+
desc='white matter boundary coordinates for BBR cost function')
474+
wmnorms = File(
475+
argstr='-wmnorms %s',
476+
desc='white matter boundary normals for BBR cost function')
477+
fieldmap = File(
478+
argstr='-fieldmap %s',
479+
desc='fieldmap image in rads/s - must be already registered to the reference image')
480+
fieldmapmask = File(
481+
argstr='-fieldmapmask %s',
482+
desc='mask for fieldmap image')
483+
pedir = traits.Int(
484+
argstr='-pedir %d',
485+
desc='phase encode direction of EPI - 1/2/3=x/y/z & -1/-2/-3=-x/-y/-z')
486+
echospacing = traits.Float(
487+
argstr='echospacing %f',
488+
desc='value of EPI echo spacing - units of seconds')
489+
bbrtype = traits.Enum(
490+
'signed', 'global_abs', 'local_abs',
491+
argstr='-bbrtype %s',
492+
desc='type of bbr cost function: signed [default], global_abs, local_abs')
493+
bbrslope = traits.Float(
494+
argstr='-bbrslope %f',
495+
desc='value of bbr slope')
496+
497+
467498

468499
class FLIRTOutputSpec(TraitedSpec):
469500
out_file = File(exists=True,

0 commit comments

Comments
 (0)