Page 1 of 1

How to quantify spike number using additional criteria such as amplitude

Posted: Mon Feb 25, 2019 4:41 pm
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

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

Posted: Thu Feb 28, 2019 10:49 am
by ted
I'm trying to implement another criteria such as amplitude > 40mV
You can't use APCount's thresh parameter for that?