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

Calculate smoothed ALFF from smoothed BOLD #1124

Open
wants to merge 19 commits into
base: main
Choose a base branch
from

Conversation

tsalo
Copy link
Member

@tsalo tsalo commented Apr 3, 2024

Closes #1132, but addresses a request from @erikglee.

Changes proposed in this pull request

  • Pass smoothed, denoised BOLD into init_alff_wf and use that to calculate the smoothed ALFF instead smoothing the ALFF image calculated from the unsmoothed BOLD data.
  • Pass the censored, denoised BOLD into init_alff_wf instead of using the interpolated data and censoring it within the workflow.

@tsalo tsalo added the enhancement New feature or request label Apr 3, 2024
Copy link

codecov bot commented Apr 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 83.38%. Comparing base (88945c5) to head (024b1d5).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1124      +/-   ##
==========================================
- Coverage   83.41%   83.38%   -0.03%     
==========================================
  Files          54       54              
  Lines        6704     6694      -10     
  Branches      928      927       -1     
==========================================
- Hits         5592     5582      -10     
  Misses        871      871              
  Partials      241      241              

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


compute_smoothed_alff = pe.Node(
ComputeALFF(TR=TR, low_pass=low_pass, high_pass=high_pass),
mem_gb=mem_gb["resampled"],
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 getting TypeError: '>' not supported between instances of 'dict' and 'float' because it was originally setting mem_gb as the mem_gb dictionary instead of the appropriate value.

Hunting down the problem was tough.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Calculate smoothed ALFF from smoothed BOLD
1 participant