Skip to content

ENH: Add option to exclude projecting high variance voxels to surface #278

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 39 commits into from
Apr 13, 2023

Conversation

madisoth
Copy link
Contributor

Adds option --project-goodvoxels to address nipreps/fmriprep#2822.

If enabled, voxels whose timeseries have locally high coefficient of variation, or which lie outside the cortex (based on signed distance volumes generated from the WM and pial surfaces), are excluded from volume-to-surface sampling of BOLD timeseries. Not enabled by default.

adds MetricDilate interface for Workbench's wb_command -metric-dilate, which, when using the --project-goodvoxels option, fills zero-value vertices in the BOLD surface timeseries by dilating in data from the nearest "good" (nonzero, nonempty) vertex.

madisoth and others added 30 commits September 3, 2022 19:38
…pler option (to be continued in a separate branch)
Removed duplicate code by abstracting it into functions, clarifying the goodvoxels logic
- Implemented the formatting suggestions by Mathias at the URLs below:
    - nipreps#235
    - nipreps/fmriprep#2855
- Split the 3 workflow-connect blocks in the project-goodvoxels section of resampling.py into 3 different functions: ribbon, outliers, and vol-to-surf
- Incomplete comments in resampling.py
Reorganized/cleaned goodvoxels resampling.py
remove doctests
---

docstring update (+4 squashed commit)

Squashed commit:

[2493e8c] remove CreateSignedDistanceVolume doctest for now (needs anatomical surfaces for test sub)

[568191c] docstring and style fixes

[b14cf08] additional work on --project-goodvoxels, revert work on --surface-sampler option (to be continued in a separate branch)

[42481ea] add options "--project-goodvoxels", "--surface-sampler", plus supporting Workbench interfaces
FIX: Minor anat wf & workbench.py fixes (+5 squashed commit)

Squashed commit:

[e995ec4] RF: Moved ribbon wf (from bold to anat) and reformatted

[9676f14] Updated Docker version tag

[532875e] STY: black and isort

[946dc7e] Formatting fixes and resampling.py modularization

- Implemented the formatting suggestions by Mathias at the URLs below:
    - nipreps#235
    - nipreps/fmriprep#2855
- Split the 3 workflow-connect blocks in the project-goodvoxels section of resampling.py into 3 different functions: ribbon, outliers, and vol-to-surf
- Incomplete comments in resampling.py

[114f982] Modularized goodvoxels code in resampling.py

Removed duplicate code by abstracting it into functions, clarifying the goodvoxels logic
@madisoth madisoth marked this pull request as ready for review March 8, 2023 21:22
@mgxd
Copy link
Collaborator

mgxd commented Apr 7, 2023

@madisoth this is now completing without errors - as a final check, could you verify the outputs are as expected?

@mgxd mgxd merged commit 4de3897 into nipreps:master Apr 13, 2023
@mgxd mgxd changed the title ENH: Add option to exclude projecting high variance voxels to surface (update of #235) ENH: Add option to exclude projecting high variance voxels to surface Jul 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants