read_roi_data {lans2r}R Documentation

Read LANS data summary (.dac/.dat) files

Description

Reads the ion data (.dac/.dat) files for the given LANS analysis folder and returns the ROIs data in a concatenated data frame with identifier columns 'ROI' and 'variable' (=ions). Note that this only reads ion data files by default and not any derived data files (any ratio or other formulas evaluated by LANS). If zstacks (i.e. individual planes) are exported from LANS, they can be loaded as well (and are by default). The resulting data frame has a 'plane' column that keeps track of the plane, the value 'all' identifies the combined data for the ROI from all planes.

Usage

read_roi_data(
  dat_folder,
  ion_data_only = TRUE,
  load_zstacks = TRUE,
  quiet = FALSE
)

Arguments

dat_folder
  • the LANS dat directory with the ions' .dac files

ion_data_only
  • by default TRUE, i.e. ignores all non-ion data files

load_zstacks
  • whether to load any z_stacks found, by default TRUE

quiet
  • whether to report information on the loaded data or not

Value

concatenated data_frame with all the ROIs' data, with identifier columns 'plane', 'ROI' and 'variable'


[Package lans2r version 1.2.0 Index]