10
10
from ...config import DEFAULT_MEMORY_MIN_GB
11
11
12
12
from ...interfaces import DerivativesDataSink
13
- from ...interfaces .reports import DiffusionSummary
14
13
from ...interfaces .vectors import CheckGradientTable
15
14
16
15
@@ -125,13 +124,9 @@ def init_dwi_preproc_wf(
125
124
LOGGER .log (25 , 'No valid layout: building empty workflow.' )
126
125
bvec_file = '/completely/made/up/path/sub-01_dwi.bvec'
127
126
bval_file = '/completely/made/up/path/sub-01_dwi.bval'
128
- metadata = {
129
- 'PhaseEncodingDirection' : 'j' ,
130
- }
131
127
else :
132
128
bvec_file = layout .get_bvec (dwi_file )
133
129
bval_file = layout .get_bval (dwi_file )
134
- metadata = layout .get_metadata (dwi_file )
135
130
136
131
inputnode = pe .Node (niu .IdentityInterface (
137
132
fields = ['dwi_file' , 'bvec_file' , 'bval_file' ,
@@ -150,12 +145,6 @@ def init_dwi_preproc_wf(
150
145
'out_dwi_mask' ]),
151
146
name = 'outputnode' )
152
147
153
- summary = pe .Node (
154
- DiffusionSummary (
155
- distortion_correction = 'Not implemented' ,
156
- pe_direction = metadata .get ("PhaseEncodingDirection" )),
157
- name = 'summary' , mem_gb = DEFAULT_MEMORY_MIN_GB , run_without_submitting = True )
158
-
159
148
gradient_table = pe .Node (CheckGradientTable (), name = 'gradient_table' )
160
149
161
150
dwi_reference_wf = init_dwi_reference_wf (omp_nthreads = 1 , gen_report = True )
@@ -178,21 +167,14 @@ def init_dwi_preproc_wf(
178
167
])
179
168
180
169
# REPORTING
181
- ds_report_summary = pe .Node (
182
- DerivativesDataSink (desc = 'summary' , keep_dtype = True ),
183
- name = 'ds_report_summary' , run_without_submitting = True ,
184
- mem_gb = DEFAULT_MEMORY_MIN_GB
185
- )
186
-
187
170
ds_report_validation = pe .Node (
188
171
DerivativesDataSink (base_directory = reportlets_dir ,
189
172
desc = 'validation' , keep_dtype = True ),
190
173
name = 'ds_report_validation' , run_without_submitting = True ,
191
174
mem_gb = DEFAULT_MEMORY_MIN_GB )
192
175
193
176
workflow .connect ([
194
- (inputnode , ds_report_summary , [('dwi_file' , 'source_file' )]),
195
- (summary , ds_report_summary , [('out_report' , 'in_file' )]),
177
+ (inputnode , ds_report_validation , [('dwi' , 'source_file' )]),
196
178
(dwi_reference_wf , ds_report_validation , [
197
179
('outputnode.validation_report' , 'in_file' )]),
198
180
])
0 commit comments