Neuron Hoc files

The basics of how to develop, test, and use models.
Post Reply
nats

Neuron Hoc files

Post by nats »

Can anyone please tell me that how to know which hoc file contains which kind of content like if i want to implement Hodgkin and Huxley model then which hoc file to use????
Thanks :)
ted
Site Admin
Posts: 6394
Joined: Wed May 18, 2005 4:50 pm
Location: Yale University School of Medicine
Contact:

Re: Neuron Hoc files

Post by ted »

nats wrote:Can anyone please tell me that how to know which hoc file contains which kind of content like if i want to implement Hodgkin and Huxley model then which hoc file to use????
Please go to the FAQ page
http://www.neuron.yale.edu/neuron/faq/general-questions
and look for the item
What's the best way to learn how to use NEURON?
nats

Post by nats »

I can make the neuron work....i mean i cud understand how to use it....i can load hoc file and save the output as well but my doubt is only about how to choose hoc files??

i dont know i am unable to understand that.....
suppose i want Hodgkin-Huxley model then is there any hh.hoc file existing or i have to load more than 1 hoc file??
ted
Site Admin
Posts: 6394
Joined: Wed May 18, 2005 4:50 pm
Location: Yale University School of Medicine
Contact:

Post by ted »

The hh mechanism is built into NEURON. All you have to do is create a section, then
insert hh, and you have a model with Hodgkin-Huxley membrane properties. You can
do this by writing hoc code or by using the GUI.

To do this by writing hoc code, create a plain text file. Call it anything you like; perhaps
simplehh.hoc
The file should contain these statements:

Code: Select all

load_file("nrngui.hoc")
create soma
access soma
L = 10
diam = 10
Save the file to disk.

If you are using MSWin, double click on the file; if OS X, drag and drop the hoc file onto
the nrngui icon; if UNIX, at the command prompt type
nrngui simplehh.hoc

Then use the NEURON Main Menu toolbar to create a RunControl panel, a
PointProcessManager configured as an IClamp, and a voltage axis graph (if you need
to see how, go to the Documentation page
http://www.neuron.yale.edu/neuron/docs
and work through the tutorial
Construction and Use of Models: Part 1. Elementary Tools).
Post Reply