-
Notifications
You must be signed in to change notification settings - Fork 13
[MARKER]: Support FunctionalConnectivityLagged
#435
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
Draft
synchon
wants to merge
10
commits into
main
Choose a base branch
from
feat/functional-connectivity-lagged
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FunctionalConnectivityLagged
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #435 +/- ##
=======================================
Coverage 91.09% 91.09%
=======================================
Files 134 134
Lines 5422 5422
Branches 903 903
=======================================
Hits 4939 4939
Misses 309 309
Partials 174 174
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
|
eb418ae to
69c8204
Compare
ca90c06 to
0ee82bf
Compare
0ee82bf to
b1a9645
Compare
b1a9645 to
6aed916
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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