Skip to content

Commit 0035cfb

Browse files
authored
Merge branch 'update_documentation' into main
2 parents c0f99d3 + ca9cb5d commit 0035cfb

File tree

14 files changed

+119
-2421
lines changed

14 files changed

+119
-2421
lines changed

CHANGES.rst

Lines changed: 4 additions & 2301 deletions
Large diffs are not rendered by default.

README.rst

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -139,13 +139,3 @@ This was supported by the BRAIN Initiative
139139
grant (OpenNeuroPET, grant ID 1R24MH120004-01A1); the Novo Nordisk Foundation (OpenNeuroPET, grant ID NN20OC0063277); the Laura and John Arnold Foundation,
140140
the NIH (grant NBIB R01EB020740, PI: Ghosh);
141141
and NIMH (R24MH114705, R24MH117179, R01MH121867, PI: Poldrack)
142-
143-
.. _FSL: https://fsl.fmrib.ox.ac.uk/fsl/fslwiki
144-
.. _ANTs: http://stnava.github.io/ANTs/
145-
.. _FreeSurfer: https://surfer.nmr.mgh.harvard.edu/
146-
.. _AFNI: https://afni.nimh.nih.gov/
147-
.. _PETSurfer: https://surfer.nmr.mgh.harvard.edu/fswiki/PetSurfer
148-
.. _PETPVC: https://github.com/UCL/PETPVC
149-
.. _kinfitr: https://github.com/mathesong/kinfitr
150-
.. _PMOD: https://www.pmod.com/
151-
.. _BIDS: https://bids.neuroimaging.io/

docs/installation.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ the ``petprep`` package:
9393
- PETPVC_ (version 1.2.10)
9494
- `bids-validator <https://github.com/bids-standard/bids-validator>`_ (version 1.14.0)
9595
- `connectome-workbench <https://www.humanconnectome.org/software/connectome-workbench>`_ (version 1.5.0)
96+
- PETPVC_ (version 1.2.10)
9697

9798
Not running on a local machine? - Data transfer
9899
===============================================

docs/links.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
.. _`BIDS Derivatives`: https://bids-specification.readthedocs.io/en/stable/05-derivatives/01-introduction.html
44
.. _`BEP 011`: https://bids-specification.readthedocs.io/en/bep011/05-derivatives/04-structural-derivatives.html
55
.. _`BEP 012`: https://bids-specification.readthedocs.io/en/bep012/05-derivatives/05-functional-derivatives.html
6+
.. _`BEP 023`: https://docs.google.com/document/d/1yzsd1J9GT-aA0DWhdlgNr5LCu6_gvbjLyfvYq2FuxlY/edit?tab=t.0#heading=h.mqkmyp254xh6
67
.. _Installation: installation.html
78
.. _workflows: workflows.html
89
.. _FSL: https://fsl.fmrib.ox.ac.uk/fsl/fslwiki/
@@ -24,3 +25,8 @@
2425
.. _tedana: https://github.com/me-ica/tedana
2526
.. _`T2* workflow`: https://tedana.readthedocs.io/en/latest/generated/tedana.workflows.t2smap_workflow.html#tedana.workflows.t2smap_workflow # noqa
2627
.. _`citation boilerplate`: https://www.nipreps.org/intro/transparency/#citation-boilerplates
28+
.. _PETSurfer: https://surfer.nmr.mgh.harvard.edu/fswiki/PetSurfer
29+
.. _PETPVC: https://github.com/UCL/PETPVC
30+
.. _kinfitr: https://github.com/mathesong/kinfitr
31+
.. _PMOD: https://www.pmod.com/
32+
.. _BIDS: https://bids.neuroimaging.io/

docs/outputs.rst

Lines changed: 25 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Outputs of *PETPrep*
77
---------------------
88
*PETPrep* outputs conform to the :abbr:`BIDS (brain imaging data structure)`
99
Derivatives specification (see `BIDS Derivatives`_, along with the
10-
upcoming `BEP 011`_ and `BEP 012`_).
10+
upcoming `BEP 011`_ and `BEP 023`_).
1111
*PETPrep* generates three broad classes of outcomes:
1212

1313
1. **Visual QA (quality assessment) reports**:
@@ -20,9 +20,9 @@ upcoming `BEP 011`_ and `BEP 012`_).
2020
have been applied.
2121
For example, :abbr:`INU (intensity non-uniformity)`-corrected versions
2222
of the T1-weighted image (per subject), the brain mask,
23-
or :abbr:`BOLD (blood-oxygen level dependent)`
24-
images after head-motion correction, slice-timing correction and aligned into
25-
the same-subject's T1w space or in some standard space.
23+
or dynamic PET series after motion correction (and optional partial volume
24+
correction) aligned into the same-subject's T1w space or in some
25+
standard space.
2626

2727
3. **Confounds**: this is a special family of derivatives that can be utilized
2828
to inform subsequent denoising steps.
@@ -57,14 +57,14 @@ The log directory contains `citation boilerplate`_ text.
5757
``dataset_description.json`` is a metadata file in which PETPrep
5858
records metadata recommended by the BIDS standard.
5959

60-
This layout, now the default, may be explicitly specified with the
60+
This default layout, may be explicitly specified with the
6161
``--output-layout bids`` command-line option.
62-
For compatibility with versions of PETPrep prior to 21.0, the
62+
For compatibility with versions of fMRIPrep prior to 21.0, the
6363
`legacy layout`_ is available via ``--output-layout legacy``.
6464

6565
Processing level
6666
----------------
67-
As of version 23.2.0, PETPrep supports three levels of derivatives:
67+
As of version 0.0.1, PETPrep supports three levels of derivatives:
6868

6969
* ``--level minimal``: This processing mode aims to produce the smallest
7070
working directory and output dataset possible, while enabling all further
@@ -73,13 +73,9 @@ As of version 23.2.0, PETPrep supports three levels of derivatives:
7373
preprocessing can be assessed. Because no resampling is done, confounds
7474
and carpetplots will be missing from the reports.
7575
* ``--level resampling``: This processing mode aims to produce additional
76-
derivatives that enable third-party resampling, resampling PET series
76+
derivatives that enable third-party resampling, resampling PET data
7777
in the working directory as needed, but these are not saved to the output
7878
directory.
79-
The ``--me-output-echos`` flag will be enabled at this level, in which
80-
case the individual echos will be saved to the working directory after
81-
slice-timing correction, head-motion correction, and susceptibility
82-
distortion correction.
8379
* ``--level full``: This processing mode aims to produce all derivatives
8480
that have previously been a part of the PETPrep output dataset.
8581
This is the default processing level.
@@ -197,7 +193,7 @@ and lookup tables are provided. ::
197193
desc-aparcaseg_dseg.tsv
198194

199195
Copies of the ``fsaverage`` subjects distributed with the running version of
200-
FreeSurfer are copied into this subjects directory, if any functional data are
196+
FreeSurfer are copied into this subjects directory, if any PET data are
201197
sampled to those subject spaces.
202198

203199
Note that the use of ``sourcedata/`` recognizes FreeSurfer derivatives as an input to
@@ -206,16 +202,14 @@ This is strictly true when pre-computed FreeSurfer derivatives are provided eith
206202
the ``sourcedata/`` directory or passed via the ``--fs-subjects-dir`` flag;
207203
if PETPrep runs FreeSurfer, then there is a mutual dependency.
208204

209-
Functional derivatives
205+
PET derivatives
210206
~~~~~~~~~~~~~~~~~~~~~~
211-
Functional derivatives are stored in the ``func/`` subfolder.
212-
All derivatives contain ``task-<task_label>`` (mandatory) and ``run-<run_index>`` (optional), and
213-
these will be indicated with ``[specifiers]``::
207+
PET derivatives are stored in the ``pet/`` subfolder.
214208

215209
sub-<subject_label>/
216210
func/
217-
sub-<subject_label>_[specifiers]_space-<space_label>_desc-brain_mask.nii.gz
218-
sub-<subject_label>_[specifiers]_space-<space_label>_desc-preproc_pet.nii.gz
211+
sub-<subject_label>_space-<space_label>_desc-brain_mask.nii.gz
212+
sub-<subject_label>_space-<space_label>_desc-preproc_pet.nii.gz
219213

220214
.. note::
221215

@@ -251,27 +245,6 @@ image and affine transform::
251245

252246
Coregistration outputs are part of the *minimal* processing level.
253247

254-
**Fieldmap registration**.
255-
256-
If a fieldmap is used for the correction of a PET series, then a registration
257-
is calculated between the PET series and the fieldmap. If, for example, the fieldmap
258-
is identified with ``"B0Identifier": "TOPUP"``, the generated transform will be named::
259-
260-
sub-<subject_label>/
261-
func/
262-
sub-<subject_label>_[specifiers]_from-petref_to-TOPUP_mode-image_xfm.txt
263-
264-
If the association is discovered through the ``IntendedFor`` field of the
265-
fieldmap metadata, then the transform will be given an auto-generated name::
266-
267-
sub-<subject_label>/
268-
func/
269-
sub-<subject_label>_[specifiers]_from-petref_to-auto000XX_mode-image_xfm.txt
270-
271-
.. note::
272-
273-
Fieldmap registration outputs are part of the *minimal* processing level.
274-
275248
**Regularly gridded outputs (images)**.
276249
Volumetric output spaces labels (``<space_label>`` above, and in the following) include
277250
``T1w`` and ``MNI152NLin2009cAsym`` (default).
@@ -285,7 +258,7 @@ mid-thickness surface mesh::
285258
func/
286259
sub-<subject_label>_[specifiers]_space-T1w_desc-aparcaseg_dseg.nii.gz
287260
sub-<subject_label>_[specifiers]_space-T1w_desc-aseg_dseg.nii.gz
288-
sub-<subject_label>_[specifiers]_hemi-[LR]_space-<space_label>_bold.func.gii
261+
sub-<subject_label>_[specifiers]_hemi-[LR]_space-<space_label>_pet.func.gii
289262

290263
Surface output spaces include ``fsnative`` (full density subject-specific mesh),
291264
``fsaverage`` and the down-sampled meshes ``fsaverage6`` (41k vertices) and
@@ -361,30 +334,25 @@ also included.
361334

362335
Confounds
363336
---------
364-
The :abbr:`BOLD (blood-oxygen level dependent)` signal measured with fMRI is a mixture of fluctuations
365-
of both neuronal and non-neuronal origin.
366-
Neuronal signals are measured indirectly as changes in the local concentration of oxygenated hemoglobin.
367-
Non-neuronal fluctuations in fMRI data may appear as a result of head motion, scanner noise,
368-
or physiological fluctuations (related to cardiac or respiratory effects).
369-
For a detailed review of the possible sources of noise in the BOLD signal, refer to [Greve2013]_.
337+
The PET signal is a mixture of fluctuations of both neuronal and non-neuronal origin.
338+
Non-neuronal fluctuations in PET data may appear as a result of head motion or scanner noise.
370339

371340
*Confounds* (or nuisance regressors) are variables representing fluctuations with a potential
372341
non-neuronal origin.
373-
Such non-neuronal fluctuations may drive spurious results in fMRI data analysis,
374-
including standard activation :abbr:`GLM (General Linear Model)` and functional connectivity analyses.
342+
Such non-neuronal fluctuations may drive spurious results in PET data analysis.
375343
It is possible to minimize confounding effects of non-neuronal signals by including
376344
them as nuisance regressors in the GLM design matrix or regressing them out from
377-
the fMRI data - a procedure known as *denoising*.
378-
There is currently no consensus on an optimal denoising strategy in the fMRI community.
345+
the PET data - a procedure known as *denoising*.
346+
There is currently no consensus on an optimal denoising strategy in the PET community.
379347
Rather, different strategies have been proposed, which achieve different compromises between
380348
how much of the non-neuronal fluctuations are effectively removed, and how much of neuronal fluctuations
381349
are damaged in the process.
382350
The *PETPrep* pipeline generates a large array of possible confounds.
383351

384352
The most well established confounding variables in neuroimaging are the six head-motion parameters
385353
(three rotations and three translations) - the common output of the head-motion correction
386-
(also known as *realignment*) of popular fMRI preprocessing software
387-
such as SPM_ or FSL_.
354+
(also known as *realignment*) of popular PET preprocessing software
355+
such as SPM_ or FreeSurfer_.
388356
Beyond the standard head-motion parameters, the PETPrep pipeline generates a large array
389357
of possible confounds, which enable researchers to choose the most suitable denoising
390358
strategy for their downstream analyses.
@@ -397,7 +365,7 @@ Such tabular files may include over 100 columns of potential confound regressors
397365
Do not include all columns of ``~_desc-confounds_timeseries.tsv`` table
398366
into your design matrix or denoising procedure.
399367
Filter the table first, to include only the confounds (or components thereof)
400-
you want to remove from your fMRI signal.
368+
you want to remove from your PET signal.
401369
The choice of confounding variables may depend on the analysis you want to perform,
402370
and may be not straightforward as no gold standard procedure exists.
403371
For a detailed description of various denoising strategies and their performance,
@@ -448,9 +416,6 @@ frames with sudden and large motion or intensity spikes.
448416
- ``dvars`` - the derivative of RMS variance over voxels (or :abbr:`DVARS (derivative of
449417
RMS variance over voxels)`) [Power2012]_;
450418
- ``std_dvars`` - standardized :abbr:`DVARS (derivative of RMS variance over voxels)`;
451-
- ``non_steady_state_outlier_XX`` - columns indicate non-steady state volumes with a single
452-
``1`` value and ``0`` elsewhere (*i.e.*, there is one ``non_steady_state_outlier_XX`` column per
453-
outlier/volume).
454419

455420
Detected outliers can be further removed from time series using methods such as:
456421
volume *censoring* - entirely discarding problematic time points [Power2012]_,
@@ -658,14 +623,14 @@ See implementation on :mod:`~petprep.workflows.pet.confounds.init_pet_confs_wf`.
658623
Legacy layout
659624
-------------
660625

661-
Prior to PETPrep 21.0, the following organizational structure was used::
626+
Prior to tools such as fMRIPrep 21.0, the following organizational structure was used::
662627

663628
<output_dir>/
664-
petprep/
629+
fmriprep/
665630
freesurfer/
666631

667632
Although this has the advantage of keeping all outputs together,
668-
it ensured that the output of PETPrep could not itself be a BIDS derivative dataset,
633+
it ensured that the output of fMRIPrep could not itself be a BIDS derivative dataset,
669634
only contain one.
670635

671636
To restore this behavior, use the ``--output-layout legacy`` command-line option.

docs/spaces.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Standard spaces
3434
When using *PETPrep* in a workflow that will investigate effects that span across
3535
analytical groupings, neuroimagers typically resample their data on to a standard,
3636
stereotactic coordinate system.
37-
The most extended standard space for fMRI analyses is generally referred to MNI.
37+
The most widely used standard space for PET analyses is generally referred to as MNI.
3838
For instance, to instruct *PETPrep* to use the MNI template brain distributed with
3939
FSL as coordinate reference the option will read as follows: ``--output-spaces MNI152NLin6Asym``.
4040
By default, *PETPrep* uses ``MNI152NLin2009cAsym`` as spatial-standardization reference.

0 commit comments

Comments
 (0)