|
24 | 24 | PETPrep base processing workflows
|
25 | 25 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
26 | 26 |
|
27 |
| -.. autofunction:: init_fmriprep_wf |
| 27 | +.. autofunction:: init_petprep_wf |
28 | 28 | .. autofunction:: init_single_subject_wf
|
29 | 29 |
|
30 | 30 | """
|
@@ -58,8 +58,8 @@ def init_petprep_wf():
|
58 | 58 | :graph2use: orig
|
59 | 59 | :simple_form: yes
|
60 | 60 |
|
61 |
| - from fmriprep.workflows.tests import mock_config |
62 |
| - from fmriprep.workflows.base import init_petprep_wf |
| 61 | + from petrep.workflows.tests import mock_config |
| 62 | + from petprep.workflows.base import init_petprep_wf |
63 | 63 | with mock_config():
|
64 | 64 | wf = init_petprep_wf()
|
65 | 65 |
|
@@ -126,8 +126,8 @@ def init_single_subject_wf(subject_id: str):
|
126 | 126 | :graph2use: orig
|
127 | 127 | :simple_form: yes
|
128 | 128 |
|
129 |
| - from fmriprep.workflows.tests import mock_config |
130 |
| - from fmriprep.workflows.base import init_single_subject_wf |
| 129 | + from petprep.workflows.tests import mock_config |
| 130 | + from petprep.workflows.base import init_single_subject_wf |
131 | 131 | with mock_config():
|
132 | 132 | wf = init_single_subject_wf('01')
|
133 | 133 |
|
@@ -532,8 +532,28 @@ def init_single_subject_wf(subject_id: str):
|
532 | 532 | PET data preprocessing
|
533 | 533 |
|
534 | 534 | : For each of the {len(pet_runs)} PET runs found per subject (across all
|
535 |
| -tasks and sessions), the following preprocessing was performed. |
536 |
| -""" |
| 535 | +tasks and sessions), the following preprocessing steps were performed. Robust head |
| 536 | +motion estimation and correction were carried out after generating a |
| 537 | +reference image, which was subsequently coregistered to the T1-weighted |
| 538 | +anatomical image. A brain mask was computed and the structural image was |
| 539 | +segmented with the ``{config.workflow.seg}`` segmentation workflow from FreeSurfer.""" |
| 540 | + |
| 541 | + if config.workflow.pvc_tool and config.workflow.pvc_method: |
| 542 | + pet_pre_desc += ( |
| 543 | + f' Partial volume correction was applied using' |
| 544 | + f' ``{config.workflow.pvc_tool}`` using the method' |
| 545 | + f' ``{config.workflow.pvc_method}`` and with a PSF of' |
| 546 | + f' {config.workflow.pvc_psf} mm.' |
| 547 | + ) |
| 548 | + |
| 549 | + if config.workflow.ref_mask_name: |
| 550 | + pet_pre_desc += ( |
| 551 | + f' A reference region mask for the ``{config.workflow.ref_mask_name}``' |
| 552 | + ' was generated and the corresponding time-activity curve' |
| 553 | + ' extracted.' |
| 554 | + ) |
| 555 | + |
| 556 | + pet_pre_desc += '\n' |
537 | 557 |
|
538 | 558 | for pet_series in pet_runs:
|
539 | 559 | pet_cache = {}
|
|
0 commit comments