filter.fsa | R Documentation |
Replaces the requested column of values by the output of filter
, possibly after masking values out of a specified index or bp range.
filter.fsa(x, channel, ..., from = NA, to = NA, units = "bp")
x |
An object of class |
channel |
Single character value, the name of the channel used for size markers. |
... |
Further arguments to be passed to |
from |
Single numeric value, the starting offset (integer index or numeric bp) to consider. No subsetting will be applied if |
to |
Single numeric value, the last offset (integer index or numeric bp) to consider. No subsetting will be applied if |
units |
Either "index" or "bp", defining the unit of |
Returns x
, with updated content.
Sylvain Mareschal
read.fsa
# Example FSA file provided
fsa <- read.fsa(system.file("extdata/fsa_GEP/A5918.fsa", package="FSAtools"))
fsa <- align.fsa(fsa)
# Profile before filtering
plot(fsa)
# Plot subset of the profile (base pairs)
fsa <- filter.fsa(fsa, channel="ROX", filter=20, from=40, to=140, units="bp")
# Profile after filtering
plot(fsa)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.