|
1 | 1 | # coding: utf-8
|
| 2 | +# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*- |
| 3 | +# vi: set ft=python sts=4 ts=4 sw=4 et: |
2 | 4 |
|
3 | 5 | import nipype.pipeline.engine as pe
|
4 | 6 | import nipype.interfaces.utility as niu
|
@@ -41,8 +43,8 @@ def hmc_pipeline(name='motion_correct'):
|
41 | 43 | Example
|
42 | 44 | -------
|
43 | 45 |
|
44 |
| - >>> from nipype.workflows.dmri.fsl.epi import motion_correct |
45 |
| - >>> hmc = motion_correct() |
| 46 | + >>> from nipype.workflows.dmri.preprocess.epi import hmc_pipeline |
| 47 | + >>> hmc = hmc_pipeline() |
46 | 48 | >>> hmc.inputs.inputnode.in_file = 'diffusion.nii'
|
47 | 49 | >>> hmc.inputs.inputnode.in_bvec = 'diffusion.bvec'
|
48 | 50 | >>> hmc.inputs.inputnode.in_mask = 'mask.nii'
|
@@ -128,15 +130,15 @@ def ecc_pipeline(name='eddy_correct'):
|
128 | 130 | <http://cds.ismrm.org/protected/10MProceedings/files/1644_129.pdf>`_,
|
129 | 131 | Proc. ISMRM 18th Annual Meeting, (2010).
|
130 | 132 |
|
131 |
| - .. [Rohde04] Rohde et al., `Comprehensive Approach for Correction of Motion and Distortion \ |
132 |
| - in Diffusion-Weighted MRI \ |
| 133 | + .. [Rohde04] Rohde et al., `Comprehensive Approach for Correction of Motion and Distortion |
| 134 | + in Diffusion-Weighted MRI |
133 | 135 | <http://stbb.nichd.nih.gov/pdf/com_app_cor_mri04.pdf>`_, MRM 51:103-114 (2004).
|
134 | 136 |
|
135 | 137 | Example
|
136 | 138 | -------
|
137 | 139 |
|
138 |
| - >>> from nipype.workflows.dmri.fsl.epi import eddy_correct |
139 |
| - >>> ecc = eddy_correct() |
| 140 | + >>> from nipype.workflows.dmri.preprocess.epi import ecc_pipeline |
| 141 | + >>> ecc = ecc_pipeline() |
140 | 142 | >>> ecc.inputs.inputnode.in_file = 'diffusion.nii'
|
141 | 143 | >>> ecc.inputs.inputnode.in_bval = 'diffusion.bval'
|
142 | 144 | >>> ecc.inputs.inputnode.in_mask = 'mask.nii'
|
@@ -225,6 +227,18 @@ def sdc_fmb(name='fmb_correction',
|
225 | 227 | [Jenkinson03]_. Preparation of the fieldmap is performed reproducing the script in FSL
|
226 | 228 | `fsl_prepare_fieldmap <http://fsl.fmrib.ox.ac.uk/fsl/fslwiki/FUGUE/Guide#SIEMENS_data>`_.
|
227 | 229 |
|
| 230 | + Example |
| 231 | + ------- |
| 232 | +
|
| 233 | + >>> from nipype.workflows.dmri.preprocess.epi import sdc_fmb |
| 234 | + >>> fmb = sdc_fmb() |
| 235 | + >>> fmb.inputs.inputnode.in_file = 'diffusion.nii' |
| 236 | + >>> fmb.inputs.inputnode.in_bval = 'diffusion.bval' |
| 237 | + >>> fmb.inputs.inputnode.in_mask = 'mask.nii' |
| 238 | + >>> fmb.inputs.inputnode.bmap_mag = 'magnitude.nii' |
| 239 | + >>> fmb.inputs.inputnode.bmap_pha = 'phase.nii' |
| 240 | + >>> fmb.run() # doctest: +SKIP |
| 241 | +
|
228 | 242 | .. warning:: Only SIEMENS format fieldmaps are supported.
|
229 | 243 |
|
230 | 244 | .. admonition:: References
|
|
0 commit comments