read_spikelist: Axion convert spk_list to r_object

Description Usage Arguments Value See Also Examples

View source: R/spikelist_functions.R

Description

Converts the Axion spk_list file to a Rdata object and initializes it with all spike and plate info

Usage

1
read_spikelist(key, spk_list_file, chem_info ,r_object_dir) 

Arguments

key

base name of spk_list file

spk_list_file

The full spk_list file name (including path)

chem_info

plate layout information list as loaded using function chem_info_2

r_object_dir

Directory of r_object files

Value

save_file

Full path of the saved r_object data file

See Also

chem.info.2

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
temp_path=tempdir()
master_chem_file<-paste0( temp_path,"/data",
   "/exampleRecording_1012016_plate1_expLog.csv" )
      
spike_list_file<-paste0( temp_path,"/data",
"/exampleRecording_1012016_plate1_DIV1_spike_list.csv" )

title<-strsplit(basename(spike_list_file), ".csv")[[1]][1]
# get plate chemical info for each file in the list

plate_chem_info<-chem_info_2( file=spike_list_file, master_chem_file = master_chem_file )

r_object_file_name<-read_spikelist(key=title, 
                  spk_list_file=plate_chem_info, 
                  chem_info=plate_chem_info,r_object_dir="/") 

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