Coder Social home page Coder Social logo

meanfieldbrainsimulator's Introduction

MeanFieldBrainSimulator

This repository contains models and code to simulate brain dynamics at parcel resolution. The required input is an anatomical connectivity matrix. In the data folder, a such matrix is provided, which is the mouse isocortical structural conncetivity matrix from Oh et al. (2014). There is no unique choice of mean field large scale models. You may find a review at Messe et al. (2015), which illustrates how to use such models to predict functional connectivities. In the models folder, you can currently find two models: SAR (messe et al 2015) and DMF (Deco 2014). More models will be added progressively.

General workflow: Create a model instance with some data and parameters input -> simulate model dynamics -> obtain metrics of interest from simulated data. You may compare simulated FC with some target FC to see how well the model performs, or to run some in-silico experiments.

Sample usage (assuming the relevant packages are installed):

import numpy as np
from SAR import SAR

SC = np.load('../data/Oh_38.npy')
model = SAR(SC, FC=None, k=0.8, sigma=1.0)  # create model instance
model.integrate(T=1000)  # run simulation
model.convolveBOLD()  # produce BOLD signal 
model.setBOLD(model.bold)  # set the BOLD signal (by default should be the one above, but you can use anything)
model.computeFC()  # compute function connectivity

TS = model.rE  # simulated dynamics
FC = model.simFC  # simulated FC matrix

meanfieldbrainsimulator's People

Contributors

damingli09 avatar

Watchers

 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.