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):
12901290 mask = File (
12911291 argstr = "-mask %s" ,
12921292 exists = True ,
1293- position = 0 ,
1293+ position = - 1 ,
12941294 desc = "input brain mask"
12951295 )
12961296
@@ -1318,10 +1318,19 @@ class MTNormalise(CommandLine):
13181318 >>> mtn.inputs.out_file_csf = 'csffod_norm.mif'
13191319 >>> mtn.inputs.mask = 'mask.mif'
13201320 >>> 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'
13221322 >>> mtn.run()
13231323 """
13241324
13251325 _cmd = "mtnormalise"
13261326 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