split.abf2 {abf2} | R Documentation |
abf2
trace on tag boundaries.
Splits a data trace from an abf2
object (loaded by abfload
into
separate segments identified by the file tags.
## S3 method for class 'abf2' split(x, f=NULL, drop=FALSE, adc = 1, lag = 0.3, ...)
x |
An |
f |
Unused argument for compatibility with generic |
drop |
Unused argument for compatibility with generic |
adc |
Index of the ADC channel to split. |
lag |
An offset to be discarded after the start of a tag. It will typically take time for an
experimental change denoted by a tag to take effect. In particular for voltage changes,
there is a short delay between specifying the new voltage and it being applied by the
amplifier. The default 0.3 second |
... |
Additional parameters (currently ignored). |
A list of objects of class abf2split
, each including the following
fields:
trace |
A vector containing the actual sample data for split segment. |
s |
A vector containing the times of each of the samples in |
level |
The prevailing voltage level, if known. |
index |
The index of this tag in the tags table (hence also this segment in the result list). |
comment |
The comment from the tag associated with this segment. |
Matthew Caldwell <m.caldwell@ucl.ac.uk>
## Not run: # load an ABF file ab <- abfload() # split the 2nd channel abx <- split(ab, adc=2) # plot the first segment plot(abx[[1]]) ## End(Not run)