bluepyefe.ecode.SpikeRec

Step eCode class

Functions

detect_spike(amp, hypamp, smooth_current, dt)

group_indexes(values[, gap])

Return a list of clusters from a list where consecutive values follow each other forming clusters eg: [12, 14, 15, 20, 56, 60, 61, 62, 63] -> [[12, 14, 15, 20], [56, 60, 61, 62, 63]]

Classes

SpikeRec(config_data, reader_data[, ...])

SpikeRec current stimulus

class SpikeRec(config_data, reader_data, protocol_name='SpikeRec', efel_settings=None)[source]

Bases: Recording

SpikeRec current stimulus

      hypamp        hypamp+amp      hypamp       hypamp+amp          .   .   .
        :                :             :             :
        :        _________________     :      _________________                      _________________
        :       |                 |    :     |                 |                    |                 |
        :       |                 |    :     |                 |   * len(tspike)    |                 |
        :       |                 |    :     |                 |     .   .   .      |                 |
        :       |                 |    :     |                 |                    |                 |
|_______________|                 |__________|                 |__                __|                 |___
:               :                 :          :                 :                                          ^
:               :                 :          :                 :                                          :
:               :                 :          :                 :                                          :
 <--tspike[0] --><-spike_duration-><- delta -><-spike_duration->      .   .   .                          tend

Constructor

Parameters:
  • config_data (dict) – metadata for the recording considered informed by the user.

  • reader_data (dict) – metadata for the recording considered returned by the recording reader.

  • protocol_name (str) – name of the protocol of the present recording.

generate()[source]

Generate the step current array from the parameters of the ecode

get_stimulus_parameters()[source]

Returns the eCode parameters

in_target(target, tolerance, absolute_amplitude)[source]

Returns a boolean. True if the delta of the eCode is close to target and False otherwise.

interpret(t, current, config_data, reader_data)[source]

Analyse a current with a step and extract from it the parameters needed to reconstruct the array

group_indexes(values, gap=10)[source]

Return a list of clusters from a list where consecutive values follow each other forming clusters eg: [12, 14, 15, 20, 56, 60, 61, 62, 63] -> [[12, 14, 15, 20], [56, 60, 61, 62, 63]]