Skip to content

Conversation

feilong
Copy link
Contributor

@feilong feilong commented May 13, 2025

Changes proposed in this pull request

Currently in fMRIPrep the Connectome Workbench is used to resample BOLD data to fsLR spaces, as part of the CIFTI workflow.
This PR allows resampling BOLD data to any surface template space with a similar workflow, as long as (a) the "space-fsLR" spheres exist for the template (e.g., "tpl-onavg_space-fsLR_hemi-R_den-41k_sphere.surf.gii") or (b) the template is "fsLR".

In the long run, we might want to generate alternative generic workflows, e.g., (a) using the SurfaceTransform class of nitransforms by @Shotgunosine and me, and (b) using FreeSurfer's resampling workflow.

This PR depends on a recent PR of smriprep and updating TemplateFlow's files on AWS S3.
Currently the wrong subfolder on S3 was updated for some unknown reason.

This generic resampling workflow might serve as the first step for the generic CIFTI workflow.

Documentation that should be reviewed

I've updated the workflows' docstrings accordingly, but feel free to make suggestions/edits.

@effigies @oesteban

Copy link

codecov bot commented Aug 13, 2025

Codecov Report

❌ Patch coverage is 16.92308% with 54 lines in your changes missing coverage. Please review.
✅ Project coverage is 72.85%. Comparing base (cfe7a06) to head (8d21c00).
⚠️ Report is 2 commits behind head on master.

Files with missing lines Patch % Lines
fmriprep/workflows/bold/resampling.py 5.71% 33 Missing ⚠️
fmriprep/workflows/bold/base.py 27.58% 20 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3461      +/-   ##
==========================================
- Coverage   73.64%   72.85%   -0.80%     
==========================================
  Files          60       60              
  Lines        4759     4819      +60     
  Branches      616      624       +8     
==========================================
+ Hits         3505     3511       +6     
- Misses       1111     1164      +53     
- Partials      143      144       +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.

@feilong
Copy link
Contributor Author

feilong commented Sep 10, 2025

@mgxd Thank you very much for taking care of this. Note that the final API of the smriprep PR (nipreps/smriprep#473) is different from the original one, particularly the part regarding TemplateFlow. I haven't examined if the code of this PR needs to be updated accordingly.

@effigies effigies marked this pull request as draft September 16, 2025 12:27
@effigies
Copy link
Member

Marking as draft to make quickly reviewing the PR list simpler. Please do not hesitate to mark ready for review when you think it's ready.

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