Coder Social home page Coder Social logo

apdavison / hbp-cerebellum-models Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lungsi/hbp-cerebellum-models

0.0 3.0 1.0 133 KB

Package of Human Brain Project (HBP) Cerebellum models.

License: BSD 3-Clause "New" or "Revised" License

Python 59.21% AMPL 40.79%

hbp-cerebellum-models's Introduction

hbp-cerebellum-models

Package of Human Brain Project (HBP) Cerebellum models.

Description

This repository contains cerebellum models developed by the cerebellum team led by Prof. Egidio D’Angelo at the Human Brain Project.

Table of Contents

Installation

Dependant packages (versions based on 31 August 2017):

Usage

  1. To start using first:
git clone https://github.com/lungsi/hbp-cerebellum-models.git
cd hbp-cerebellum-models
  1. To see the models import the model_manager module
from models import model_manager as mm

The models in the hbp-cerebellum-models pack are broken down into three model_scale: cells, microcircuit and network.

To see the names of the cellular models use the model_manager.get_available_models function

mm.get_available_models( model_scale="cells" )
  1. Instantiate a model, say, the cellular model, PC2015Masoli first import the cells module
from models import cells

Then instantiate the model

pc = cells.PC2015Masoli.PurkinjeCell()

Note: PC2015Masoli is a Purkinje cell. For GrC2001DAngelo which is a Granular cell use the command: grc = cells.GrC2001DAngelo.GranularCell()

  1. Run the instantiated model

    • The default voltage response

      pc.produce_voltage_response()
      

      This is the same as

      pc.produce_voltage_response( cell_regions=['vm_soma', 'vm_NOR3'])
      

      NB: NOR3 stands for 3rd Node of Ranvier.

    • The default spike response

      pc.produce_spike_train()
      

      This is the same as

      pc.produce_spike_train( cell_locations=['vm_soma'], thresh=[0.0] )
      

      NB: Non default example pc.produce_spike_train( cell_locations=['vm_soma', 'NOR3'], thresh=[0.0, -1.0] )

  2. To visualize the results first import the plot_manager module

from models import plot_manager as pm

Then to visualize the spikes

pm.visualize_spikes( model_name="PC2015Masoli", region_of_interest="vm_soma" )

or visualize the voltage response

pm.visualize_voltages( model_name="PC2015Masoli", region_of_interest="vm_soma" )

Contribution

Credits

License

BSD-3-Clause Copyright 2017 Lungsi See LICENSE.txt

hbp-cerebellum-models's People

Contributors

lungsi avatar

Watchers

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