Git Product home page Git Product logo

mushroombody's Introduction

mushroomBody

Code for simulating and analyzing a dynamic model of the mushroom body, including olfactory receptor neurons (ORNs), projection neurons (PNs), GABAergic local neurons (LNs) of the antennal lobe, Kenyon cells (KCs) and the GABAergic anterior paired lateral neuron (APL).

For more information about the model, please see the accompanying bioRxiv paper.

Quick demo

This model simulates Kenyon cell responses to each of 110 odors from the Hallem & Carlson ORN odor response dataset.

To run the model with default settings and get KC activations to one or more odors, add the mushroomBody repository to your Matlab search path and call run_rate_model(odorList) where odorList is a vector of indices between 1 and 110, corresponding to the odors you want to simulate in the Hallem & Carlson dataset. So run_rate_model(1:110) would simulate responses to all odors; run_rate_model(94) would only simulate responses to odor 94, which is isopentyl acetate.

To load/inspect the Hallem & Carlson dataset itself (with default settings), call ORN = buildORNs({}). The names of all odors are listed in ORN.odornames.

run_rate_model returns three variables:

  • KC_spikes, an N (# neurons) by S (# odor stimuli) matrix whose entries reflect the number of spikes fired by each Kenyon cell in response to each odor in odorList.
  • fr_active, an S-length vector of the number of Kenyon cells that responded to each odor.
  • odorspercell, an N-length vector of the number of odors each Kenyon cell responded to.

Experimenting with model settings

This repository contains code to reproduce all model variations presented in the paper. Use the script run_rate_model_wrapper to simulate multiple runs of the mushroom body model; parameters that can be varied are explained in get_MB_default_settings.

Repository contents

  • analyses_from_paper contains code for generating the plots in the paper.
  • constructing_model contains code to initialize model ORNs, PNs, LNs, and KCs.
  • learning contains scripts to experiment with learning and odor generalization by either a Perceptron or a biological learning rule.
  • simulation_helpers are scripts called in the process of simulating Projection neuron and Kenyon cell dynamics.
  • util are plotting/data-searching helper functions

Usage

If you use or modify this model, please cite the accompanying paper:

Kennedy, A. (2019). Learning with naturalistic odor representations in a dynamic model of the Drosophila olfactory system. bioRxiv.

mushroombody's People

Contributors

annkennedy avatar

Stargazers

 avatar  avatar Zekai Xu avatar Philipp Schlegel avatar

Watchers

 avatar Matthew Bauer avatar

Forkers

edoarad txzliu

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.