Code Monkey home page Code Monkey logo

rrmdd's Introduction

LEiDA_DELTA_RECURRENCE_PIPELINE

Matlab code to run leading eigenvector dynamics analysis (LEiDA) as described in Alonso et al. 2023, Segregation of dynamic resting-state reward, default mode and attentional networks after remitted patients transition into a recurrent depressive episode, based on code developed by Joana Cabral.

Summary

We investigated how the brain’s dynamical repertoire changes after patients transition from remission to recurrence of a new depressive episode (i.e., non-remitted patients).

Phase-locking (PL) patterns or PL states, representing recurrent patterns of functional connectivity, were characterized using LEiDA (Script Steps 1 and 2). Then, the occupancy probability (P) and lifetime (LT) of each state were quantified to assess their prevalence and duration across patients and sessions, i.e., baseline scan and follow-up scans (Script Step 3). Within-subject differences between baseline and follow-up were analyzed for 11 non-remitted patients using a permutation-based paired t-test (Script Step 4). Additionally, 17 matched-remitted patients in remission at both baseline and follow-up scans were used as a validation dataset.

Script Steps

  1. Read the BOLD data from the folders and compute the BOLD phases.

    • Calculate the instantaneous BOLD synchronization matrix.
    • Compute the Leading Eigenvector at each frame from all fMRI scans.
  2. Cluster the Leading Eigenvectors into recurrent Functional Networks, i.e., PL states.

  3. Analyze the Clustering results: for every fMRI scan, calculate the Fractional occupancy (P) and lifetimes (LT) of each state.

  4. Test the statistical significance of within-subject changes in P and LT during the recurrence of a depressive episode, compared to baseline remission.

  5. Visualize the BOLD activity in the 2 decoupled communities detected by the LEiDA patterns, and test the statistical significance between baseline and follow-up scans.

Figure: Detection of recurrent phase-locking (PL) patterns in fMRI signals

Graphical summary

A) The fMRI signal is band-pass filtered between 0.01–0.1 Hz (blue) and Hilbert transformed into an analytic signal, whose phase can be represented over time (e black arrow) and at each TR (red arrows). B) The phases in all N = 80 regions at a single TR are represented in the complex plane (right) and cortical space (left; arrows are placed at the centre of gravity of each region n; the direction and colour of the arrows indicate the sign of the corresponding element in the leading eigenvector V1(n,t) (red for positive and blue for negative). C) The PL matrix captures the phase alignment between each pair of regions. D) The leading eigenvector of the PL matrix at time t, V1(t) captures the main orientation of all phases. E) The leading eigenvectors obtained for each time point are concatenated over scans and subjects, and fed into a k-means clustering algorithm which divides the pool of data points into a predefined number of clusters k. F) Cortical representation of the PL-states (clusters). PL = phase-locking (right).


rrmdd's People

Contributors

sonsolesalonsomartinez avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.