Git Product home page Git Product logo

mesopopdyn_gif's Introduction

This project provides simulation code associated with the publication

T. Schwalger, M. Deger, and W. Gerstner. Towards a theory of cortical columns: From spiking neurons to interacting neural populations of finite size. PLoS Comput. Biol., 13(4):e1005507, 2017.

The core simulation code is written in C. There are two libraries:

  • glm_netw_sim_0.8.c for the microscopic (neuron-based) simulation
  • glm_popdyn_1.1.c for the mesoscopic (population-based) simulation

The C libraries can be used either via a Python interface or directly in a C program.

Prerequisites for compiling c code

  • gcc
  • fftw3 (libfftw3-3 package in ubuntu)
  • gsl (libgsl2 package in ubuntu)

Create python modules from c libraries

In the top level do:

make -Bf Makefile_fasthazard

This is a modification of the original pseudocode implementation in the paper by using a lookup table for calculating the hazard function. This yields slightly better performance. For the original implementation w/o lookup table use

make -Bf Makefile_orig

Examples

  • For running a simulation of an excitatory-inhibitory network (both microscopic and mesoscopic, as in Fig.5 of the paper), change to EI_net_py/ and run

python ei_net_N000_p0.2.py

  • For running a simulaion of a population of adapting neurons, change to uncoupled_py/ and run

python lif_adap.py

mesopopdyn_gif's People

Stargazers

Nosrat Mohammadi avatar  avatar Kris Evers avatar Dean Rance avatar Richard Janis Goldschmidt avatar Dennis Goldschmidt 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.