Skip to content

Conversation

@effigies
Copy link
Contributor

Changes proposed in this pull request

These changes are aimed at getting aslprep to accept precomputed derivatives using the following commands:

$ aslprep sourcedata/raw aslprep-minimal participant --level=minimal [OPTIONS]
$ aslprep sourcedata/raw aslprep-full participant --derivatives aslprep=$PWD/aslprep-minimal/ [OPTIONS]

aslrefs weren't being found due to the datatype being declared as func. Once found, the fallback workflow to generating the hmcref attempted to push a dummy_scans value to hmcref_buffer, which duplicated an input from inputnode. Since this only was being passed through a series of IdentityInterfaces and never used, I just stripped that field out of the fit workflow altogether.

@effigies effigies force-pushed the fix/precomputed-derivs branch from dea484c to 6d3d6f3 Compare May 21, 2025 18:51
@effigies effigies changed the title fix: Find aslrefs in precomputed derivatives, remove unused dummy_scans field fix: Find aslrefs in precomputed derivatives, remove bad connection May 21, 2025
@tsalo tsalo added the bug Something isn't working label May 21, 2025
@effigies
Copy link
Contributor Author

I'm able to rerun with PEPolar fieldmaps now.

Copy link
Member

@tsalo tsalo left a comment

Choose a reason for hiding this comment

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

These changes look good to me. Thanks!

@tsalo tsalo merged commit 8e555d5 into PennLINC:main May 22, 2025
26 checks passed
@effigies effigies deleted the fix/precomputed-derivs branch May 22, 2025 15:58
effigies added a commit to nipreps/fmriprep that referenced this pull request May 22, 2025
Discovered while testing precomputed derivatives in aslprep, which
imports `fmriprep.utils.bids.collect_fieldmaps`. See
PennLINC/aslprep#518.

For PEPolar fieldmaps, the fieldmap reference is often
`desc-epi_fieldmap.nii.gz`, as opposed to
`desc-magnitude_fieldmap.nii.gz`. IMO, it would be good to change
`desc-{epi,preproc}_fieldmap.nii.gz` to
`desc-preproc_{magnitude,fieldmap}.nii.gz`, but this is what it is for
now.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants