Description Usage Arguments Details Value See Also Examples
Apply a filter to a sam object, returing a new sam object with the sam header
but only containing 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 |
NOTE: Does not add a @PG header line nor modify any PG:Z tag on any read.
A sam object with only the reads that passed the filter FUNC
.
Sam, readIsChimeric,
1 2 3 4 5 | ## Not run:
sam <- Sam("someFile")
hivIntegrationSam <- samReadFilter( sam, "readIsOnRef", "^chrMT$" )
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.