@@ -1245,4 +1245,73 @@ class MaskFilter(CommandLine):
12451245 def _list_outputs (self ):
12461246 outputs = self .output_spec ().get ()
12471247 outputs ["out_file" ] = op .abspath (self .inputs .out_file )
1248- return outputs
1248+ return outputs
1249+
1250+ class MTNormaliseInputSpec (MRTrix3BaseInputSpec ):
1251+ fod_wm = File (
1252+ argstr = "%s" ,
1253+ mandatory = False ,
1254+ position = 1 ,
1255+ desc = "input fod of white matter tissue compartment"
1256+ )
1257+ out_file_wm = File (
1258+ argstr = "%s" ,
1259+ mandatory = False ,
1260+ position = 2 ,
1261+ desc = "output file of white matter tissue compartment"
1262+ )
1263+ fod_gm = File (
1264+ argstr = "%s" ,
1265+ mandatory = False ,
1266+ position = 3 ,
1267+ desc = "input fod of grey matter tissue compartment"
1268+ )
1269+ out_file_gm = File (
1270+ argstr = "%s" ,
1271+ mandatory = False ,
1272+ position = 4 ,
1273+ desc = "output file of grey matter tissue compartment"
1274+ )
1275+ fod_tissue_csf = File (
1276+ argstr = "%s" ,
1277+ mandatory = False ,
1278+ position = 5 ,
1279+ desc = "input fod of CSF tissue compartment"
1280+ )
1281+ out_file_csf = File (
1282+ argstr = "%s" ,
1283+ mandatory = False ,
1284+ position = 6 ,
1285+ desc = "output file of CSF tissue compartment 3"
1286+ )
1287+
1288+ class MTNormaliseOutputSpec (TraitedSpec ):
1289+ out_file_wm = File (exists = True , desc = "the normalized white matter fod" )
1290+ out_file_gm = File (exists = True , desc = "the normalized grey matter fod" )
1291+ out_file_csf = File (exists = True , desc = "the normalized csf fod" )
1292+
1293+
1294+ class MTNormalise (CommandLine ):
1295+ """
1296+ Multi-tissue informed log-domain intensity normalisation
1297+
1298+
1299+ Example
1300+ -------
1301+
1302+ >>> import nipype.interfaces.mrtrix3 as mrt
1303+ >>> mtn = mrt.MTnormalise()
1304+ >>> mtn.inputs.fod_wm = 'wmfod.mif'
1305+ >>> mtn.inputs.fod_gm = 'gmfod.mif'
1306+ >>> mtn.inputs.fod_csf = 'csffod.mif'
1307+ >>> mtn.inputs.out_file_wm = 'wmfod_norm.mif'
1308+ >>> mtn.inputs.out_file_gm = 'gmfod_norm.mif'
1309+ >>> mtn.inputs.out_file_csf = 'csffod_norm.mif'
1310+ >>> mtn.cmdline
1311+ 'mtnormalise wmfod.mif wmfod_norm.mif gmfod.mif gmfod_norm.mif csffod.mif csffod_norm.mif'
1312+ >>> mtn.run()
1313+ """
1314+
1315+ _cmd = "mtnormalise"
1316+ input_spec = MTNormaliseInputSpec
1317+ output_spec = MTNormaliseOutputSpec
0 commit comments