feller.read.spikes          package:sjemea          R Documentation

_R_e_a_d _i_n _a _d_i_r_e_c_t_o_r_y _o_f _s_p_i_k_e _t_i_m_e_s _f_r_o_m _M_a_r_l_a _F_e_l_l_e_r _a_n_d _c_r_e_a_t_e
_a "_s_p_i_k_e_s" _d_a_t_a _s_t_r_u_c_t_u_r_e.

_D_e_s_c_r_i_p_t_i_o_n:

     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.

_U_s_a_g_e:

     feller.read.spikes(filename, ids=NULL, time.interval=1,
                        beg=NULL, end=NULL)

_A_r_g_u_m_e_n_t_s:

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.

_D_e_t_a_i_l_s:

     The data from each electrode is not in seconds; divide by 20000 to
     get the time in seconds.

_V_a_l_u_e:

     Return the data structure 's'.

_A_u_t_h_o_r(_s):

     Stephen Eglen

_S_e_e _A_l_s_o:

     'jay.read.spikes' 'sanger.read.spikes'

_E_x_a_m_p_l_e_s:

     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'))

