Description Usage Arguments Value See Also Examples
Apply a filter to a sam object and count the reads for which the filter
FUNC
returns TRUE
. Uses adply
to apply this
filter to each read alignment. Many of the parameters are just pass-through
parameters for adply
. These all begin with a ".
"
to distinguish them from potential parameters to the function as they come
after the ...
in the function definition. No attempt is made to keep
or delete both ends of a paired end read if one end passes and one end fails
the filter.
1 2 |
sam |
A Sam object |
FUNC |
A function whose first parameter is a single read and that
returns a single |
... |
Other parameters to pass to |
.progress |
Progress bar; see |
.inform |
Extra error handling; see |
.parallel |
Use the parallel package; see |
.paropts |
Options if using the parallel package; see |
.id |
Id column; see |
The count of matching reads
samReadFilter
1 2 3 4 5 | ## Not run:
sam <- Sam("someFile")
hivIntegrationCount <- samReadCount( sam, "readIsOnRef", "^chrMT$" )
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.