File tree Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,6 @@ def init_dwi_preproc_wf(dwi_file, has_fieldmap=False):
52
52
fmap_id
53
53
The BIDS modality label of the fieldmap being used
54
54
55
-
56
55
Outputs
57
56
-------
58
57
dwi_reference
@@ -81,13 +80,17 @@ def init_dwi_preproc_wf(dwi_file, has_fieldmap=False):
81
80
)
82
81
83
82
if has_fieldmap :
83
+ import re
84
84
from sdcflows .fieldmaps import get_identifier
85
85
86
- estimator_key = get_identifier (dwi_file )
86
+ dwi_rel = re .sub (
87
+ r"^sub-[a-zA-Z0-9]*/" , "" , str (dwi_file .relative_to (layout .root ))
88
+ )
89
+ estimator_key = get_identifier (dwi_rel )
87
90
if not estimator_key :
88
91
has_fieldmap = False
89
92
config .loggers .workflow .critical (
90
- f"None of the available B0 fieldmaps are associated to <{ dwi_file } >"
93
+ f"None of the available B0 fieldmaps are associated to <{ dwi_rel } >"
91
94
)
92
95
93
96
# Build workflow
@@ -167,7 +170,8 @@ def init_dwi_preproc_wf(dwi_file, has_fieldmap=False):
167
170
168
171
ds_report_reg = pe .Node (
169
172
DerivativesDataSink (
170
- base_directory = str (config .execution .output_dir ), datatype = "figures" ,
173
+ base_directory = str (config .execution .output_dir ),
174
+ datatype = "figures" ,
171
175
),
172
176
name = "ds_report_reg" ,
173
177
run_without_submitting = True ,
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ install_requires =
29
29
numpy
30
30
pybids >= 0.11.1
31
31
pyyaml
32
- sdcflows @ git+https://github.com/nipreps/sdcflows.git@9b5c167d81e7670ef2121151b2d59fe190c0167c
32
+ sdcflows @ git+https://github.com/nipreps/sdcflows.git@b3dc469cfa0a9bbffd94fa55976362b6fbeebb8c
33
33
smriprep >= 0.8.0rc0
34
34
templateflow ~= 0.6
35
35
toml
You can’t perform that action at this time.
0 commit comments