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

Support predefined goodvoxels mask in init_bold_fsLR_resampling_wf #3169

Closed
tsalo opened this issue Dec 4, 2023 · 2 comments · Fixed by #3170
Closed

Support predefined goodvoxels mask in init_bold_fsLR_resampling_wf #3169

tsalo opened this issue Dec 4, 2023 · 2 comments · Fixed by #3170

Comments

@tsalo
Copy link
Collaborator

tsalo commented Dec 4, 2023

What would you like to see added in fMRIPrep?

I am currently using fMRIPrep as a dependency for ASLPrep, and, while the currently version of init_bold_fsLR_resampling_wf allows me to convert preprocessed ASL files to CIFTIs, I can't use the goodvoxels mask generated from the ASL file when converting derived CBF maps to CIFTIs.

It might even be worth it to move init_bold_fsLR_resampling_wf to niworkflows, since it's useful beyond just BOLD data.

Do you have any interest in helping implement the feature?

Yes

Additional information / screenshots

This might be useful for PET as well (I'm not sure what PET processing looks like).

@effigies
Copy link
Member

effigies commented Dec 4, 2023

So from the perspective of the workflow, we would be passing a volume_roi to the volume_to_surface node, and the input would change from bold_file to in_file. Goodvoxels would be run separately to provide input.

That seems fine to port a version of that over to niworkflows. We can adopt it here once it's in a release. Should be a pretty minor refactor.

@mnoergaard Would there be a PET use for resampling volumes to fsLR grayordinates? Any wrinkles that we should know about?

effigies added a commit that referenced this issue Dec 6, 2023
Closes #3169. This could just be a first step toward moving one or more of these workflows from fMRIPrep to niworkflows.


- Move `init_goodvoxels_bold_mask_wf` call out of `init_bold_fsLR_resampling_wf`. This will allow downstream tools (e.g., ASLPrep) to generate the goodvoxels mask from one file (the ASL time series) and apply it to others (e.g., CBF maps).
- Clean up `init_bold_fsLR_resampling_wf` (e.g., remove unused imports and add all parameters to docstring).
- Move BOLD-to-anatomical resampling workflow call from `resampling` level to `full` level, since it doesn't produce any outputs.
@mnoergaard
Copy link

Yes - there will be a PET use for resampling volumes to fsLR grayordinates. But no wrinkles :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants