Description Usage Arguments Details Value Examples
Drop all paired or unpaired reads. Relies on the accuracy and disjoint nature of the FIRST_OF_PAIR and SECOND_OF_PAIR flags, and that each paired-end read has a unique id (qname). Maintains multiple alignments for any kept read ends.
1 | pairedReads(sam, paired = TRUE)
|
sam |
The Sam object to filter. |
paired |
Set |
This allows dropping unpaired reads after filtering that might only drop one read of a pair, such as filtering by quality.
A sam object with only paired reads, or with only unpaired reads.
1 2 3 4 5 6 | ## Not run:
sam <- Sam("someFile")
pairedOnly <- pairedReads(sam)
unpairedOnly <- pairedReads(sam, FALSE)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.