read_spikelist_text: Construct an MEA object by importing from text files.

Description Usage Arguments Details Value Author(s) Examples

View source: R/spikelist_text.R

Description

Construct an MEA object by importing from text files.

Usage

1
2
read_spikelist_text(spike_text_file, channel_text_file, chem_info, array,
  div = NULL)

Arguments

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)

Details

This function can be used to read in spike times from text files.

Value

S the MEA object

Author(s)

Stephen Eglen

Examples

 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)

meaRtools documentation built on May 1, 2019, 7:32 p.m.