Skip to content

Commit 01fd801

Browse files
committed
Added xor option in Camino connectivity for robustness
1 parent dc38324 commit 01fd801

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

nipype/interfaces/camino/connectivity.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,10 @@ class ConmatInputSpec(CommandLineInputSpec):
3535

3636
tract_stat = traits.Enum("mean", "min", "max", "sum", "median", "var", argstr='-tractstat %s', units='NA',
3737
desc=("Tract statistic to use. See TractStats for other options."),
38-
requires=['scalar_file'])
38+
requires=['scalar_file'],xor=['tract_prop'])
3939

40-
tract_prop = traits.Enum("length", "endpointsep", argstr='-tractstat %s', units='NA',
40+
tract_prop = traits.Enum("length", "endpointsep", argstr='-tractstat %s',
41+
units='NA', xor=['tract_stat'],
4142
desc=('Tract property average to compute in the connectivity matrix. '
4243
'See TractStats for details.'))
4344

nipype/interfaces/camino/tests/test_auto_Conmat.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,28 +13,29 @@ def test_Conmat_inputs():
1313
),
1414
in_file=dict(argstr='-inputfile %s',
1515
mandatory=True,
16-
position=1,
1716
),
1817
output_root=dict(argstr='-outputroot %s',
1918
genfile=True,
2019
),
2120
scalar_file=dict(argstr='-scalarfile %s',
22-
position=3,
2321
requires=['tract_stat'],
2422
),
2523
target_file=dict(argstr='-targetfile %s',
2624
mandatory=True,
27-
position=2,
2825
),
2926
targetname_file=dict(argstr='-targetnamefile %s',
30-
position=4,
3127
),
3228
terminal_output=dict(mandatory=True,
3329
nohash=True,
3430
),
31+
tract_prop=dict(argstr='-tractstat %s',
32+
units='NA',
33+
xor=['tract_stat'],
34+
),
3535
tract_stat=dict(argstr='-tractstat %s',
3636
requires=['scalar_file'],
3737
units='NA',
38+
xor=['tract_prop'],
3839
),
3940
)
4041
inputs = Conmat.input_spec()

0 commit comments

Comments
 (0)