Skip to content
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

Infer the appropriate MNIInfant cohort based on the participant's age #856

Merged
merged 5 commits into from
Nov 10, 2024

Conversation

tsalo
Copy link
Member

@tsalo tsalo commented Nov 8, 2024

Closes #826.

Changes proposed in this pull request

  • Adapt Nibabies' code to figure out the right cohort to use based on a participant's age.
  • Make --infant require --subject-anatomical-reference session since age can't be inferred across sessions.

This uses code from Nibabies so we need to figure out the appropriate licensing stuff.
@tsalo tsalo added the bug Something isn't working label Nov 8, 2024
@tsalo tsalo added this to the HBCD First Release milestone Nov 8, 2024
@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 13.08411% with 93 lines in your changes missing coverage. Please review.

Project coverage is 28.57%. Comparing base (ee895af) to head (6d6d0e7).

Files with missing lines Patch % Lines
qsiprep/utils/bids.py 9.87% 73 Missing ⚠️
qsiprep/workflows/base.py 0.00% 12 Missing ⚠️
qsiprep/interfaces/anatomical.py 20.00% 4 Missing ⚠️
qsiprep/workflows/anatomical/volume.py 40.00% 3 Missing ⚠️
qsiprep/workflows/dwi/hmc_sdc.py 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #856      +/-   ##
==========================================
- Coverage   28.76%   28.57%   -0.19%     
==========================================
  Files          68       68              
  Lines       10025    10123      +98     
  Branches     1109     1134      +25     
==========================================
+ Hits         2884     2893       +9     
- Misses       7042     7131      +89     
  Partials       99       99              

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

@tsalo tsalo added enhancement New feature or request and removed bug Something isn't working labels Nov 8, 2024
Comment on lines -1217 to +1221
**{"from": config.workflow.anatomical_template},
**{"from": anatomical_template},
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mattcieslak I think the only output change will be to these transform files. Instead of from-MNIInfant_to-T1w and vice versa, it'll be from-MNIInfant+<cohort>_to-T1w.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That will have implications for QSIRecon though.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We're updating that part of qsirecon right now anyways, so this should be ok


https://www.nipreps.org/community/licensing/

"""
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for adding this

@tsalo tsalo merged commit 0e21c37 into master Nov 10, 2024
20 checks passed
@tsalo tsalo deleted the mniinfant-cohorts branch November 10, 2024 16:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Infer appropriate MNIInfant cohort based on participant age
3 participants