biophysics_fittingephys

ephys

The content of this module is mostly a reimplementation of the Hay et.al. 2011 methods used for extracting features. See Hay et al. [2] for more information.

Functions

trace_check(t, v, stim_onset, stim_duration, minspikenum, soma_threshold, returning_to_rest, max_prestim_dendrite_depo, vmax, name)

Check the properties of a voltage trace:

trace_check_max_prestim_dendrite_depo(t, vmax, stim_onset, max_prestim_dendrite_depo)

Check whether anywhere in the dendritic, there is a spike before stimulus onset

trace_check_err(t, v, stim_onset, stim_duration, punish)

Returns a basic trace error that penalizes traces with low variance.

find_crossing_old(v, thresh)

Original NEURON doc:

find_crossing(v, thresh)

Original NEURON doc:

voltage_base(t, v, stim_delay)

Calculates the mean voltage between 0.5 * stim_delay and 0.75 * stim_delay.

voltage_base2(voltage_traces, t0, recSiteID)

Fetch the voltage at a given time point t0 for a specific recording site ID.

spike_count(t, v, thresh)

Counts the number of spikes in a voltage trace.

AP_height_check_1AP(t, v, thresh)

Determines if an action potential (AP) is present in a voltage trace by checking if the voltage crosses a given threshold.

AP_height(t, v, thresh)

Computes the amplitude of each action potential (AP) in a voltage trace.

AP_width(t, v, thresh)

Calculates the action potential (AP) width given the time and voltage arrays and a threshold value.

AHP_depth_abs_check_2AP(t, v, thresh)

Determines whether there are at least two action potentials (APs) in the voltage trace v

AHP_depth_abs(t, v, thresh)

Calculates the absolute afterhyperpolarization (AHP) depth for a given voltage trace.

BAC_caSpike_height_check_1_Ca_AP(t, v, v_dend, thresh)

Checks if there is exactly one calcium spike in the dendritic voltage trace.

BAC_caSpike_height_check_gt2_Na_spikes(t, v, v_dend, thresh)

Checks if the number of spikes in the voltage trace is greater than or equal to 2.

BAC_caSpike_height_check_Ca_spikes_after_Na_spike(t, v, v_dend, n, thresh)

Checks if a calcium spike occurs after the nth sodium spike.

BAC_caSpike_height(t, v, v_dend, ca_thresh, tstim)

Returns the height of the calcium spike after tstim.

BAC_caSpike_width(t, v, v_dend, thresh)

Calculates the width of a calcium spike action potential.

BPAPatt_check_relative_height(t, v_soma, v_dend, bAP_thresh, stim_onset)

Computes the ratio of the backpropagating action potential (bAP) amplitude at the soma and dendrite

BPAPatt_check_1_AP(t, v_soma, thresh, stim_onset)

Checks if there is exactly one action potential in the somatic voltage trace.

BPAPatt(t, v_dend, thresh, stim_onset)

Computes the amplitude of the backpropagating action potential (bAP) at the dendrite.

BAC_ISI_check_2_or_3_APs(t, v, thresh)

Check if there are 2 or 3 action potentials (APs) in a given voltage trace for a BAC stimulus.

BAC_ISI_check_repolarization(t, v, stim_end, repolarization)

Checks if the membrane potential has repolarized to a certain value after a stimulus for a BAC stimulus.

BAC_ISI(t, v, thresh)

Computes the Inter-Spike Interval (ISI) of a voltage trace for a BAC stimulus.

STEP_mean_frequency(t, v, stim_duration, thresh)

Computes the mean frequency of action potentials in a voltage trace for a step stimulus.

STEP_check_2_ISIs(t, v, thresh)

Check if there are more than 2 ISIs in the trace.

STEP_adaptation_index(t, v, stim_end, thresh)

Calculate the adaptation index for a step current stimulus.

STEP_coef_var(t, v, stim_end, thresh)

Computes the coefficient of variation (CV) of the Inter-Spike Interval (ISI) of a voltage trace for a step stimulus.

STEP_initial_ISI(t, v, thresh)

Computes the Inter-Spike Interval (ISI) for the first two spikes of a voltage trace for a step stimulus.

STEP_time_to_first_spike(t, v, stim_onset, thresh)

Computes the time to first spike (TTFS) of a voltage trace for a step stimulus.

STEP_fast_ahp_depth(t, v, thresh, time_scale, start)

Computes the average depth of the fast afterhyperpolarization (fAHP) of a voltage trace for a step stimulus.

STEP_slow_ahp_depth(t, v, thresh, time_scale, start)

Computes the average depth of the slow afterhyperpolarization (sAHP) of a voltage trace for a step stimulus.

STEP_slow_ahp_time(t, v, thresh, time_scale, start)

Calculates the time of the slow afterhyperpolarization (sAHP) of a voltage trace for a step stimulus.