API reference

Spike transformers

spike.Binner(sample_times) Bin a population of spike events into an array of spike counts.
spike.Smoother(sample_times[, kernel, tau]) Smooth a population of spike events into an array.
nwb.SpikeTablizer() Convert a dictionary of spike times to a dataframe of spike times.

Trace transformers

trace.Binarizer([threshold, copy]) Binarize data (set feature values to 0 or 1) according to a threshold
trace.EdgeDetector([falling]) Detect rising or falling edges in a trace
trace.WhenTrueFinder() Finds times when a trace is non-negative

Calcium transformers

calcium.CalciumDeconvolver
calcium.MedianFilterDetrender
calcium.SavGolFilterDetrender
calcium.EventRescaler

Event transformers

event.PeriEventSpikeSampler(spikes, sample_times) Take event-aligned samples of spikes from a population of neurons.
event.PeriEventTraceSampler(traces, sample_times) Take event-aligned samples of traces from a population of neurons.
event.PeriEventTraceReducer(traces, sample_times) Take event-aligned samples of traces from a population of neurons.

Epoch transformers

epoch.EpochTraceReducer(traces, func) Take event-aligned samples of traces from a population of neurons.

Tensor transformers

tensor.ResponseReducer(func[, dim]) Reduces a response tensor by performing a function along one dimension