66 CommandLineInputSpec ,
77 CommandLine ,
88 File ,
9- traits , isdefined
9+ traits ,
10+ isdefined ,
1011)
1112from nipype .utils .filemanip import split_filename
1213
1314
1415class RobexInputSpec (CommandLineInputSpec ):
15- in_file = File (desc = "Input volume" , exists = True ,
16- mandatory = True , position = 0 , argstr = "%s" )
17- out_file = File (desc = "Output volume" , position = 1 , argstr = "%s" ,
18- hash_files = False , name_template = '%s_brain' , keep_extension = True )
19- out_mask = File (desc = "Output mask" , position = 2 , argstr = "%s" ,
20- hash_files = False , name_template = '%s_brainmask' , keep_extension = True )
16+ in_file = File (
17+ desc = "Input volume" , exists = True , mandatory = True , position = 0 , argstr = "%s"
18+ )
19+ out_file = File (
20+ desc = "Output volume" ,
21+ position = 1 ,
22+ argstr = "%s" ,
23+ hash_files = False ,
24+ name_template = '%s_brain' ,
25+ keep_extension = True ,
26+ )
27+ out_mask = File (
28+ desc = "Output mask" ,
29+ position = 2 ,
30+ argstr = "%s" ,
31+ hash_files = False ,
32+ name_template = '%s_brainmask' ,
33+ keep_extension = True ,
34+ )
2135 seed = traits .Int (desc = "Seed for random number generator" , position = 3 , argstr = "%i" )
2236
2337
@@ -37,7 +51,7 @@ class RobexSegment(CommandLine):
3751 The method ROBEX is based on was published in IEEE Transactions on Medical Imaging;
3852 please visit the website http://www.jeiglesias.com to download the paper.
3953
40- Examples
54+ Examples
4155 --------
4256 >>> path_mr = 'structural.nii'
4357 >>> robex = RobexSegment(in_file=path_mr)
0 commit comments