openworm / muscle_model

Model of C elegans body wall muscle based on Boyle & Cohen 2008
http://www.opensourcebrain.org/projects/muscle_model
Other
47 stars 24 forks source link

The same conductance for different channels in nml files #49

Closed VahidGh closed 9 years ago

VahidGh commented 9 years ago

@pgleeson, Channel nml files for Boyle&Cohen 2008 model, all have the same conductance value (10ps) and different from conductance values described in this notebook file and generated by this script. I also found the same value for other examples of NeuroML2 channel files. If it is OK, then how different conductance values could be used in neuroML2 files? and which one is preferred?

pgleeson commented 9 years ago

There's an important distinction between the conductance of an individual channel (set in ionChannel .. conductance="10pS") and the conductance density of a distributed conductance on a cell (set in biophysicalProperties/membraneProperties/channelDensity condDensity).

The former is only really relevant when you think of the "ion channel" as a single individual channel which opens and allows a current with a time varying conductance. The latter is what's actually used in the cell models, and is different for each of the ion channels used in channelDensity elements.

VahidGh commented 9 years ago

So what if we would need to keep it inside the channel file, independent of the cell file? Do you recommend this? or we should have both the cell file and the channel file for each model?

pgleeson commented 9 years ago

In short, yes, they're 2 different things. One is a property of the channel itself (which is not really used much and could be set to zero) and the other is only relevant for when you place it on an actual cell and need to say the density at which that particular conductance is present on the cell. So a value for conductance density shouldn't be put in the channel file.

VahidGh commented 9 years ago

@pgleeson, OK, thanks. Is there any neat python code I can use for generating channel, cell, and LEMS file for an ion channel?

pgleeson commented 9 years ago

See examples mentioned in https://github.com/openworm/muscle_model/issues/31#issuecomment-128332835. Also https://github.com/NeuralEnsemble/libNeuroML/tree/development/neuroml/examples

VahidGh commented 9 years ago

Was so useful, thanks.