Skip to content

WIP: Add gray matter threshold option to reference mask workflow #50

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 9 commits into from
Jul 22, 2025

Conversation

mnoergaard
Copy link
Collaborator

This PR adds support to select a gray matter threshold for the generation of a reference mask (reference mask workflow). The extension is useful when a given segmentation (e.g. thalamus in FreeSurfer) does not follow gray matter boundaries, and so additional modifications to the region definition may be necessary.

Copy link

codecov bot commented Jul 22, 2025

Codecov Report

Attention: Patch coverage is 95.91837% with 2 lines in your changes missing coverage. Please review.

Project coverage is 77.62%. Comparing base (643e14b) to head (b22e544).
Report is 10 commits behind head on main.

Files with missing lines Patch % Lines
petprep/utils/reference_mask.py 71.42% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #50      +/-   ##
==========================================
+ Coverage   77.48%   77.62%   +0.14%     
==========================================
  Files          80       80              
  Lines        5849     5895      +46     
  Branches      612      615       +3     
==========================================
+ Hits         4532     4576      +44     
- Misses       1172     1173       +1     
- Partials      145      146       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@mnoergaard mnoergaard merged commit e3235ba into main Jul 22, 2025
13 checks passed
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.

1 participant