1212import os
1313
1414class ConmatInputSpec (CommandLineInputSpec ):
15- in_file = File (exists = True , argstr = '-inputfile %s' ,
16- mandatory = True , position = 1 ,
15+ in_file = File (exists = True , argstr = '-inputfile %s' , mandatory = True ,
1716 desc = 'Streamlines as generated by the Track interface' )
1817
19- target_file = File (exists = True , argstr = '-targetfile %s' ,
20- mandatory = True , position = 2 ,
18+ target_file = File (exists = True , argstr = '-targetfile %s' , mandatory = True ,
2119 desc = 'An image containing targets, as used in ProcStreamlines interface.' )
2220
2321 scalar_file = File (exists = True , argstr = '-scalarfile %s' ,
24- position = 3 ,
2522 desc = ('Optional scalar file for computing tract-based statistics. '
2623 'Must be in the same space as the target file.' ),
2724 requires = ['tract_stat' ])
2825
2926 targetname_file = File (exists = True , argstr = '-targetnamefile %s' ,
30- position = 4 ,
3127 desc = ('Optional names of targets. This file should contain one entry per line, '
3228 'with the target intensity followed by the name, separated by white space. '
3329 'For example: '
@@ -41,6 +37,10 @@ class ConmatInputSpec(CommandLineInputSpec):
4137 desc = ("Tract statistic to use. See TractStats for other options." ),
4238 requires = ['scalar_file' ])
4339
40+ tract_prop = traits .Enum ("length" , "endpointsep" , argstr = '-tractstat %s' , units = 'NA' ,
41+ desc = ('Tract property average to compute in the connectivity matrix. '
42+ 'See TractStats for details.' ))
43+
4444 output_root = File (argstr = '-outputroot %s' , genfile = True ,
4545 desc = ('filename root prepended onto the names of the output files. '
4646 'The extension will be determined from the input.' ))
0 commit comments