Skip to content

Commit 8bbcfc1

Browse files
committed
add to init, cosmetic changes
1 parent 588599c commit 8bbcfc1

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

nipype/interfaces/fsl/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
Complex, InvWarp, WarpUtils, ConvertWarp, WarpPoints, WarpPointsToStd)
2020

2121
from .epi import (PrepareFieldmap, TOPUP, ApplyTOPUP, Eddy, EPIDeWarp,
22-
SigLoss, EddyCorrect)
22+
SigLoss, EddyCorrect, EpiReg)
2323

2424
from .dti import (BEDPOSTX, DTIFit, ProbTrackX, ProbTrackX2,
2525
VecReg, ProjThresh, FindTheBiggest, DistanceMap,

nipype/interfaces/fsl/epi.py

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -709,10 +709,9 @@ def _run_interface(self, runtime):
709709
if runtime.stderr:
710710
self.raise_exception(runtime)
711711
return runtime
712-
713-
712+
713+
714714
class EpiRegInputSpec(FSLCommandInputSpec):
715-
716715
epi = File(exists=True, argstr='--epi=%s', mandatory=True, position=-4, desc='EPI image')
717716
t1_head = File(exists=True, argstr='--t1=%s', mandatory=True, position=-3, desc='wholehead T1 image')
718717
t1_brain = File(exists=True, argstr='--t1brain=%s', mandatory=True, position=-2, desc='brain extracted T1 image')
@@ -724,8 +723,8 @@ class EpiRegInputSpec(FSLCommandInputSpec):
724723
echospacing = traits.Float(argstr='--echospacing=%f', desc='Effective EPI echo spacing (sometimes called dwell time) - in seconds')
725724
pedir = traits.Enum('x', 'y', 'z', '-x', '-y', '-z',argstr='--pedir=%s',desc='phase encoding direction, dir = x/y/z/-x/-y/-z')
726725

727-
class EpiRegOutputSpec( TraitedSpec ):
728-
726+
727+
class EpiRegOutputSpec(TraitedSpec):
729728
out_file = File(exists=True, desc='epi input unwarped and registered to anatomy')
730729
out_flirt_file = File(exists=True, desc='output of last flirt bbr fieldmap registration, basically the same as out_file but different interpolation?')
731730
fmap2str_mat = File(exists=True, desc='affine fieldmap to structural transformation')
@@ -743,7 +742,10 @@ class EpiRegOutputSpec( TraitedSpec ):
743742
# _fieldmap2str_init.mat
744743
# _fieldmaprads2str_dilated.nii.gz
745744

745+
746746
class EpiReg(FSLCommand):
747+
"""
748+
"""
747749
_cmd = 'epi_reg'
748750
input_spec = EpiRegInputSpec
749751
output_spec = EpiRegOutputSpec
@@ -774,3 +776,4 @@ def _list_outputs(self):
774776
self.inputs.out_base + '_fieldmaprads2epi_shift.nii.gz')
775777

776778
return outputs
779+

0 commit comments

Comments
 (0)