spike_analysiscoreSpikeTimesAnalysis

SpikeTimesAnalysis

class spike_analysis.core.SpikeTimesAnalysis(spike_times_object, default_event_analysis=[], periods={})

Class for applying event_analysis routines on a spike times dataframe.

Parameters:
  • spike_times_object (object) – The spike times object.

  • default_event_analysis (list) – A list of event analysis routines.

  • periods (dict) – A dictionary containing period labels as keys and (period_start, period_end) as values.

Attributes:

spike_times_object

The spike times object.

Type:

object

_db

The database containing the spike times and the event analysis routines.

Type:

dict

periods

A dictionary containing period labels as keys and (period_start, period_end) as values.

Type:

dict

Methods:

apply_extractor(sta_plugin, name)

Applies an event analysis routine.

get(key)

Get a key from the database.

get_by_trial(key)

Get spike information by trial.