Search found 9 matches

by zylittlep
Mon Feb 25, 2019 4:41 pm
Forum: Adding new mechanisms and functions to NEURON
Topic: How to quantify spike number using additional criteria such as amplitude
Replies: 1
Views: 2569

How to quantify spike number using additional criteria such as amplitude

Hi all, I'm trying to output action potential numbers with a series of current injection with different amplitude. Currently I'm using APCount to output the number if spikes as below. objref apc apc = new APCount(0.5) apc.thresh = -12 for i = 0, 20 { stim.amp = 0.1*i run() reci.append(stim.amp) recn...
by zylittlep
Mon Feb 25, 2019 4:33 pm
Forum: Adding new mechanisms and functions to NEURON
Topic: How to change parameter used in NMODL for channel kinetics in hoc
Replies: 11
Views: 7354

Re: How to change parameter used in NMODL for channel kinetics in hoc

I suppose it's because the computation is fast enough for their purpose. Not using lookup tables is still fast enough.
by zylittlep
Sun Feb 24, 2019 7:36 pm
Forum: Adding new mechanisms and functions to NEURON
Topic: How to change parameter used in NMODL for channel kinetics in hoc
Replies: 11
Views: 7354

Re: How to change parameter used in NMODL for channel kinetics in hoc

Hi Ted, When I modified the TABLE statement with DEPEND like TABLE ninf, ntau, htau FROM -100 TO 100 WITH 200 TABLE hinf DEPEND vhhinf FROM -100 TO 100 WITH 200 I get error message saying 'only one TABLE per function' . I'm wondering where the problem is. Does it mean I should have four separate pro...
by zylittlep
Thu Feb 21, 2019 7:01 pm
Forum: Adding new mechanisms and functions to NEURON
Topic: How to change parameter used in NMODL for channel kinetics in hoc
Replies: 11
Views: 7354

Re: How to change parameter used in NMODL for channel kinetics in hoc

I figured it out. Just need to set usetable=0. Anyway, thank you very much!
by zylittlep
Thu Feb 21, 2019 2:11 pm
Forum: Adding new mechanisms and functions to NEURON
Topic: How to change parameter used in NMODL for channel kinetics in hoc
Replies: 11
Views: 7354

Re: How to change parameter used in NMODL for channel kinetics in hoc

Thank you for your response. But I don't think that's where the problem lies. Even when I add SUFFIX to the parameters except for gbar, the channel behaves the same.
by zylittlep
Wed Feb 20, 2019 11:57 am
Forum: Adding new mechanisms and functions to NEURON
Topic: How to change parameter used in NMODL for channel kinetics in hoc
Replies: 11
Views: 7354

Re: How to change parameter used in NMODL for channel kinetics in hoc

Say I want to change akv1ntaur, I wrote a hoc file called channel_parameters.hoc which includes these parameters, for example //kv1 parameters gkv1bar = 0.0015 vhkv1ninf = -61 kkv1ninf = 14.3 akv1ntaul = 0 bkv1ntaul = 4.59 ckv1ntaul = -56 dkv1ntaul = 15.4 akv1ntaur = 0.21 bkv1ntaur = 5.6 ckv1ntaur =...
by zylittlep
Tue Feb 19, 2019 6:46 pm
Forum: Optimization
Topic: Optimizing PROCEDURE equations in mod files
Replies: 5
Views: 15581

Re: Optimizing PROCEDURE equations in mod files

Hi Ted,

Do you mind sharing the modified code, please? It seemed that I ran into a similar problem.

Thank you.

Best,
Yang
by zylittlep
Tue Feb 19, 2019 5:22 pm
Forum: Adding new mechanisms and functions to NEURON
Topic: How to change parameter used in NMODL for channel kinetics in hoc
Replies: 11
Views: 7354

How to change parameter used in NMODL for channel kinetics in hoc

Hi all, I'm new to NEURON and trying to build a one segment model with different ion channels. I'm wondering how to simultaneously change parameters used in mod files in hoc and view plots. As an example, I'd like to change parameters such as vhkv1ninf, kkv1ninf, etc. as in the mod file below. As fo...