Description Usage Arguments Details Value Author(s) Examples
View source: R/spikelist_text.R
Construct an MEA object by importing from text files.
1 2 | read_spikelist_text(spike_text_file, channel_text_file, chem_info, array,
div = NULL)
|
spike_text_file |
CSV with Spike time information |
channel_text_file |
CSV with information regarding MEA layout |
chem_info |
Optional chemical information (currently unused) |
array |
Name of array |
div |
Age of the recording (days in vitro) |
This function can be used to read in spike times from text files.
S the MEA object
Stephen Eglen
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | demas_platelayout = list(n_well = 6,
wells = paste0("w", 1:6),
n_well_r = 2,
n_well_c = 3,
layout = c(3, 2),
n_elec_r = 8,
n_elec_c = 8,
xlim = c(-100, 7200),
ylim = c(0, 6000),
spacing = 200,
corr_breaks = 0
)
add_plateinfo("demas-6well", demas_platelayout)
times = system.file("extdata/textreader/demas.times", package="meaRtools")
pos = system.file("extdata/textreader/demas.pos", package="meaRtools")
s = read_spikelist_text(times, pos, array="demas-6well")
meaRtools:::.plot_mealayout(s$layout, use_names = TRUE, cex=0.3)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.