Skip to content
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

Generating current/voltage relationship files #5

Closed
travs opened this issue Jun 5, 2015 · 11 comments
Closed

Generating current/voltage relationship files #5

travs opened this issue Jun 5, 2015 · 11 comments

Comments

@travs
Copy link

travs commented Jun 5, 2015

The ability to make a LEMS simulation that generates I/V relationships at each voltage was given by these lines in the template from Channelpedia.

The generated i_*.lems.dat files were used by Rayner's script to produce an I/V plot, which is useful for ChannelWorm's goal of comparing simulated and real ion channel data.

PyNeuroML seems to have most of the functionality we need at this point, except that the built in template doesn't produce these files.

I'm wondering if we should implement this in the template used in PyNeuroML's channel analysis, or if there was a reason the functionality was removed (too many dat files perhaps?)

@pgleeson
Copy link
Member

pgleeson commented Jun 8, 2015

Yes, that was removed due to the large number of i_*.lems.dat files produced.

I've reenabled it, but made generating these files optional, using the -ivCurve option, e.g. this:

pynml-channelanalysis -temperature 34   -minV -55  -maxV 80  -duration 600  \
         -clampBaseVoltage -55  -clampDuration 580  -stepTargetVoltage 10  \ 
          -erev 50  -caConc 0.001 -clampDuration 600 -stepTargetVoltage 5 \
          -ivCurve ca_boyle.channel.nml 

will generate (and save as ca_boyle.i_peak.dat) the holding voltages vs current for ca_boyle.channel.nml:

selection_223

Might be what you and @VahidGh need for generating the iv curves.

Not all parameters above are required, but the erev parameter is very important to produce a correct IV curve...

@VahidGh
Copy link

VahidGh commented Jun 8, 2015

@pgleeson, that's great, thanks.

@travs
Copy link
Author

travs commented Jun 10, 2015

Okay this is awesome! Thanks @pgleeson

@travs
Copy link
Author

travs commented Jun 11, 2015

Having some trouble running this with another ion channel (not ca_boyle) as input.

Edit: Got it to work. The plots weren't showing up because my terminal was fullscreen.....

@pgleeson
Copy link
Member

Great. Btw, you had 2 -clampDurations there and also erev of 50mV for k chan is probably wrong. Also no need for caConc...

@travs
Copy link
Author

travs commented Jun 11, 2015

Ok, I just copied it from the example to see if could get some output. So ca_boyle can be run with two clamp durations? Are there two separate simulations or something?

@pgleeson
Copy link
Member

My mistake. Sorry...

@travs
Copy link
Author

travs commented Jun 11, 2015

Ok, no sweat; we can chat about this in our meeting tomorrow!

@rgerkin
Copy link
Contributor

rgerkin commented Jun 12, 2015

@travs @pgleeson When are you meeting?

@rgerkin
Copy link
Contributor

rgerkin commented Jun 13, 2015

My pull request here will do the same thing using the same code, but allow you to do it from within a python script, rather than from a shell. You would use pyneuroml.analysis.NML2ChannelAnalysis.run(), with keyword arguments matching the ones @pgleeson's first comment above.

@pgleeson
Copy link
Member

Btw @rgerkin, it was just an informal meeting during the HBP meeting last week that @slarson and I were at and had a quick hangout with @travs

@travs travs closed this as completed Jun 15, 2015
pgleeson pushed a commit that referenced this issue Aug 11, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants