Skip to contents

Used to store modified dataframes and/or analysis summaries in a nested list structure - allows the user to generate plots based on individual or groups of experiments. This is function is soft depreciated

Usage

fill_summary_array(id, filename, event_summary, array_blank, array_name)

Arguments

id

Character, with Experiment id

filename

Character, with single filename

event_summary

Data Frame

array_blank

Object, summary array to be filled. Generated using create_summary_array.

array_name

String, name of output, e.g "analysis_summary"

Value

Appended nested lists segregated by experiment type with corresponding filenames. Revised in the global environment.

Examples

if (FALSE) {
library(matools)

summary_array_names <- c("analysis_summary", "spike_counts_all_cells")

for (name in summary_array_names) {
  create_summary_array(
    matools_env$parameters,
    name,
    matools_env$experiment_types
  )
}

fill_summary_array(
  matools_env$experiment_id,
  "file_name",
  df,
  analysis_summary,
  "analysis_summary"
)


rm(list = summary_array_names)
}