abfload {abf2}R Documentation

Load an ABF2 file


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


abfload(filename = NULL)



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.


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:


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


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


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.


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.


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

See Also

plot.abf2, split.abf2


## Not run: 
# either supply a filename...
ab <- abfload("yourfile.abf")

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

## End(Not run)

[Package abf2 version 0.7-1 Index]