sanger.read.spikes          package:sjemea          R Documentation

_R_e_a_d _i_n _a _n_e_x_T_i_m_e_s_t_a_m_p_s _f_i_l_e _f_r_o_m _N_e_u_r_o_e_x_p_l_o_r_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:

     The Genes to Cognition Project (G2C) uses Neuroexplorer to output
     spike times from an MEA recording.  This function reads those text
     files and creates a "spikes" data structure.

_U_s_a_g_e:

     sanger.read.spikes(filename, ids=NULL, time.interval=1,
                        beg=NULL, end=NULL, min.rate=0)

_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.

min.rate: Minimum firing rate of an electrode.

_D_e_t_a_i_l_s:

     This format is fairly simple; each column represents one channel,
     with the spikes recorded in that channel filling up the column. 
     Since different channels are likely to record different numbers of
     spikes, empty values (just a TAB to next value) are found at the
     bottom of each spike train.

     Text files can be compressed, using gzip, to save space.  (The
     extension .gz is added to compresed files.)  This compression
     aspect should be transparent to the end user - if a file is
     compresed, the filename can be given with or without the .gz
     extension.  gzip is available for Windows (from <URL:
     http://www.gzip.org>); "gzip *.nexTimestamps" will compress all
     timestamps, and "gzip -d *.nexTimestamps" will uncompress them.

_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' 'compute.ns'

_E_x_a_m_p_l_e_s:

     data.file <- system.file("examples", "TC89_DIV15_A.nexTimestamps",
                              package = "sjemea")
     s <- sanger.read.spikes( data.file, beg=400, end=700)
     fourplot(s)

