Skip to content

Commit 0e8fe76

Browse files
authored
Clarify that warped surfaces can be overlaid on the MNI152NLin6Asym template (#1349)
1 parent 43c649a commit 0e8fe76

File tree

3 files changed

+15
-4
lines changed

3 files changed

+15
-4
lines changed

docs/outputs.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,9 @@ The resulting mesh files will reflect the subject's morphology with the same geo
128128
as fsLR-32k surfaces, which may be useful for visualizing fsLR-space derivatives on a subject's
129129
brain.
130130

131+
The mesh files are also warped so that they can be overlaid on top of the MNI152NLin6Asym template,
132+
as in XCP-D's brainsprite.
133+
131134
.. code-block::
132135
133136
xcp_d/

xcp_d/cli/parser.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -738,8 +738,9 @@ def _build_parser():
738738
help="""\
739739
If used, a workflow will be run to warp native-space (``fsnative``) reconstructed cortical
740740
surfaces (``surf.gii`` files) produced by Freesurfer into standard (``fsLR``) space.
741+
Additionally, the fsLR-space surfaces will be warped such that they can be overlaid on the
742+
MNI152NLin6Asym template.
741743
These surface files are primarily used for visual quality assessment.
742-
By default, this workflow is disabled.
743744
744745
**IMPORTANT**: This parameter can only be run if the --file-format flag is set to cifti.
745746
""",

xcp_d/workflows/anatomical/surface.py

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ def init_postprocess_surfaces_wf(
5252
they will be copied to the output directory.
5353
These fsLR-space mesh files retain the subject's morphology,
5454
and are thus useful for visualizing fsLR-space statistical derivatives on the subject's brain.
55+
The workflow will also rigidly align the meshes to the MNI152NLin6Asym template,
56+
so that they can be overlaid on top of the template for visualization.
5557
5658
As long as process-surfaces is enabled and mesh files (in either space) are available,
5759
HCP-style midthickness, inflated, and very-inflated surfaces will be generated from them.
@@ -298,6 +300,9 @@ def init_warp_surfaces_to_template_wf(
298300
):
299301
"""Transform surfaces from native to standard fsLR-32k space.
300302
303+
The workflow will also rigidly align the meshes to the MNI152NLin6Asym template,
304+
so that they can be overlaid on top of the template for visualization.
305+
301306
Workflow Graph
302307
.. workflow::
303308
:graph2use: orig
@@ -926,7 +931,7 @@ def init_warp_one_hemisphere_wf(
926931
6. Apply the anatomical-to-template warpfield to the 32k surfaces.
927932
This and the previous step make it so you can overlay the pial and white matter surfaces
928933
on the associated volumetric template (e.g., for XCP-D's brainsprite).
929-
- This important thing is that the volumetric template must match the template space
934+
- The important thing is that the volumetric template must match the template space
930935
used here.
931936
"""
932937
workflow = Workflow(name=name)
@@ -988,7 +993,8 @@ def init_warp_one_hemisphere_wf(
988993
]) # fmt:skip
989994

990995
# Apply FLIRT-format anatomical-to-template affine transform to 32k surfs
991-
# NOTE: What does this step do? Aren't the data in fsLR/dhcpAsym-32k from resample_to_fsLR32k?
996+
# I think this makes it so you can overlay the pial and white matter surfaces on the
997+
# associated volumetric template (e.g., for XCP-D's brainsprite).
992998
apply_affine_to_fsLR32k = pe.MapNode(
993999
ApplyAffine(num_threads=omp_nthreads),
9941000
name='apply_affine_to_fsLR32k',
@@ -1002,7 +1008,8 @@ def init_warp_one_hemisphere_wf(
10021008
]) # fmt:skip
10031009

10041010
# Apply FNIRT-format (forward) anatomical-to-template warpfield
1005-
# NOTE: What does this step do?
1011+
# I think this makes it so you can overlay the pial and white matter surfaces on the
1012+
# associated volumetric template (e.g., for XCP-D's brainsprite).
10061013
apply_warpfield_to_fsLR32k = pe.MapNode(
10071014
ApplyWarpfield(num_threads=omp_nthreads),
10081015
name='apply_warpfield_to_fsLR32k',

0 commit comments

Comments
 (0)