Package xppy.utils.data
Detailed Description
This file is part of XPPy.
XPPy is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as
published by the Free Software Foundation, either version 3 of
the License, or (at your option) any later version.
XPPy is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with XPPy. If not, see <http://www.gnu.org/licenses/>.
Function Documentation
def xppy.utils.data.arcLength |
( |
|
data |
) |
|
Calculate the arclenght of the provided data.
def xppy.utils.data.findADP |
( |
|
data, |
|
|
|
cols = [0 , |
|
|
|
threshold = 20 , |
|
|
|
sampleThr = 3 | |
|
) |
| | |
Function finds ADP in data in given columns. Threshold and sample threshold,
are parameters for findSpikes.
Threshold value according to (Naundorf et al. 2006).
def xppy.utils.data.findSpikes |
( |
|
data, |
|
|
|
cols = [0 , |
|
|
|
threshold = 20 , |
|
|
|
sampleThr = 3 | |
|
) |
| | |
Function finds spikes in the given two data columns data.
Threshold is a slope of the tangent line. SampleThr is
minimal number of samples where slope is greater then threshold.
Threshold value according to (Naundorf et al. 2006).
def xppy.utils.data.getDVDT |
( |
|
data, |
|
|
|
cols = [0 | |
|
) |
| | |
Function calculated dV/dt over given data.
def xppy.utils.data.getOrbit |
( |
|
data, |
|
|
|
start = None , |
|
|
|
eps = 1e-4 , |
|
|
|
col = 1 | |
|
) |
| | |
Function extracts single orbit from given data and returns it.
The orbit is ectracted from 'start' with accuracy of the end
point less than eps. The compared data is taken from
the column col.
def xppy.utils.data.getTau |
( |
|
data, |
|
|
|
cols = [0 | |
|
) |
| | |
Function gets time constant from hyperpolarizing current injection data.
Time constant is defined as a crossing of 63% of the maximal amplitude
of the trajectory. Note that t0 is the beginning of the current injection,
function does not detect the beginning of current injection by itself.
def xppy.utils.data.getThreshold |
( |
|
data, |
|
|
|
cols = [0 | |
|
) |
| | |
Function returns a threshold time and value for the first spike in the spike train.
Threshold is defined as dV/dt crossing of 20 V/s (Naundorf et al. 2006).
def xppy.utils.data.ISI |
( |
|
data, |
|
|
|
cols = [0 , |
|
|
|
threshold = 20 , |
|
|
|
sampleThr = 3 | |
|
) |
| | |
Function calculates ISI from given data and return in the form of an array
of ISI for the given pair. The ISI is calculated for the peak of the spikes.
Threshold value according to (Naundorf et al. 2006).
def xppy.utils.data.resample1d |
( |
|
data, |
|
|
|
ns | |
|
) |
| | |
Function resamples the given data (1d line [x,y] data) using even
arc lenght (linear interpolation). New (resampled) data is returned.