File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed
nipype/interfaces/mrtrix3 Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -1290,7 +1290,7 @@ class MTNormaliseInputSpec(MRTrix3BaseInputSpec):
1290
1290
mask = File (
1291
1291
argstr = "-mask %s" ,
1292
1292
exists = True ,
1293
- position = 0 ,
1293
+ position = - 1 ,
1294
1294
desc = "input brain mask"
1295
1295
)
1296
1296
@@ -1318,10 +1318,19 @@ class MTNormalise(CommandLine):
1318
1318
>>> mtn.inputs.out_file_csf = 'csffod_norm.mif'
1319
1319
>>> mtn.inputs.mask = 'mask.mif'
1320
1320
>>> mtn.cmdline
1321
- 'mtnormalise -mask mask.mif wmfod.mif wmfod_norm.mif gmfod.mif gmfod_norm.mif csffod.mif csffod_norm.mif'
1321
+ 'mtnormalise wmfod.mif wmfod_norm.mif gmfod.mif gmfod_norm.mif csffod.mif csffod_norm.mif -mask mask .mif'
1322
1322
>>> mtn.run()
1323
1323
"""
1324
1324
1325
1325
_cmd = "mtnormalise"
1326
1326
input_spec = MTNormaliseInputSpec
1327
- output_spec = MTNormaliseOutputSpec
1327
+ output_spec = MTNormaliseOutputSpec
1328
+
1329
+ def _list_outputs (self ):
1330
+ outputs = self .output_spec ().get ()
1331
+ outputs ["out_file_wm" ] = op .abspath (self .inputs .out_file_wm )
1332
+ if self .inputs .gm_file != Undefined :
1333
+ outputs ["out_file_gm" ] = op .abspath (self .inputs .out_file_gm )
1334
+ if self .inputs .csf_file != Undefined :
1335
+ outputs ["out_file_csf" ] = op .abspath (self .inputs .out_file_csf )
1336
+ return outputs
You can’t perform that action at this time.
0 commit comments