How to quantify spike number using additional criteria such as amplitude

NMODL and the Channel Builder.
Post Reply
zylittlep
Posts: 9
Joined: Sat Feb 16, 2019 6:36 pm

How to quantify spike number using additional criteria such as amplitude

Post by zylittlep »

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.

Code: Select all

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.append(apc.n)}
The thing is APCount determine spikes simply based on voltage threshold. Now I'm trying to implement another criteria such as amplitude > 40mV when counting spikes to avoid small, near threshold membrane voltage fluctuations.
I was thinking maybe I need to create another vector and record the value of voltage, and use apc.record to extract the time when the voltage cross the threshold in the positive directions, and then find max and min of voltage vector between the range of one and the next threshold-crossing time window.

Does anybody have any advice on how to do this?

I appreciate your input.

Best,
Yang
ted
Site Admin
Posts: 6286
Joined: Wed May 18, 2005 4:50 pm
Location: Yale University School of Medicine
Contact:

Re: How to quantify spike number using additional criteria such as amplitude

Post by ted »

I'm trying to implement another criteria such as amplitude > 40mV
You can't use APCount's thresh parameter for that?
Post Reply