WIP: [MARKER]: Support FunctionalConnectivityLagged #435
No reviewers
Labels
No labels
CRITICAL
Stale
WIP
bug
concept
coordinate
dataset
dependencies
documentation
duplicate
enhancement
github_actions
good first issue
help wanted
invalid
maintenance
maps
marker
mask
on hold
parcellation
preprocess
question
ready
storage
template-space
triage
wontfix
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
juaml/junifer!435
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/functional-connectivity-lagged"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Which marker do you want to include?
For two time series X(t) and Y(t) from different brain regions:
CCF(τ)=∑tX(t)Y(t+τ)
CCF(τ)=t∑X(t)Y(t+τ)
where τ represents a time lag (positive or negative shifts).
Compute cross-correlation for each ROI pair across a range of time lags τ (e.g., -10s to +10s).
The peak of the cross-correlation function indicates the optimal time lag (e.g., if peak at τ = 2s, Y lags behind X by 2s).
Identify the lag at which cross-correlation is maximal.
Store the peak correlation value and associated lag for each ROI pair.
Construct:
Is there any publication or available code?
https://pmc.ncbi.nlm.nih.gov/articles/PMC4097876
Do you have a sample code that implements this outside of junifer?
Anything else to say?
No response
Codecov Report
✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.09%. Comparing base (
e8a99eb) to head (6aed916).⚠️ Report is 288 commits behind head on main.
Additional details and impacted files
100.00% <ø> (ø)Flags with carried forward coverage won't be shown. Click here to find out more.
94.64% <ø> (ø)🚀 New features to boost your workflow:
https://juaml.github.io/junifer/pr-preview/pr-435/
Built to branch
gh-pagesat 2025-05-09 12:45 UTC.Preview will be ready when the GitHub Pages deployment is complete.
Pull request closed