Skip to content

Commit ca9cb5d

Browse files
committed
FIX: update boilerplate text
1 parent c0daf44 commit ca9cb5d

File tree

2 files changed

+29
-9
lines changed

2 files changed

+29
-9
lines changed

petprep/interfaces/reports.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,8 +248,8 @@ def _generate_segment(self):
248248

249249

250250
class AboutSummaryInputSpec(BaseInterfaceInputSpec):
251-
version = Str(desc='FMRIPREP version')
252-
command = Str(desc='FMRIPREP command')
251+
version = Str(desc='PETPREP version')
252+
command = Str(desc='PETPREP command')
253253
# Date not included - update timestamp only if version or command changes
254254

255255

petprep/workflows/base.py

Lines changed: 27 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
PETPrep base processing workflows
2525
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2626
27-
.. autofunction:: init_fmriprep_wf
27+
.. autofunction:: init_petprep_wf
2828
.. autofunction:: init_single_subject_wf
2929
3030
"""
@@ -58,8 +58,8 @@ def init_petprep_wf():
5858
:graph2use: orig
5959
:simple_form: yes
6060
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
6363
with mock_config():
6464
wf = init_petprep_wf()
6565
@@ -126,8 +126,8 @@ def init_single_subject_wf(subject_id: str):
126126
:graph2use: orig
127127
:simple_form: yes
128128
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
131131
with mock_config():
132132
wf = init_single_subject_wf('01')
133133
@@ -532,8 +532,28 @@ def init_single_subject_wf(subject_id: str):
532532
PET data preprocessing
533533
534534
: 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'
537557

538558
for pet_series in pet_runs:
539559
pet_cache = {}

0 commit comments

Comments
 (0)