feller.read.spikes {sjemea} | R Documentation |
Marla Feller has provided MEA data from an hexagonal array. The data from each electrode is stored in a separate file. This function reads those text files and creates a "spikes" data structure.
feller.read.spikes(filename, ids=NULL, time.interval=1, beg=NULL, end=NULL)
filename |
Name of the text file to be read in. |
ids |
Which electrodes should be kept. |
time.interval |
How often to estimate the firing rate. |
beg |
Start time of the recording. |
end |
End time of the recording. |
The data from each electrode is not in seconds; divide by 20000 to get the time in seconds.
Return the data structure 's'.
Stephen Eglen
jay.read.spikes
sanger.read.spikes
data.file <- system.file('examples', '2002-11-26-1', package='sjemea') s <- feller.read.spikes(data.file) ejcmealayout.check() fourplot(s) ## next two examples show electrodes being rejected/accepted. s <- feller.read.spikes(data.file, ids=c('-', 'a7a', 'b1a', 'h2a')) s <- feller.read.spikes(data.file, ids=c( 'a7a', 'b1a', 'h2a'))