abfload: Load an ABF2 file

Description Usage Arguments Value Author(s) See Also Examples

Description

Loads an Axon ABF2 file. Currently only gap-free recordings are supported.

Usage

1
abfload(filename = NULL)

Arguments

filename

Name of the ABF file to load. If this is NULL (the default), invokes file.choose() to allow the user to select a file using the usual OS dialog.

Value

A list object of class abf2. This includes a large number of elements corresponding to fields in the ABF file header, most of which are of little interest and are not documented here (see the source code if you really care). Fields that are actually important include:

traces

A matrix with a row for each recorded signal, containing the actual signal data.

s

The time (in seconds) corresponding to each recorded sample (ie the columns) of traces.

tags

A data frame containing any tags recorded in the file, including the time, a voltage change (if relevant) and the comment string attached to the tag. For reasons of consistency, there will always be at least one voltage tag, for time 0. Note however that ABF files do not record the initial voltage, so the value of 0 associated with this tag is typically incorrect.

ADC

A list holding information about each recorded trace in the file. It should have an entry for each row in traces. Each such entry is itself a list, which again includes a lot of fields that are typically not interesting and which may actually be incorrect depending on the recording configuration. The most useful fields here are probably name and units, which contain text strings from the recording protocol that describe the signal.

Author(s)

Matthew Caldwell <m.caldwell@ucl.ac.uk>

See Also

plot.abf2, split.abf2

Examples

1
2
3
4
5
6
7
8
## Not run: 
# either supply a filename...
ab <- abfload("yourfile.abf")

# or omit it to invoke file selection dialog
ab <- abfload()

## End(Not run)

abf2 documentation built on May 1, 2019, 6:47 p.m.