|
15 | 15 | <https://bids-specification.readthedocs.io/en/stable/04-modality-specific-files/01-magnetic-resonance-imaging-data.html#two-phase-images-and-two-magnitude-images>`__.
|
16 | 16 | Some scanners produce one ``phasediff`` map, where the drift between the two echos has
|
17 | 17 | already been calulated (see `the corresponding section of BIDS
|
18 |
| -<https://bids-specification.readthedocs.io/en/stable/04-modality-specific-files/01-magnetic-resonance-imaging-data.html#case-1-phase-difference-map-and-at-least-one-magnitude-image>__`). |
| 18 | +<https://bids-specification.readthedocs.io/en/stable/04-modality-specific-files/01-magnetic-resonance-imaging-data.html#case-1-phase-difference-map-and-at-least-one-magnitude-image>`__). |
19 | 19 |
|
20 | 20 | .. _sdc_direct_b0 :
|
21 | 21 |
|
@@ -56,30 +56,30 @@ def init_fmap_wf(omp_nthreads, mode="phase-diff", name="fmap_wf"):
|
56 | 56 | :graph2use: orig
|
57 | 57 | :simple_form: yes
|
58 | 58 |
|
59 |
| - from sdcflows.workflows.fmap import init_fmap_wf |
| 59 | + from sdcflows.models.fieldmap import init_fmap_wf |
60 | 60 | wf = init_fmap_wf(omp_nthreads=6)
|
61 | 61 |
|
62 | 62 | Parameters
|
63 | 63 | ----------
|
64 |
| - omp_nthreads : int |
| 64 | + omp_nthreads : :obj:`int` |
65 | 65 | Maximum number of threads an individual process may use.
|
66 |
| - name : str |
| 66 | + name : :obj:`str` |
67 | 67 | Unique name of this workflow.
|
68 | 68 |
|
69 | 69 | Inputs
|
70 | 70 | ------
|
71 |
| - magnitude : str |
| 71 | + magnitude : :obj:`str` |
72 | 72 | Path to the corresponding magnitude image for anatomical reference.
|
73 |
| - fieldmap : str |
| 73 | + fieldmap : :obj:`str` |
74 | 74 | Path to the fieldmap acquisition (``*_fieldmap.nii[.gz]`` of BIDS).
|
75 | 75 |
|
76 | 76 | Outputs
|
77 | 77 | -------
|
78 |
| - fmap : str |
| 78 | + fmap : :obj:`str` |
79 | 79 | Path to the estimated fieldmap.
|
80 |
| - fmap_ref : str |
| 80 | + fmap_ref : :obj:`str` |
81 | 81 | Path to a preprocessed magnitude image reference.
|
82 |
| - fmap_mask : str |
| 82 | + fmap_mask : :obj:`str` |
83 | 83 | Path to a binary brain mask corresponding to the ``fmap`` and ``fmap_ref``
|
84 | 84 | pair.
|
85 | 85 |
|
@@ -167,26 +167,26 @@ def init_magnitude_wf(omp_nthreads, name="magnitude_wf"):
|
167 | 167 | :graph2use: orig
|
168 | 168 | :simple_form: yes
|
169 | 169 |
|
170 |
| - from sdcflows.workflows.fmap import init_magnitude_wf |
| 170 | + from sdcflows.models.fieldmap import init_magnitude_wf |
171 | 171 | wf = init_magnitude_wf(omp_nthreads=6)
|
172 | 172 |
|
173 | 173 | Parameters
|
174 | 174 | ----------
|
175 |
| - omp_nthreads : int |
| 175 | + omp_nthreads : :obj:`int` |
176 | 176 | Maximum number of threads an individual process may use
|
177 |
| - name : str |
| 177 | + name : :obj:`str` |
178 | 178 | Name of workflow (default: ``prepare_magnitude_w``)
|
179 | 179 |
|
180 | 180 | Inputs
|
181 | 181 | ------
|
182 |
| - magnitude : pathlike |
| 182 | + magnitude : :obj:`os.PathLike` |
183 | 183 | Path to the corresponding magnitude path(s).
|
184 | 184 |
|
185 | 185 | Outputs
|
186 | 186 | -------
|
187 |
| - fmap_ref : pathlike |
| 187 | + fmap_ref : :obj:`os.PathLike` |
188 | 188 | Path to the fieldmap reference calculated in this workflow.
|
189 |
| - fmap_mask : pathlike |
| 189 | + fmap_mask : :obj:`os.PathLike` |
190 | 190 | Path to a binary brain mask corresponding to the reference above.
|
191 | 191 |
|
192 | 192 | """
|
@@ -239,30 +239,30 @@ def init_fmap_postproc_wf(
|
239 | 239 | :graph2use: orig
|
240 | 240 | :simple_form: yes
|
241 | 241 |
|
242 |
| - from sdcflows.workflows.fmap import init_fmap_postproc_wf |
| 242 | + from sdcflows.models.fieldmap import init_fmap_postproc_wf |
243 | 243 | wf = init_fmap_postproc_wf(omp_nthreads=6)
|
244 | 244 |
|
245 | 245 | Parameters
|
246 | 246 | ----------
|
247 |
| - omp_nthreads : int |
| 247 | + omp_nthreads : :obj:`int` |
248 | 248 | Maximum number of threads an individual process may use
|
249 |
| - median_kernel_size : int |
| 249 | + median_kernel_size : :obj:`int` |
250 | 250 | Size of the kernel when smoothing is done with a median filter.
|
251 |
| - name : str |
| 251 | + name : :obj:`str` |
252 | 252 | Name of workflow (default: ``fmap_postproc_wf``)
|
253 | 253 |
|
254 | 254 | Inputs
|
255 | 255 | ------
|
256 |
| - fmap : pathlike |
| 256 | + fmap : :obj:`os.PathLike` |
257 | 257 | Fully preprocessed :math:`B_0` field nonuniformity map (aka *fieldmap*).
|
258 |
| - fmap_ref : pathlike |
| 258 | + fmap_ref : :obj:`os.PathLike` |
259 | 259 | A preprocessed magnitude/reference image for the fieldmap.
|
260 |
| - fmap_mask : pathlike |
| 260 | + fmap_mask : :obj:`os.PathLike` |
261 | 261 | A brain binary mask corresponding to this fieldmap.
|
262 | 262 |
|
263 | 263 | Outputs
|
264 | 264 | -------
|
265 |
| - out_fmap : pathlike |
| 265 | + out_fmap : :obj:`os.PathLike` |
266 | 266 | Postprocessed fieldmap.
|
267 | 267 |
|
268 | 268 | """
|
@@ -336,28 +336,28 @@ def init_phdiff_wf(omp_nthreads, name="phdiff_wf"):
|
336 | 336 | :graph2use: orig
|
337 | 337 | :simple_form: yes
|
338 | 338 |
|
339 |
| - from sdcflows.workflows.phdiff import init_phdiff_wf |
| 339 | + from sdcflows.models.fieldmap import init_phdiff_wf |
340 | 340 | wf = init_phdiff_wf(omp_nthreads=1)
|
341 | 341 |
|
342 | 342 | Parameters
|
343 | 343 | ----------
|
344 |
| - omp_nthreads : int |
| 344 | + omp_nthreads : :obj:`int` |
345 | 345 | Maximum number of threads an individual process may use
|
346 | 346 |
|
347 | 347 | Inputs
|
348 | 348 | ------
|
349 |
| - magnitude : :obj:`os.pathlike` |
| 349 | + magnitude : :obj:`os.PathLike` |
350 | 350 | A reference magnitude image preprocessed elsewhere.
|
351 |
| - phase : list of tuple(os.pathlike, dict) |
| 351 | + phase : :obj:`list` of :obj:`tuple` of (:obj:`os.PathLike`, :obj:`dict`) |
352 | 352 | List containing one GRE phase-difference map with its corresponding metadata
|
353 | 353 | (requires ``EchoTime1`` and ``EchoTime2``), or the phase maps for the two
|
354 | 354 | subsequent echoes, with their metadata (requires ``EchoTime``).
|
355 |
| - mask : :obj:`os.pathlike` |
| 355 | + mask : :obj:`os.PathLike` |
356 | 356 | A brain mask calculated from the magnitude image.
|
357 | 357 |
|
358 | 358 | Outputs
|
359 | 359 | -------
|
360 |
| - fieldmap : :obj:`os.pathlike` |
| 360 | + fieldmap : :obj:`os.PathLike` |
361 | 361 | The estimated fieldmap in Hz. # TODO: write metadata "Units"
|
362 | 362 |
|
363 | 363 | References
|
@@ -448,7 +448,7 @@ def _demean(in_file, in_mask=None, usemode=True):
|
448 | 448 |
|
449 | 449 | Parameters
|
450 | 450 | ----------
|
451 |
| - usemode : bool |
| 451 | + usemode : :obj:`bool` |
452 | 452 | Use the mode instead of the median (should be even more robust
|
453 | 453 | against outliers).
|
454 | 454 |
|
|
0 commit comments