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: '
@@ -41,6 +37,10 @@ class ConmatInputSpec(CommandLineInputSpec):
41
37
desc = ("Tract statistic to use. See TractStats for other options." ),
42
38
requires = ['scalar_file' ])
43
39
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
+
44
44
output_root = File (argstr = '-outputroot %s' , genfile = True ,
45
45
desc = ('filename root prepended onto the names of the output files. '
46
46
'The extension will be determined from the input.' ))
0 commit comments