Channel builder export?
Posted: Sun Jul 27, 2008 10:47 pm
I am a newbie to Neuron, presently using the book and Channel Builder Tutorial to try to figure out how to add my own mechanisms. My question is about how to get results from the channel builder into an NMODL file.
In the web tutorial on Channel Builder, it says:
In the web tutorial on Channel Builder, it says:
How, exactly, is this done? I built a simple channel (leak_built) in channelbuilder, saved the session, and that doesn't seem to produce a human-readable (this human, anyway) specification of the mechanism. It produces the following:A configured Channel Builder can be saved to a session file that contains a human-readable, plain text specification of the mechanism.
I can understand some of that. For instance, where the parameters are (the conductance and reversal potential), that it is a nonspecific current. But is there any way to generate output from channelbuilder that is more like the NMODL code that I would write by hand? That is, can I use channelbuilder and export code that will expedite creating the mechanism in an NMODL file?//Begin ChannelBuild[0] managed KSChan[0]
{
load_file("chanbild.hoc", "ChannelBuild")
}
{ocbox_ = new ChannelBuild(1)}
{object_push(ocbox_)}
{genprop.set_data("leak_built", 1, 1, -1, "NonSpecific")}
{genprop.set_defstr(0.0002, -65)}
end_restore()
{genprop.set_single(0)}
{set_alias(0)}
{usetable(0)}
{object_pop()}
{
ocbox_.map("ChannelBuild[0] managed KSChan[0]", 132, 174, 199.8, 271.8)
}
objref ocbox_
//End ChannelBuild[0] managed KSChan[0]