Skip to content

Commit 1b1f059

Browse files
committed
fix: conflicts
2 parents 7c35d33 + 6239693 commit 1b1f059

File tree

3 files changed

+79
-65
lines changed

3 files changed

+79
-65
lines changed

CHANGES

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
Upcoming release (0.14.1)
22
================
33

4+
* FIX: Cluster threshold in randomise + change default prefix (https://github.com/nipy/nipype/pull/2369)
45
* MAINT: Cleaning / simplify ``Node`` (https://github.com/nipy/nipype/pull/#2325)
56
* STY: Cleanup of PEP8 violations (https://github.com/nipy/nipype/pull/2358)
67
* STY: Cleanup of trailing spaces and adding of missing newlines at end of files (https://github.com/nipy/nipype/pull/2355)

nipype/interfaces/fsl/model.py

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2111,11 +2111,8 @@ class RandomiseInputSpec(FSLCommandInputSpec):
21112111
position=0,
21122112
mandatory=True)
21132113
base_name = traits.Str(
2114-
'tbss_',
2115-
desc='the rootname that all generated files will have',
2116-
argstr='-o "%s"',
2117-
position=1,
2118-
usedefault=True)
2114+
'randomise', desc='the rootname that all generated files will have',
2115+
argstr='-o "%s"', position=1, usedefault=True)
21192116
design_mat = File(
21202117
exists=True, desc='design matrix file', argstr='-d %s', position=2)
21212118
tcon = File(
@@ -2161,9 +2158,9 @@ class RandomiseInputSpec(FSLCommandInputSpec):
21612158
var_smooth = traits.Int(
21622159
argstr='-v %d', desc='use variance smoothing (std is in mm)')
21632160
c_thresh = traits.Float(
2164-
argstr='-c %.2f', desc='carry out cluster-based thresholding')
2161+
argstr='-c %.1f', desc='carry out cluster-based thresholding')
21652162
cm_thresh = traits.Float(
2166-
argstr='-C %.2f', desc='carry out cluster-mass-based thresholding')
2163+
argstr='-C %.1f', desc='carry out cluster-mass-based thresholding')
21672164
f_c_thresh = traits.Float(
21682165
argstr='-F %.2f', desc='carry out f cluster thresholding')
21692166
f_cm_thresh = traits.Float(
@@ -2203,7 +2200,7 @@ class Randomise(FSLCommand):
22032200
>>> import nipype.interfaces.fsl as fsl
22042201
>>> rand = fsl.Randomise(in_file='allFA.nii', mask = 'mask.nii', tcon='design.con', design_mat='design.mat')
22052202
>>> rand.cmdline
2206-
'randomise -i allFA.nii -o "tbss_" -d design.mat -t design.con -m mask.nii'
2203+
'randomise -i allFA.nii -o "randomise" -d design.mat -t design.con -m mask.nii'
22072204
22082205
"""
22092206

nipype/interfaces/fsl/tests/test_auto_Randomise.py

Lines changed: 73 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -4,63 +4,79 @@
44

55

66
def test_Randomise_inputs():
7-
input_map = dict(
8-
args=dict(argstr='%s', ),
9-
base_name=dict(
10-
argstr='-o "%s"',
11-
position=1,
12-
usedefault=True,
13-
),
14-
c_thresh=dict(argstr='-c %.2f', ),
15-
cm_thresh=dict(argstr='-C %.2f', ),
16-
demean=dict(argstr='-D', ),
17-
design_mat=dict(
18-
argstr='-d %s',
19-
position=2,
20-
),
21-
environ=dict(
22-
nohash=True,
23-
usedefault=True,
24-
),
25-
f_c_thresh=dict(argstr='-F %.2f', ),
26-
f_cm_thresh=dict(argstr='-S %.2f', ),
27-
f_only=dict(argstr='--f_only', ),
28-
fcon=dict(argstr='-f %s', ),
29-
ignore_exception=dict(
30-
deprecated='1.0.0',
31-
nohash=True,
32-
usedefault=True,
33-
),
34-
in_file=dict(
35-
argstr='-i %s',
36-
mandatory=True,
37-
position=0,
38-
),
39-
mask=dict(argstr='-m %s', ),
40-
num_perm=dict(argstr='-n %d', ),
41-
one_sample_group_mean=dict(argstr='-1', ),
42-
output_type=dict(),
43-
p_vec_n_dist_files=dict(argstr='-P', ),
44-
raw_stats_imgs=dict(argstr='-R', ),
45-
seed=dict(argstr='--seed=%d', ),
46-
show_info_parallel_mode=dict(argstr='-Q', ),
47-
show_total_perms=dict(argstr='-q', ),
48-
tcon=dict(
49-
argstr='-t %s',
50-
position=3,
51-
),
52-
terminal_output=dict(
53-
deprecated='1.0.0',
54-
nohash=True,
55-
),
56-
tfce=dict(argstr='-T', ),
57-
tfce2D=dict(argstr='--T2', ),
58-
tfce_C=dict(argstr='--tfce_C=%.2f', ),
59-
tfce_E=dict(argstr='--tfce_E=%.2f', ),
60-
tfce_H=dict(argstr='--tfce_H=%.2f', ),
61-
var_smooth=dict(argstr='-v %d', ),
62-
vox_p_values=dict(argstr='-x', ),
63-
x_block_labels=dict(argstr='-e %s', ),
7+
input_map = dict(args=dict(argstr='%s',
8+
),
9+
base_name=dict(argstr='-o "%s"',
10+
position=1,
11+
usedefault=True,
12+
),
13+
c_thresh=dict(argstr='-c %.1f',
14+
),
15+
cm_thresh=dict(argstr='-C %.1f',
16+
),
17+
demean=dict(argstr='-D',
18+
),
19+
design_mat=dict(argstr='-d %s',
20+
position=2,
21+
),
22+
environ=dict(nohash=True,
23+
usedefault=True,
24+
),
25+
f_c_thresh=dict(argstr='-F %.2f',
26+
),
27+
f_cm_thresh=dict(argstr='-S %.2f',
28+
),
29+
f_only=dict(argstr='--f_only',
30+
),
31+
fcon=dict(argstr='-f %s',
32+
),
33+
ignore_exception=dict(deprecated='1.0.0',
34+
nohash=True,
35+
usedefault=True,
36+
),
37+
in_file=dict(argstr='-i %s',
38+
mandatory=True,
39+
position=0,
40+
),
41+
mask=dict(argstr='-m %s',
42+
),
43+
num_perm=dict(argstr='-n %d',
44+
),
45+
one_sample_group_mean=dict(argstr='-1',
46+
),
47+
output_type=dict(),
48+
p_vec_n_dist_files=dict(argstr='-P',
49+
),
50+
raw_stats_imgs=dict(argstr='-R',
51+
),
52+
seed=dict(argstr='--seed=%d',
53+
),
54+
show_info_parallel_mode=dict(argstr='-Q',
55+
),
56+
show_total_perms=dict(argstr='-q',
57+
),
58+
tcon=dict(argstr='-t %s',
59+
position=3,
60+
),
61+
terminal_output=dict(deprecated='1.0.0',
62+
nohash=True,
63+
),
64+
tfce=dict(argstr='-T',
65+
),
66+
tfce2D=dict(argstr='--T2',
67+
),
68+
tfce_C=dict(argstr='--tfce_C=%.2f',
69+
),
70+
tfce_E=dict(argstr='--tfce_E=%.2f',
71+
),
72+
tfce_H=dict(argstr='--tfce_H=%.2f',
73+
),
74+
var_smooth=dict(argstr='-v %d',
75+
),
76+
vox_p_values=dict(argstr='-x',
77+
),
78+
x_block_labels=dict(argstr='-e %s',
79+
),
6480
)
6581
inputs = Randomise.input_spec()
6682

0 commit comments

Comments
 (0)