Similar documents

Contents Why use NEURON ( 5-10 mins) Basics of NEURON (20-25 mins) Exercises (45 mins) Wrap Up (10 mins)

Athena Visual Software, Inc. 1

Virtual Cell Membrane Potential Tutorial IV

Virtual Cell Version 4.0 Membrane Potential

Hines, Michael (1993). NEURON - A program for simulation of nerve equations. In: Neural Systems: Analysis and Modeling. pp.127{136. F.

Deconstructing Actual Neurons

Annales UMCS Informatica AI 1 (2003) UMCS. Liquid state machine built of Hodgkin-Huxley neurons pattern recognition and informational entropy

BME 5742 Biosystems Modeling and Control

Client-Server Architecture for a Neural Simulation Tool

Topics in Neurophysics

ACTION POTENTIAL. Dr. Ayisha Qureshi Professor MBBS, MPhil

Lecture 10 : Neuronal Dynamics. Eileen Nugent

Curtis et al. Il nuovo Invito alla biologia.blu BIOLOGY HIGHLIGHTS KEYS

Defining a Channel. voltage and ligand gated. ion selective. multiple gates. 8transition style (α, β) (, τ) functions tables ligand sensitive

This script will produce a series of pulses of amplitude 40 na, duration 1ms, recurring every 50 ms.

Decoding. How well can we learn what the stimulus is by looking at the neural responses?

Voltage-clamp and Hodgkin-Huxley models

Date: Summer Stem Section:

Biological Modeling of Neural Networks

Electrophysiology of the neuron

Voltage-clamp and Hodgkin-Huxley models

A methodology for simulating biological systems using Microsoft Excel

Ionic basis of the resting membrane potential. Foundations in Neuroscience I, Oct

You w i ll f ol l ow these st eps : Before opening files, the S c e n e panel is active.

Neurons, Synapses, and Signaling

Compartmental Modelling

3.3 Simulating action potentials

Biomedical Instrumentation

Presented by Sarah Hedayat. Supervised by Pr.Cappy and Dr.Hoel

Nervous System: Part II How A Neuron Works

9 Generation of Action Potential Hodgkin-Huxley Model

Structure and Measurement of the brain lecture notes

Table of Contents and Schedule of Presentations

Lecture 11 : Simple Neuron Models. Dr Eileen Nugent

Resting Distribution of Ions in Mammalian Neurons. Outside Inside (mm) E ion Permab. K Na Cl

5.4 Modelling ensembles of voltage-gated ion channels

Computational Neuroscience. Lubica Benuskova Lecture 1

Simulation of Cardiac Action Potentials Background Information

All-or-None Principle and Weakness of Hodgkin-Huxley Mathematical Model

DISCRETE EVENT SIMULATION IN THE NEURON ENVIRONMENT

Neuron Structure. Why? Model 1 Parts of a Neuron. What are the essential structures that make up a neuron?

3 Detector vs. Computer

Space Objects. Section. When you finish this section, you should understand the following:

Reaction-Diffusion in the NEURON Simulator

From neuronal oscillations to complexity

Mathematical Foundations of Neuroscience - Lecture 3. Electrophysiology of neurons - continued

MATH 3104: THE HODGKIN-HUXLEY EQUATIONS

Stoichiometric Reactor Simulation Robert P. Hesketh and Concetta LaMarca Chemical Engineering, Rowan University (Revised 4/8/09)

41. Sim Reactions Example

Quantification of JEOL XPS Spectra from SpecSurf

Sample HHSim Exercises

Lab Activity H4 It s Snow Big Deal

Dynamic Systems: Ordinary Differential Equations. Ordinary Differential Equations

Single neuron models. L. Pezard Aix-Marseille University

ES205 Analysis and Design of Engineering Systems: Lab 1: An Introductory Tutorial: Getting Started with SIMULINK

Action Potentials & Nervous System. Bio 219 Napa Valley College Dr. Adam Ross

This tutorial is intended to familiarize you with the Geomatica Toolbar and describe the basics of viewing data using Geomatica Focus.

Neural Conduction. biologyaspoetry.com

November 27, 2004 The NEURON Book: Chapter 5

80% of all excitatory synapses - at the dendritic spines.

Neurochemistry 1. Nervous system is made of neurons & glia, as well as other cells. Santiago Ramon y Cajal Nobel Prize 1906

Leaf Spring (Material, Contact, geometric nonlinearity)

Using SkyTools to log Texas 45 list objects

STUDENT PAPER. Santiago Santana University of Illinois, Urbana-Champaign Blue Waters Education Program 736 S. Lombard Oak Park IL, 60304

An Introductory Course in Computational Neuroscience

An area chart emphasizes the trend of each value over time. An area chart also shows the relationship of parts to a whole.

LESSON 2.2 WORKBOOK How do our axons transmit electrical signals?

The CSC Interface to Sky in Google Earth

Neural Modeling and Computational Neuroscience. Claudio Gallicchio

Building Inflation Tables and CER Libraries

Computer simulation of radioactive decay

Designing a Quilt with GIMP 2011

Math 345 Intro to Math Biology Lecture 20: Mathematical model of Neuron conduction

Νευροφυσιολογία και Αισθήσεις

Neuron. Detector Model. Understanding Neural Components in Detector Model. Detector vs. Computer. Detector. Neuron. output. axon

Configuring LDAP Authentication in iway Service Manager

Lecture Notes 8C120 Inleiding Meten en Modelleren. Cellular electrophysiology: modeling and simulation. Nico Kuijpers

Linearization of F-I Curves by Adaptation

Neurons and the membrane potential. N500 John Beggs 23 Aug, 2016

Electronics 101 Solving a differential equation Incorporating space. Numerical Methods. Accuracy, stability, speed. Robert A.

IncuCyte ZOOM NeuroTrack Fluorescent Processing

Signal processing in nervous system - Hodgkin-Huxley model

Nervous System Organization

Membrane Potentials, Action Potentials, and Synaptic Transmission. Membrane Potential

Bo Deng University of Nebraska-Lincoln UNL Math Biology Seminar

Senior astrophysics Lab 2: Evolution of a 1 M star

Neurophysiology. Danil Hammoudi.MD

Chemical Kinetics I: The Dry Lab. Up until this point in our study of physical chemistry we have been interested in

1 Introduction and neurophysiology

SuperCELL Data Programmer and ACTiSys IR Programmer User s Guide

Spin transport in Magnetic Tunnel Junctions

Preparing a PDB File

Aspen Plus PFR Reactors Tutorial using Styrene with Pressure Drop Considerations By Robert P. Hesketh and Concetta LaMarca Spring 2005

Tutorial. Getting started. Sample to Insight. March 31, 2016

BASIC TECHNOLOGY Pre K starts and shuts down computer, monitor, and printer E E D D P P P P P P P P P P

Conductance-Based Integrate-and-Fire Models

Modeling a Composite Slot Cross-Section for Torsional Analysis

Introduction to Neural Networks U. Minn. Psy 5038 Spring, 1999 Daniel Kersten. Lecture 2a. The Neuron - overview of structure. From Anderson (1995)

Version 1.2 October 2017 CSD v5.39

Transcription:

NEURON - tutorial D of Gillies & Sterratt (part 1) http://www.anc.ed.ac.uk/school/neuron/ Lubica Benuskova Lecture 10 How to program ion channels with NMODL 1

Introduction: our current goal So far our simulated neurons were given a characteristic morphology for a subthalamic nucleus projection neuron. But they still contain only the default Hodgkin and Huxley types of sodium and potassium ion-selective channels. We would like to make these neurons much more electrophysiologically similar to subthalamic nucleus neurons. There are many channel types we would want to add, but for now we will add only one new type, called the T-type calcium channel. 2

Post hyperpolarising response A typical electrophysiological feature of subthalamic neurons is the post hyperpolarising response. burst When a neuron is hyperpolarised (e.g. by current injection or inhibitory synaptic input), at the end of the hyperpolarisation, a burst of spikes is observed in subthalamic projection neurons (see right). This response is mediated by a low threshold calcium selective ion channel, called the T-type Ca channel. hyperpolarisation current injection time 3

T-type calcium electric current First we must know the equation that describes the electric current that flows through the T-type Ca-channel. The current I T produced from the T-type Ca-channels was characterised within the Hodgkin-Huxley framework by Wang et al. (J. Neurophys. 66: 839-850, 1992): I T g T (max) r 3 s V E Ca where g T(max) is the maximum T-type Ca conductance; r is the activation state variable; s is the inactivation state variable, E Ca is the reversal potential for Ca; V is the neuron membrane potential 4

T-type calcium channels state variables State variables r and s are given by the following kinetic systems: Here "C" refers to a closed state and "O" refers to an open state. The a and b denote the forward and backward rate constants from one state to another; they are voltage dependent functions specified by Wang et al. (1992). Note that inactivation is a three state kinetic process, with fast (s) and slow (d) components. 5

6 T-type calcium channels state variables State variables r and s are given by the following kinetic systems: These kinetic schemes translate to three differential equations: d d s d s d s s r r r d d s s r b a b a b a ) (1 ) (1 ) (1

T-type calcium channels: rate functions a & b Rate functions obey these equations (J. Neurophys. 66: 839-850): a 1 r 1.7 e a s e V 160.3 17.8 a d 1.0 e V 37.4 30.0 V 28.2 13.5 b 240.0 (0.5 r b s d ) e V 63.0 7.8 e V 160.3 17.8 b d 1.7 e a V 28.2 13.1 0.25 e d V 83.5 6.3 ( d 0.5) d 0.25 e V 83.5 6.3 0.5 7

NEURON model description language We would like to add this channel to our model. This cannot be done with the programming language hoc that we have used in the previous tutorials. Instead we have to learn the NEURON Model Description Language (NMODL) provided for defining additional membrane mechanisms such as ion channels or ion pumps or point processes such as synapses. There is more written by Mike Hines and Ted Carnevale at: http://www.neuron.yale.edu/neuron/papers/nc2000/nmodl.htm 8

CaT.mod A membrane mechanism description using NMODL is laid out in an ordinary text file. The text file CaT.mod containing a specification of the T-type Ca channel in NMODL looks like this: TITLE Calcium T channel for Subthalamic Nucleus UNITS { } (mv) = (millivolt) (ma) = (milliamp) NEURON { } SUFFIX CaT USEION ca READ eca WRITE ica RANGE gmax PARAMETER { gmax = 0.002 (mho/cm2) } ASSIGNED { v (mv) eca (mv) ica (ma/cm2) ralpha (/ms) rbeta (/ms) salpha (/ms) sbeta (/ms) dalpha (/ms) dbeta (/ms) } STATE { r s d } 9

BREAKPOINT { SOLVE states METHOD cnexp ica = gmax*r*r*r*s*(v-eca) } CaT.mod contd. INITIAL { settables(v) r = ralpha/(ralpha+rbeta) s = (salpha*(dbeta+dalpha)-(salpha*dbeta))/ ((salpha+sbeta)*(dalpha+dbeta)-(salpha*dbeta)) d = (dbeta*(salpha+sbeta)-(salpha*dbeta))/ ((salpha+sbeta)*(dalpha+dbeta)-(salpha*dbeta)) } DERIVATIVE states { settables(v) r' = ((ralpha*(1-r)) - (rbeta*r)) d' = ((dbeta*(1-s-d)) - (dalpha*d)) s' = ((salpha*(1-s-d)) - (sbeta*s)) } 10

CaT.mod finish UNITSOFF PROCEDURE settables(v (mv)) { LOCAL bd TABLE ralpha, rbeta, salpha, sbeta, dalpha, dbeta FROM -100 TO 100 WITH 200 ralpha = 1.0/(1.7+exp(-(v+28.2)/13.5)) rbeta = exp(-(v+63.0)/7.8)/(exp(-(v+28.8)/13.1)+1.7) salpha = exp(-(v+160.3)/17.8) sbeta = (sqrt(0.25+exp((v+83.5)/6.3))-0.5)*(exp(-(v+160.3)/17.8)) bd = sqrt(0.25+exp((v+83.5)/6.3)) dalpha = (1.0+exp((v+37.4)/30.0))/(240.0*(0.5+bd)) dbeta = (bd-0.5)*dalpha } UNITSON 11

NEURON and NMODL A membrane mechanism description using NMODL is laid out in an ordinary text file. Suppose we have created a text file CaT.mod containing our description of the T-type Ca channel in NMODL and we want to insert it into the soma. We simply do it like this (see sthd.hoc): soma { nseg = 1 diam = 18.8 L = 18.8 Ra = 123.0 insert hh gnabar_hh = 0.25 gl_hh =.0001667 el_hh = -60.0 } insert CaT 12

Note on equilibrium potentials The value of eca is calculated by NEURON. How and when it is calculated depends on the particular mechanisms dealing with ions that are inserted in a section (i.e., soma or dendrites). NEURON uses a built-in, i.e. "default", eca. But NEURON's default values for eca, ena, and ek are not appropriate for our mammalian subthalamic nucleus. We want to use typical mammalian values, which are ena = 71.5 mv; ek = 89.1 mv; eca = 126.1 mv 13

New SThcell template We will set all of these equilibrium potentials as our model has channels using each of these ion species. These should be set after the channel mechanisms are inserted into a section, and must be set for each section that has channels using that ionic species inserted. We can modify our SThcell template, adding these equilibrium potential parameter values to the soma block: soma { nseg = 1 diam = 18.8 L = 18.8 Ra = 123.0 insert hh ena = 71.5 ek = -89.1 gnabar_hh = 0.25 gl_hh =.0001667 el_hh = -60.0 insert CaT eca = 126.1 } 14

NEURON and NMODL: compilation Assume a membrane mechanism description using NMODL is laid out in the text file (e.g., the text file CaT.mod containing our description of the T-type calcium channel in NMODL). The NEURON interpreter cannot read this file directly as it can with hoc files. Instead, the NMODL file has to be compiled into a form that NEURON can use. How to compile & incorporate this new mechanism into NEURON depends on what operating system you are using: 15

Linux / Unix Change to the dir that contains the CaT.mod file, and there type the command > nrnivmodl This creates a new NEURON executable called i386/special whose library of mechanisms includes our T current (the i386 subdirectory will be created automatically if it does not already exist). 16

Linux / Unix contd & MacOS To launch this new executable and have it load to your model file, at the OS prompt in the directory that contains i386 just type > nrngui sthd.hoc MacOS users only need to drag the directory that contains CaT.mod and drop it onto the mknrndll icon. This produces a nrnmech.dll file that is automatically loaded when you double click on any.hoc file in the same directory. 17

MS Windows You just launch > Start/Programs/Neuron/mknrndll This brings up a directory browser that can be used to navigate to your working directory that contains the CaT.mod file. When you get to the proper directory, click on the button labelled "Make nrnmech.dll". This compiles all the.mod files in this directory and creates a file called nrnmech.dll that contains the new compiled mechanisms. nrnmech.dll will be automatically loaded when you double click on a.hoc file in this directory. 18

Why the compilation? Why do we have to go through this cumbersome compilation procedure every time we want to create or modify a channel? The reason is that membrane mechanisms are used on every time step, and therefore need to be efficient. Converting the NMODL file to C-code and then compiling this into a new NEURON program or library (which is what nrnivmodl and mknrndll do) leads to more efficient simulation. If we do not modify our new channel mechanism, i.e. the.mod file, then the compilation is done only once. 19

Conclusion Now if we launch sthd.hoc with a hyperpolarising current injected into any of our neurons, we now observe a post-hyperpolarising T- type response: With current injections of -0.1, -0.2, and -0.3 na. Note: The action potential is unrealistic for mammalian subthalamic cells b/c it is still based on HH squid axon channels. 20

Picking vectors from the plots Everything that is plotted can be saved to a specified data filename as the numerical values of a plotted variable. For example, if we are plotting the voltage of the subthalamic neuron and want to record a particular voltage trace as numbers, we can do this from the Graph Properties menu. This menu appears after a right click on the graph of interest. 21

Picking vectors from the plots From this menu, select the Pick Vector option. Any plot on this graph can be selected simply by clicking on the particular plotted line of interest. In our example, the graph contains three plots (showing the voltage at the soma of three subthalamic cells). We can only select one plot at a time to save! 22

Saving the vectors in a file name.dat Click on the voltage trace you want to save as numbers and go to the NEURON Main Menu toolbar. The Main Menu toolbar contains a Vector menu allowing vectors to be saved or retrieved from data files. Select Save File from the Vector menu. This pops up a file dialogue window allowing you to enter a filename for saving the selected vector data. 23

Structure of the vector data file The beginning of the data file looks something like this: label:sthcells[2].soma.v( 0.5 ) 32001 0-65 0.025-65.0488 0.05-65.0844 0.075-65.1125 0.1-65.136 The first line of the file is a text string identifying the data being plotted, the second line is the number of data points in the file (here 32001), and finally the third line onward contains the data. First column is the time and, second column, soma voltage at that time. 24