SRFilter-class | R Documentation |
Objects of this class are functions that, when provided an appropriate object from the ShortRead package, return logical vectors indicating which parts of the object satisfy the filter criterion.
A number of filters are built-in (described below); users are free to
create their own filters, using the srFilter
function.
Objects can be created through srFilter
(to create a
user-defined filter) or through calls to constructors for predefined
filters, as described on the srFilter
page.
.Data
:Object of class "function"
taking a
single named argument x
corresponding to the ShortRead
object that the filter will be applied to. The return value of the
filter function is expected to be a logical vector that can be
used to subset x
to include those elements of x
satisfying the filter.
name
:Object of class "ScalarCharacter"
representing the name of the filter. The name is useful for
suggesting the purpose of the filter, and for debugging failed
filters.
Class "function"
, from data part.
Class ".SRUtil"
, directly.
Class "OptionalFunction"
, by class "function", distance 2.
Class "PossibleMethod"
, by class "function", distance 2.
signature(fun = "SRFilter")
: Return the function
representing the underlying filter; this is primarily for
interactive use to understanding filter function; usually the
filter is invoked as a normal function call, as illustrated below
signature(x = "SRFilter")
: Return, as a
ScalarCharacter
, the name of the function.
signature(object = "SRFilter")
: display a brief
summary of the filter
signature(from = "SRFilter", to =
"FilterRules")
: Coerce a filter to a
FilterRules
object of
length one.
signature(x = "SRFilter", ...)
: Combine filters into a
single FilterRules
object.
Martin Morgan <mtmorgan@fhcrc.org>
srFilter
for predefined and user-defined filters.
## see ?srFilter
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.