read_acq: Import Acqknowledge ACQ files into data.frames

View source: R/read_physio.R

read_acqR Documentation

Import Acqknowledge ACQ files into data.frames

Description

Import Acqknowledge ACQ files into data.frames

Usage

read_acq(
  acq_files,
  hdf5_output_dir = NULL,
  keep_hdf5 = TRUE,
  acq2hdf5_location = NULL,
  ...
)

Arguments

acq_files

character vector of acq files to be converted to HDF5, then imported as data.frame

hdf5_output_dir

location for converted hdf5 files produced by acq2hdf5. Passed to acq2hdf5.

keep_hdf5

logical indicating whether to retain hdf5 file after import completes. Default: TRUE

acq2hdf5_location

path to acq2hdf5 binary, installed by the bioread python package.

Details

This function calls the acq2hdf5 wrapper R function. The converted HDF5 files are then parsed by biopac_hdf5_to_dataframe, which relies heavily on the data.table package to build the data.frame containing physiological data.

Value

a list of

Examples

## Not run: 
   acq_data <- read_acq("~/Data_Analysis/neuromap/s4_behav_data/physio/data/nmap016/nmap016.acq",
                 hdf5_output_dir = "~/temp_acq",
                 acq2hdf5_location = "~/Library/Python/3.7/bin/acq2hdf5")

## End(Not run)

PennStateDEPENdLab/experiment.pipeline documentation built on Sept. 4, 2024, 10:55 a.m.