Skip to content

Conversation

@birajstha
Copy link
Contributor

@birajstha birajstha commented Aug 22, 2025

Fixes

Related to #2274, #2275 ,

Description

This PR resolves the bold-to-T1w-to-Template registration issue, that was causing cropped image and some non brain areas in the bold processing pipeline.

Technical details

This PR refactors the transform_timeseries_to_T1template_abcd nodeblock, removing few unnecessary nodes and changing reference inputs to the registration node.
Adds a node to match FOV between T1w and Template, the transform is concatenated to the XFM, which later is used in the above nodeblock for bold-to-T1w-to-Template registration.

Tests

Tested running abcd-options preconfig.
A report from shortened abcd-options pipeline attached
sub-NDARINV003RTV85_ses-baselineYear1Arm1_qc_report.pdf

Screenshots

Before
image

image image

After
image

image image

Checklist

  • My pull request has a descriptive title (not a vague title like Update index.md).
  • My pull request targets the develop branch of the repository.
  • My commit messages follow best practices.
  • My code follows the established code style of the repository.
  • I added tests for the changes I made (if applicable).
  • I updated the changelog.
  • I added or updated documentation (if applicable).
  • I tried running the project locally and verified that there are no visible errors.

Developer Certificate of Origin

Developer Certificate of Origin
Developer Certificate of Origin
Version 1.1

Copyright (C) 2004, 2006 The Linux Foundation and its contributors.
1 Letterman Drive
Suite D4700
San Francisco, CA, 94129

Everyone is permitted to copy and distribute verbatim copies of this
license document, but changing it is not allowed.


Developer's Certificate of Origin 1.1

By making a contribution to this project, I certify that:

(a) The contribution was created in whole or in part by me and I
    have the right to submit it under the open source license
    indicated in the file; or

(b) The contribution is based upon previous work that, to the best
    of my knowledge, is covered under an appropriate open source
    license and I have the right under that license to submit that
    work with modifications, whether created in whole or in part
    by me, under the same open source license (unless I am
    permitted to submit under a different license), as indicated
    in the file; or

(c) The contribution was provided directly to me by some other
    person who certified (a), (b) or (c) and I have not modified
    it.

(d) I understand and agree that this project and the contribution
    are public and that a record of the contribution (including all
    personal information I submit with it, including my sign-off) is
    maintained indefinitely and may be redistributed consistent with
    this project or the open source license(s) involved.

@codecov
Copy link

codecov bot commented Aug 22, 2025

Codecov Report

❌ Patch coverage is 80.55556% with 7 lines in your changes missing coverage. Please review.
✅ Project coverage is 34.0%. Comparing base (83e4c7a) to head (fb7e86f).
⚠️ Report is 20 commits behind head on develop.

Files with missing lines Patch % Lines
CPAC/registration/registration.py 80.6% 3 Missing and 3 partials ⚠️
CPAC/pipeline/cpac_pipeline.py 66.7% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##           develop   #2276   +/-   ##
=======================================
  Coverage     34.0%   34.0%           
=======================================
  Files          233     233           
  Lines        26341   26304   -37     
  Branches      4127    4130    +3     
=======================================
- Hits          8954    8953    -1     
+ Misses       16666   16620   -46     
- Partials       721     731   +10     
Files with missing lines Coverage Δ
CPAC/func_preproc/func_preproc.py 26.1% <100.0%> (ø)
CPAC/pipeline/schema.py 84.1% <ø> (ø)
CPAC/pipeline/cpac_pipeline.py 45.8% <66.7%> (+0.1%) ⬆️
CPAC/registration/registration.py 45.3% <80.6%> (+1.1%) ⬆️

... and 1 file with indirect coverage changes

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

@birajstha birajstha requested a review from a team September 4, 2025 15:00
@birajstha birajstha marked this pull request as ready for review September 4, 2025 15:00
@birajstha birajstha changed the title changing ref from brain to whole head Fixing bold-T1w-Template registration in abcd-options preconfig Sep 4, 2025
Copy link
Member

@shnizzedy shnizzedy left a comment

Choose a reason for hiding this comment

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

I'm not sure where this is happening, but from the smoke tests it looks like something here makes sbref unavailable to coregistration in most of the other preconfigs? (this issue isn't happening in develop)

@birajstha
Copy link
Contributor Author

I'm not sure where this is happening, but from the smoke tests it looks like something here makes sbref unavailable to coregistration in most of the other preconfigs? (this issue isn't happening in develop)

Thanks for review @shnizzedy , Will look into it.

@birajstha birajstha requested a review from a team as a code owner September 5, 2025 20:58
@birajstha
Copy link
Contributor Author

@shnizzedy , an error on my end. I had added a if statement that was blocking the other nodeblocks to be added to the workflow.
Should be resolved now.

Copy link
Member

@shnizzedy shnizzedy left a comment

Choose a reason for hiding this comment

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

@shnizzedy , an error on my end. I had added a if statement that was blocking the other nodeblocks to be added to the workflow. Should be resolved now.

Thanks!

Rerunning the smoke tests,

the rest all pass!

I think this is good to go, and if the remaining problems aren't resolved in #2277, we can revisit those issues then.

@birajstha birajstha merged commit 2777fbe into develop Sep 9, 2025
66 of 70 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

3 participants