@@ -16,7 +16,12 @@ class DerivativesDataSink(_DDS):
16
16
17
17
18
18
def init_fmap_reports_wf (
19
- * , output_dir , fmap_type , custom_entities = None , name = "fmap_reports_wf" ,
19
+ * ,
20
+ output_dir ,
21
+ fmap_type ,
22
+ bids_fmap_id = None ,
23
+ custom_entities = None ,
24
+ name = "fmap_reports_wf" ,
20
25
):
21
26
"""
22
27
Set up a battery of datasinks to store reports in the right location.
@@ -25,10 +30,12 @@ def init_fmap_reports_wf(
25
30
----------
26
31
fmap_type : :obj:`str`
27
32
The fieldmap estimator type.
28
- custom_entities : :obj:`dict`
29
- Define extra entities that will be written out in filenames.
30
33
output_dir : :obj:`str`
31
34
Directory in which to save derivatives
35
+ bids_fmap_id : :obj:`str`
36
+ Sets the ``B0FieldIdentifier`` metadata into the outputs.
37
+ custom_entities : :obj:`dict`
38
+ Define extra entities that will be written out in filenames.
32
39
name : :obj:`str`
33
40
Workflow name (default: ``"fmap_reports_wf"``)
34
41
@@ -47,6 +54,8 @@ def init_fmap_reports_wf(
47
54
from ..interfaces .reportlets import FieldmapReportlet
48
55
49
56
custom_entities = custom_entities or {}
57
+ if bids_fmap_id :
58
+ custom_entities ["fmapid" ] = bids_fmap_id .replace ("_" , "" )
50
59
51
60
workflow = pe .Workflow (name = name )
52
61
inputnode = pe .Node (
@@ -100,14 +109,16 @@ def init_fmap_derivatives_wf(
100
109
101
110
Parameters
102
111
----------
112
+ output_dir : :obj:`str`
113
+ Directory in which to save derivatives
103
114
bids_fmap_id : :obj:`str`
104
115
Sets the ``B0FieldIdentifier`` metadata into the outputs.
105
116
custom_entities : :obj:`dict`
106
117
Define extra entities that will be written out in filenames.
107
- output_dir : :obj:`str`
108
- Directory in which to save derivatives
109
118
name : :obj:`str`
110
119
Workflow name (default: ``"fmap_derivatives_wf"``)
120
+ write_coeff : :obj:`bool`
121
+ Build the workflow path to map coefficients into target space.
111
122
112
123
Inputs
113
124
------
@@ -122,6 +133,8 @@ def init_fmap_derivatives_wf(
122
133
123
134
"""
124
135
custom_entities = custom_entities or {}
136
+ if bids_fmap_id :
137
+ custom_entities ["fmapid" ] = bids_fmap_id .replace ("_" , "" )
125
138
126
139
workflow = pe .Workflow (name = name )
127
140
inputnode = pe .Node (
0 commit comments