baseline_subtract_allfreqs: Subtract baseline spike rate from list of smoothed psth data

Description Usage Arguments Examples

Description

Subtract baseline spike rate from list of smoothed psth data

Usage

1
baseline_subtract_allfreqs(allfreqs, baselinesamples = 1:5)

Arguments

allfreqs

A list with one entry per cell, where each entry contains a matrix of smoothed psth data where rows are timepoints and columns are odours. This is equivalent to pulling the freq component out of physplitdata::smSpikes object.

baselinesamples

Integer indices of the timepoints to use for the baseline. These are 50ms time points for smSpikes

Examples

1
2
3
4
cells=c("nm20140714c1", "nm20150305c0", "nm20141128c0", "nm20140901c0")
allfreqs=lapply(physplitdata::smSpikes[cells],
function(psthsforcell) sapply(psthsforcell,function(x) x$freq))
baseline_subtract_allfreqs(allfreqs, baselinesamples=1:5)

sfrechter/physplit.analysis documentation built on May 29, 2019, 8:02 p.m.