spiketimes objects consist of a list of dataframes reporting the time of spikes. the data frames have two core columns Time and Wave. Time is the time in ms at which each spike occurred within the current sweep. Wave is the 0-indexed number of the sweep within the pxp file (Igor convention). Every Wave must have an entry, so if there are no spikes in e.g. Wave 2, an entry of (Time=NA,Wave=2) will be required.

spiketimes(x, xlim, stimRange)

Arguments

x

object to convert to spiketimes list (normally already a list(

xlim

recording time window for each sweep

stimRange

time window over which stimulus was delivered

Value

spiketimes object

Details

Separate dataframes can be combined into a list where each dataframe is one block of waves that is repeated within a single pxp file or compatible blocks from multiple pxp files. Use split.spiketimes to split a spiketimes object loaded from a pxp file with repeated blocks and +.spiketimes to combine compatible blocks.

CollectSpikesFromSweeps will generate a spiketimes object for you, so this function will only needed if you are constructing spiketimes objects from scratch.

See also