12
12
import os
13
13
14
14
class 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 ,
17
16
desc = 'Streamlines as generated by the Track interface' )
18
17
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 ,
21
19
desc = 'An image containing targets, as used in ProcStreamlines interface.' )
22
20
23
21
scalar_file = File (exists = True , argstr = '-scalarfile %s' ,
24
- position = 3 ,
25
22
desc = ('Optional scalar file for computing tract-based statistics. '
26
23
'Must be in the same space as the target file.' ),
27
24
requires = ['tract_stat' ])
28
25
29
26
targetname_file = File (exists = True , argstr = '-targetnamefile %s' ,
30
- position = 4 ,
31
27
desc = ('Optional names of targets. This file should contain one entry per line, '
32
28
'with the target intensity followed by the name, separated by white space. '
33
29
'For example: '
@@ -39,7 +35,12 @@ class ConmatInputSpec(CommandLineInputSpec):
39
35
40
36
tract_stat = traits .Enum ("mean" , "min" , "max" , "sum" , "median" , "var" , argstr = '-tractstat %s' , units = 'NA' ,
41
37
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.' ))
43
44
44
45
output_root = File (argstr = '-outputroot %s' , genfile = True ,
45
46
desc = ('filename root prepended onto the names of the output files. '
0 commit comments