Description Usage Arguments Value Author(s) Examples
Aligned reads are narrowed to the target region. In the case of reads with deletions spanning the boundaries of the target, reads are narrowed to the start of the deletion,
1 2 3 4 5 | narrowAlignments(alns, target, ...)
## S4 method for signature 'GAlignments,GRanges'
narrowAlignments(alns, target, ...,
reverse.complement, verbose = FALSE)
|
alns |
A GAlignments object including a metadata column "seq" containing the sequence |
target |
A GRanges object |
... |
additional arguments |
reverse.complement |
Should the aligned reads be reverse complemented? |
verbose |
(Default: FALSE) |
The narrowed alignments (GAlignments),
Helen Lindsay
1 2 3 4 5 6 | bam_fname <- system.file("extdata", "gol_F1_clutch_2_embryo_4_s.bam",
package = "CrispRVariants")
bam <- GenomicAlignments::readGAlignments(bam_fname, use.names = TRUE)
target <- GenomicRanges::GRanges("18", IRanges::IRanges(4647377, 4647399),
strand = "+")
narrowAlignments(bam, target, reverse.complement = FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.