Repository navigation
Pre-specified MTL-PFC directed flow across the catFR1 cohort; compare_networks estimator option - #13
Merged
Merged
Conversation
compare_networks gains an estimator option (default Miller-Madow). flow.py streams every eligible session into encoding and retrieval HFA epochs and tests MTL->PFC and PFC->MTL at 20-200 ms against a shuffled-source surrogate and between conditions, paired across subjects. Retrieval deliberation windows no longer overlap (overlap inflated bias-corrected synergy) and epochs store their start times. synergy_null.py checks the comparison's calibration on 1000 random splits. Report: no memory-related directed flow; shared flow present throughout.
Autoplectic
force-pushed
the
catfr-directed-flow
branch
from
November 6, 2026 22:12
ffd0f13 to
f335a4e
Compare
Autoplectic
force-pushed
the
catfr-directed-flow
branch
from
November 6, 2026 22:12
f335a4e to
ac09ddd
Compare
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
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.
A pre-specified test of directed information flow between the medial temporal lobe and prefrontal cortex, across every eligible catFR1 subject, during encoding and retrieval. Also closes the open issues from the earlier catFR work. Full write-up in
reports/catfr_directed_flow.md.Changes
compare_networks(estimator=...): the layers' estimator is now an option. The default stays Miller-Madow, so existing results are unchanged; the setting is recorded in the dataset attributes, and there's a new test.examples/catfr/flow.py:preparestreams every eligible session (download, epoch, delete) into encoding and retrieval HFA epochs.analyzetests MTL→PFC and PFC→MTL at 20, 40, 100 and 200 ms, conditioned on the target's past and LTC. Each edge is tested for existence (against a shuffled-source surrogate) and for a condition contrast, paired across subjects, with Benjamini-Hochberg over the 8 tests per layer.--demeanremoves each condition's mean time course first.common.retrieval_windows/prepare.prepare_phases: pre-recall and deliberation windows that never share samples, and retrieval epochs now store their start times.cohort.py:--estimatorand--tagoptions.validation/synergy_null.py: checks the calibration ofcompare_networkson many random splits of one condition.Findings
Open issues closed
prngkeyword: rather than fixing the alias upstream (Accept the deprecated prng keyword in total_correlation_ksg dit#324, closed), infoflow usesrng=everywhere (Use dit's rng keyword for surrogates and Markov-order selection #14).Tests
Full suite: 278 passed, 10 skipped (optional extras not installed).
ty,ruff checkandruff formatare clean.Made with Cursor