Giter Site home page Giter Site logo

mhmohassan / ec_estimation Goto Github PK

View Code? Open in Web Editor NEW

This project forked from matthieugilson/ec_estimation

0.0 0.0 0.0 15.23 MB

(version 2016) noise-diffusion network model to interpret fMRI data: estimation of intracortical interactions with DTI topological constraints

License: GNU General Public License v3.0

Python 100.00%

ec_estimation's Introduction

These scripts have now been integrated in a toolbox, we recommend using the newer version:https://github.com/mb-BCA/notebooks_review2019

Estimation of effective connectivity (EC) and input statistics (variances in matrix Sigma) to interpret fMRI/BOLD time series

related to draft: Gilson M, Deco G, Friston K, Hagmann P, Mantini D, Betti V, Romani GL, Corbetta M. Effective connectivity inferred from fMRI transition dynamics during movie viewing points to a balanced reconfiguration of cortical interactions. http://biorxiv.org/content/early/2017/02/20/110015

model in: Gilson M, Moreno-Bote R, Ponce-Alvarez A, Ritter P, Deco G. Estimation of Directed Effective Connectivity from fMRI Functional Connectivity Hints at Asymmetries of Cortical Connectome. PLoS Comput Biol 2016, 12: e1004762; dx.doi.org/10.1371/journal.pcbi.1004762

The scripts are written in python 2.7 and use numpy, scipy and matplotlib. Run scripts in order:

  1. optimization_movie.py
  2. plot_results_movie.py

Here we have 22 subjects with 2 conditions: viewing a black screen (rest) or a movie. The fMRI time series are stored in rest_movie_ts.npy (indices: subject; condition = rest and movie with 2 sessions each, so 0-1 for rest and 2-3 for movie; ROI index; time in TRs).

File optimization_movie.py: recovers the effective connectivity as well as the input covariance matrix (Sigma) for the BOLD time series and structural connectivity (SC) matrix given by DTI corresponding to Hagmann et al. (PLoS Biol 2008), which is a skeleton for EC; saves results for individual EC and Sigma in 'res_movie' directory (in EC_mod.npy and Sigma_mod.npy files, together with the model covariance matrices FC0 and FCtau that aim to reproduce the empirical counterparts in FC_emp, the corresponding time shift equal to 1 or 2 TR is determined by i_tau); the algorithm to tune Sigma has been improved compared to the paper Gilson et al. 2016.

File plot_results_movie.py: check the consistency over individual EC and the relationship with FC0; check significant changes in EC and Sigma (input variances of network model) between rest and movie.

ec_estimation's People

Contributors

cns-upf 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.