1717import re
1818
1919class Dcm2niiInputSpec (CommandLineInputSpec ):
20- source_names = InputMultiPath (File (exists = True ), argstr = "%s" , position = 16 ,
20+ source_names = InputMultiPath (File (exists = True ), argstr = "%s" , position = - 1 ,
2121 copyfile = False , mandatory = True )
22- anonymize = traits .Bool (True , argstr = '-a' , usedefault = True , position = 0 )
23- config_file = File (exists = True , argstr = "-b %s" , genfile = True , position = 1 )
24- collapse_folders = traits .Bool (True , argstr = '-c' , usedefault = True , position = 2 )
25- date_in_filename = traits .Bool (True , argstr = '-d' , usedefault = True , position = 3 )
26- events_in_filename = traits .Bool (True , argstr = '-e' , usedefault = True , position = 4 )
27- source_in_filename = traits .Bool (False , argstr = '-f' , usedefault = True , position = 5 )
28- gzip_output = traits .Bool (False , argstr = '-g' , usedefault = True , position = 6 )
29- id_in_filename = traits .Bool (False , argstr = '-i' , usedefault = True , position = 7 )
30- nii_output = traits .Bool (True , argstr = '-n' , usedefault = True , position = 8 )
31- output_dir = Directory (exists = True , argstr = '-o %s' , genfile = True , position = 9 )
32- protocol_in_filename = traits .Bool (True , argstr = '-p' , usedefault = True , position = 10 )
33- reorient = traits .Bool (argstr = '-r' , position = 11 )
34- spm_analyze = traits .Bool (argstr = '-s' , xor = ['nii_output' ], position = 12 )
35- convert_all_pars = traits .Bool (True , argstr = '-v' , usedefault = True , position = 13 )
36- reorient_and_crop = traits .Bool (False , argstr = '-x' , usedefault = True , position = 14 )
37- args = traits .Str (argstr = '%s' , desc = 'Additional parameters to the command' ,
38- position = 15 )
22+ anonymize = traits .Bool (True , argstr = '-a' , usedefault = True )
23+ config_file = File (exists = True , argstr = "-b %s" , genfile = True )
24+ collapse_folders = traits .Bool (True , argstr = '-c' , usedefault = True )
25+ date_in_filename = traits .Bool (True , argstr = '-d' , usedefault = True )
26+ events_in_filename = traits .Bool (True , argstr = '-e' , usedefault = True )
27+ source_in_filename = traits .Bool (False , argstr = '-f' , usedefault = True )
28+ gzip_output = traits .Bool (False , argstr = '-g' , usedefault = True )
29+ id_in_filename = traits .Bool (False , argstr = '-i' , usedefault = True )
30+ nii_output = traits .Bool (True , argstr = '-n' , usedefault = True )
31+ output_dir = Directory (exists = True , argstr = '-o %s' , genfile = True )
32+ protocol_in_filename = traits .Bool (True , argstr = '-p' , usedefault = True )
33+ reorient = traits .Bool (argstr = '-r' )
34+ spm_analyze = traits .Bool (argstr = '-s' , xor = ['nii_output' ])
35+ convert_all_pars = traits .Bool (True , argstr = '-v' , usedefault = True )
36+ reorient_and_crop = traits .Bool (False , argstr = '-x' , usedefault = True )
3937
4038class Dcm2niiOutputSpec (TraitedSpec ):
4139 converted_files = OutputMultiPath (File (exists = True ))
@@ -56,7 +54,7 @@ class Dcm2nii(CommandLine):
5654 >>> converter.inputs.gzip_output = True
5755 >>> converter.inputs.output_dir = '.'
5856 >>> converter.cmdline #doctest: +ELLIPSIS
59- 'dcm2nii -a y -b config.ini -c y -d y -e y -f n - g y -i n -n y -o . -p y -v y -x n functional_1.dcm'
57+ 'dcm2nii -a y -c y - b config.ini -v y -d y -e y -g y -i n -n y -o . -p y -x n -f n functional_1.dcm'
6058 >>> converter.run() # doctest: +SKIP
6159 """
6260
0 commit comments