@@ -1331,4 +1331,58 @@ def _list_outputs(self):
13311331 outputs ["out_file_wm" ] = op .abspath (self .inputs .out_file_wm )
13321332 outputs ["out_file_gm" ] = op .abspath (self .inputs .out_file_gm )
13331333 outputs ["out_file_csf" ] = op .abspath (self .inputs .out_file_csf )
1334+ return outputs
1335+
1336+
1337+ class Generate5tt2gmwmiInputSpec (MRTrix3BaseInputSpec ):
1338+ in_file = File (
1339+ exists = True ,
1340+ argstr = "%s" ,
1341+ mandatory = True ,
1342+ position = - 2 ,
1343+ desc = "the input 5TT segmented anatomical image" ,
1344+ )
1345+ mask_out = File (
1346+ "mask_gmwmi.mif"
1347+ argstr = "%s" ,
1348+ mandatory = True ,
1349+ position = - 1 ,
1350+ desc = "the output mask image" ,
1351+ )
1352+ mask_in = File (
1353+ argstr = "-mask_in %s" ,
1354+ position = - 3 ,
1355+ desc = "filter an imput mask image according to those voxels that lie upon the grey matter - white matter boundary" ,
1356+ )
1357+
1358+
1359+ class Generate5tt2gmwmiOutputSpec (TraitedSpec ):
1360+ mask_out = File (exists = True , desc = "the output mask file" )
1361+
1362+
1363+ class Generate5tt2gmwmi (CommandLine ):
1364+ """
1365+ Generate a mask image appropriate for seeding streamlines on
1366+ the grey matter-white matter interface
1367+
1368+
1369+ Example
1370+ -------
1371+
1372+ >>> import nipype.interfaces.mrtrix3 as mrt
1373+ >>> gmwmi = mrt.Generate5TT2GMWMI()
1374+ >>> gmwmi.inputs.in_file = '5tt_in.mif'
1375+ >>> gmwmi.inputs.mask_out = 'mask_gmwmi.mif'
1376+ >>> gmwmi.cmdline
1377+ '5tt2gmwmi 5tt_in.mif mask_gmwmi.mif'
1378+ >>> gmwmi.run()
1379+ """
1380+
1381+ _cmd = "5tt2gmwmi"
1382+ input_spec = Generate5tt2gmwmiInputSpec
1383+ output_spec = Generate5tt2gmwmiOutputSpec
1384+
1385+ def _list_outputs (self ):
1386+ outputs = self .output_spec ().get ()
1387+ outputs ["mask_out" ] = op .abspath (self .inputs .mask_out )
13341388 return outputs
0 commit comments