-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
voltage instabilities when combining multiple voltageClampTriple elements #51
Comments
The voltageClampTriple is included in the latest version of the development branches and released in the latest beta release https://github.com/NeuroML/jNeuroML/releases. See https://github.com/NeuroML/NeuroML2/blob/development/NeuroML2CoreTypes/Inputs.xml#L632. You can't really add 2 vclamps to one cell, as each of them will try to force the cell to one of its chosen voltage levels at any given time. It would be better t create a new
This would also let you make more complex protocols, e.g. with ramping sections, as voltageClampMultiple doesn't really care what it's children are doing, only that they produce a current. In fact the |
I ended up adapting the voltageClampTripple code for my custom component with more steps (see below). I don't know LEMS well enough to express it in a more generic way that doesn't involve repetitious code.
|
I have a vclamp protocol that has more than three steps (to test channel inactivation and deactivation eg. p52 of ICG paper). When I chain two voltageClampTriple elements with non-overlapping durations, I get voltage and current instabilities at step transitions.
Results in:
It seems that this could be avoided if the voltageClampTriple specified the duration of the final step, and the element logic only applied non-zero current during times inside the vclamp's time window.
This is the only place I could find the LEMS definition of the voltageClampTriple component. Is this the right place? I could add the bounds check to fix the problem. https://github.com/openworm/hodgkin_huxley_tutorial/blob/3915d4e393f520ce2f5dba6585357b439146cb38/Tutorial2/NeuroML2/vclamp.xml
CC @scrook
The text was updated successfully, but these errors were encountered: