-
Notifications
You must be signed in to change notification settings - Fork 26
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
Rescale ALFF based on original BOLD standard deviation #1033
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1033 +/- ##
==========================================
+ Coverage 82.25% 82.27% +0.01%
==========================================
Files 48 48
Lines 5776 5782 +6
Branches 767 767
==========================================
+ Hits 4751 4757 +6
Misses 829 829
Partials 196 196 ☔ View full report in Codecov by Sentry. |
@@ -178,6 +184,8 @@ def compute_alff(data_matrix, low_pass, high_pass, TR, sample_mask=None): | |||
# from the value closest to the low pass cutoff, to the value closest | |||
# to the high pass pass cutoff | |||
alff[i_voxel] = len(ff_alff) * np.mean(power_spectrum_sqrt[ff_alff[0] : ff_alff[1]]) | |||
# Rescale ALFF based on original BOLD scale | |||
alff[i_voxel] *= sd_scale |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ohh so both periodogram and lombscargle get the scaling and rescaling?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, though it's probably unnecessary for the periodogram version.
Related to #1032.
Changes proposed in this pull request