Coder Social home page Coder Social logo

zeigar / ksmodel_fmridynamics Goto Github PK

View Code? Open in Web Editor NEW

This project forked from brain-networks/ksmodel_fmridynamics

0.0 0.0 0.0 2.45 MB

Modular origins of high-amplitude cofluctuations in fine-scale functional connectivity dynamics, PNAS, November 8, 2021 | 118 (46) e2109380118

MATLAB 100.00%

ksmodel_fmridynamics's Introduction

KSmodel_fMRIdynamics

This data and code package should allow users to independently reproduce findings reported in Pope et al (2021; https://www.biorxiv.org/content/10.1101/2021.05.16.444357v1).

'KS_model_main' runs a single instance of the KS model with model parameters set to the values employed for most analyses in the main text (k = 280; vel = 12). The model should run, on a fast machine, within about 25 minutes. Model output includes simulated FC and BOLD time courses (Ybold_reg). The script also calculated the edge time series and RSS amplitudes, and it detects RSS peaks using the 'circshift' approach detailed in the paper. Plots showing the 'ets' and RSS time series with events are produced as well. Finally, for the single simulated run, the script draws figures matching Fig 4B and Fig 4D.

Users can adapt the code to create new simulations with different parameters. Note that model output will vary slightly with published figures and statistics as each simulation uses different initial conditions and random seeds.

  1. 'figure_SCFC' re-creates part of Fig 2 from the exact model data used in the paper

  2. 'figure_SCFC2' re-creates a different part of Fig 2 from the exact model data used in the paper, and computes some summary statistics for SC-FC relationships

  3. 'figure_eventclusters' re-creates part of Fig 5 from the exact model data used in the paper

These scripts read in various data files that contain time series, the SC consensus modules, and empirical SC and FC matrices. See text of paper for description.

If you use this code/data, please cite:

Pope, M., Fukushima, M., Betzel, R., & Sporns, O. (2021). Modular origins of high-amplitude co-fluctuations in fine-scale functional connectivity dynamics. bioRxiv.

ksmodel_fmridynamics's People

Contributors

rbetzel 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.