write_features_to_files: Write feature data to an output file

Description Usage Arguments Value Examples

View source: R/aggregateData.R

Description

Takes in list of dataframes (one per feature) from an MEA data structure that is produced by aggregate_features and writes output to Files. Each dataframe corresponds to one feature, containing values for each well across each DIV of recording

Usage

1
write_features_to_files(s, features_list, output_dir, type) 

Arguments

s

MEA data structure

features_list

list of dataframes, one for each feature.

output_dir

Output directory)

type

Type of features (e.g. "spikes", "ns", "bursts")

Value

Write one csv per feature for the feature type requested.

Examples

1
2
3
4
5
6
7
	data("S")
	s<-list()
	s[[1]]<-S
  spike_features = aggregate_features(s, "spike")
  
    write_features_to_files(s, spike_features, analysis$output_dir, "spikes")
  

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