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

Write out GIFTI and CIFTI CBF maps #361

Merged
merged 11 commits into from
Dec 8, 2023
Merged

Write out GIFTI and CIFTI CBF maps #361

merged 11 commits into from
Dec 8, 2023

Conversation

tsalo
Copy link
Member

@tsalo tsalo commented Dec 7, 2023

Closes #356.

Changes proposed in this pull request

  • Stop writing out preprocessed ASL data in GIFTI format.
  • Start writing out CBF and ATT data in GIFTI format.
  • Fix connections necessary to create CIFTI-format CBF maps.

@tsalo tsalo added the enhancement New feature or request label Dec 7, 2023
@codecov-commenter
Copy link

Codecov Report

Attention: 2 lines in your changes are missing coverage. Please review.

Comparison is base (8c80d31) 75.99% compared to head (ae9df9c) 78.81%.

Files Patch % Lines
aslprep/workflows/asl/resampling.py 93.33% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #361      +/-   ##
==========================================
+ Coverage   75.99%   78.81%   +2.81%     
==========================================
  Files          39       39              
  Lines        4120     4149      +29     
  Branches      595      600       +5     
==========================================
+ Hits         3131     3270     +139     
+ Misses        791      685     -106     
+ Partials      198      194       -4     

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

@tsalo tsalo changed the title Write out CBF maps in GIFTI format Write out GIFTI and CIFTI CBF maps Dec 8, 2023
("asl_file", "inputnode.bold_file"),
("asl_anat", "inputnode.bold_file"),
Copy link
Member Author

Choose a reason for hiding this comment

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

I was feeding in the minimally-preprocessed aslref-space ASL file here, so the goodvoxels mask was in a different space and resolution than the anatomical-space data meant to be put in the CIFTI.

Copy link
Member Author

Choose a reason for hiding this comment

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

This is what was causing #360 I believe.

@@ -565,6 +565,7 @@ def init_asl_wf(
mem_gb=mem_gb,
name="asl_anat_wf",
)
asl_anat_wf.inputs.inputnode.resolution = "native"
Copy link
Member Author

Choose a reason for hiding this comment

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

I was missing this, even though it is in fMRIPrep.

workflow.connect([
(inputnode, ds_asl_cifti, [
("asl_cifti", "in_file"),
("source_files", "source_file"),
Copy link
Member Author

Choose a reason for hiding this comment

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

The datasinks needed the source_file input.

@tsalo tsalo merged commit 67607e1 into PennLINC:main Dec 8, 2023
2 checks passed
@tsalo tsalo deleted the gifti-cbf branch December 8, 2023 14:10
@tsalo tsalo added the bug Something isn't working label Dec 8, 2023
This was referenced Dec 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support GIFTI CBF outputs
2 participants