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: '
@@ -39,7 +35,12 @@ class ConmatInputSpec(CommandLineInputSpec):
3935
4036 tract_stat = traits .Enum ("mean" , "min" , "max" , "sum" , "median" , "var" , argstr = '-tractstat %s' , units = 'NA' ,
4137 desc = ("Tract statistic to use. See TractStats for other options." ),
42- requires = ['scalar_file' ])
38+ requires = ['scalar_file' ],xor = ['tract_prop' ])
39+
40+ tract_prop = traits .Enum ("length" , "endpointsep" , argstr = '-tractstat %s' ,
41+ units = 'NA' , xor = ['tract_stat' ],
42+ desc = ('Tract property average to compute in the connectivity matrix. '
43+ 'See TractStats for details.' ))
4344
4445 output_root = File (argstr = '-outputroot %s' , genfile = True ,
4546 desc = ('filename root prepended onto the names of the output files. '
0 commit comments