Package: dynR 0.1.5

Lucas França

dynR: Dynamic Connectivity Analysis for Neurophysiological Timeseries

An R port of the Python dynfc library for computing dynamic connectivity (dynFC) representations from multivariate neurophysiological timeseries, including BOLD fMRI, EEG, LFP, and related signals. Implements sliding-window Pearson correlation (Hansen et al., 2015), edge-centric cofluctuation analysis (Esfahlani et al., 2020; Faskowitz et al., 2020), instantaneous phase-locking via the Hilbert transform, dynamic phase-locking matrices (dPL), the LEiDA leading-eigenvector framework (Cabral et al., 2017; Lord et al., 2019), and the Kuramoto order parameter with metastability and Shannon entropy. Part of the Circadia Lab R ecosystem.

Authors:Lucas França [aut, cre], Mario Leocadio-Miguel [aut], Dafnis Batallé [aut]

dynR_0.1.5.tar.gz
dynR_0.1.5.zip(r-4.7-x86_64)dynR_0.1.5.zip(r-4.7-arm64)dynR_0.1.5.zip(r-4.6-x86_64)dynR_0.1.5.zip(r-4.6-arm64)dynR_0.1.5.zip(r-4.5-x86_64)
dynR_0.1.5.tgz(r-4.6-x86_64)dynR_0.1.5.tgz(r-4.6-arm64)dynR_0.1.5.tgz(r-4.5-x86_64)dynR_0.1.5.tgz(r-4.5-arm64)
dynR_0.1.5.tar.gz(r-4.7-arm64)dynR_0.1.5.tar.gz(r-4.7-x86_64)dynR_0.1.5.tar.gz(r-4.6-arm64)dynR_0.1.5.tar.gz(r-4.6-x86_64)
dynR_0.1.5.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
dynR/json (API)

# Install 'dynR' in R:
install.packages('dynR', repos = c('https://circadia-bio.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/circadia-bio/dynr/issues

Pkgdown/docs site:https://dynr.circadia-lab.uk

Uses libs:
  • c++– GNU Standard C++ Library v3
Datasets:
  • fc - Functional connectivity matrix
  • ts - BOLD fMRI timeseries

On CRAN:

Conda:

cpp

4.72 score 117 scripts 20 exports 30 dependencies

Last updated from:3a50ec7e3e (on v0.1.5). Checks:15 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64OK166
linux-devel-x86_64OK175
source / vignettesOK252
linux-release-arm64OK137
linux-release-x86_64OK143
macos-release-arm64OK113
macos-release-x86_64OK209
macos-oldrel-arm64OK114
macos-oldrel-x86_64OK278
windows-devel-arm64OK216
windows-devel-x86_64OK194
windows-release-arm64OK376
windows-release-x86_64OK126
windows-oldrel-x86_64OK130
wasm-releaseOK112

Exports:bandpass_filterbatch_leidabatch_swcofluctcorr_corrcorr_slidedo_eucliddyn_phase_lockdyn_transitionsget_leidahilbert_phaseskuramotoleida_pipelineplot_fcplot_state_sequenceplot_synchronyshannon_entropystack_leidastack_synchronysw_pipeline

Dependencies:clicpp11dplyrfarvergenericsggplot2gluegtableisobandlabelinglifecyclemagrittrpillarpkgconfigpurrrR6RColorBrewerRcpprlangS7scalesstringistringrtibbletidyrtidyselectutf8vctrsviridisLitewithr

Phase-based dynamic FC: Hilbert transform, LEiDA, and Kuramoto
Overview | Step 1: Bandpass filtering | Step 2: Instantaneous phases via the Hilbert transform | Step 3: Dynamic phase-locking matrix (dPL) and LEiDA | The dPL matrix | The leading eigenvector (LEiDA) | Step 4: Brain state discovery with K-means | Choosing K | State sequence | Step 5: Kuramoto order parameter | The measure | Metastability | References

Last update: 2026-06-28
Started: 2026-06-28

Correlation-based dynamic FC: sliding windows and edge cofluctuations
Overview | Sliding-window correlation | Window length: a critical choice | Validating against static FC | FC variability across windows | Edge-centric cofluctuations | Root-sum-square (RSS) cofluctuation | Correlation of correlations | Brain state analysis from sliding-window FC | References

Last update: 2026-06-28
Started: 2026-06-28

Getting started with dynR
What is dynamic functional connectivity? | When to use which approach | Package data | Pipeline overview | Quick example: phase-based pipeline | Quick example: correlation-based pipeline | Sanity check: single window equals static FC | Further reading | References

Last update: 2026-06-28
Started: 2026-06-28