Skip to content

Commit 317c3ad

Browse files
committed
Additionnal correction to FSL invwarp. Missing option from Camino dtifit
1 parent 10f84cf commit 317c3ad

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

nipype/interfaces/camino/dti.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ class DTIFitInputSpec(StdOutCommandLineInputSpec):
1616
in_file = File(exists=True, argstr='%s', mandatory=True, position=1,
1717
desc='voxel-order data filename')
1818

19+
bgmask = File(argstr='-bgmask %s', exists=True,
20+
desc=('Provides the name of a file containing a background mask computed using, '
21+
'for example, FSL bet2 program. The mask file contains zero in background '
22+
'voxels and non-zero in foreground.'))
23+
1924
scheme_file = File(exists=True, argstr='%s', mandatory=True, position=2,
2025
desc='Camino scheme file (b values / vectors, see camino.fsl2scheme)')
2126

nipype/interfaces/fsl/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1213,8 +1213,8 @@ class InvWarp(FSLCommand):
12131213

12141214
def _gen_filename(self, name):
12151215
if name == 'inverse_warp':
1216-
warp = self.inputs.warp
1217-
return '%s_inv%s' % os.path.splitext(warp)
1216+
_, warpname , _ = split_filename(self.inputs.warp)
1217+
return warpname + '_inv'
12181218
else:
12191219
raise NotImplementedError
12201220

0 commit comments

Comments
 (0)