reportGaps | R Documentation |
This function takes set of target and query ranges and reports all gaps in target ranges (Default behavior) and their corresponding query ranges. This behavior is reversed using 'invert' parameter. Note that target and query ranges are expected to be 1-to-1 alignments as reported in a PAF format.
reportGaps(t.ranges = NULL, q.ranges = NULL, invert = FALSE)
t.ranges |
A |
q.ranges |
A |
invert |
If set to |
A GRanges-class
object reporting gaps as well as upstream (up) and downstream (down)
alignments around each gap.
David Porubsky
## Define target and query ranges to process
target.ranges <- GenomicRanges::GRanges(
seqnames = "target",
IRanges::IRanges(
start = c(1, 111, 150),
end = c(100, 150, 200)
)
)
query.ranges <- GenomicRanges::GRanges(
seqnames = "query",
IRanges::IRanges(
start = c(1000, 1100, 1301),
end = c(1100, 1200, 1500)
)
)
## Report gaps within target ranges
reportGaps(t.ranges = target.ranges, q.ranges = query.ranges)
## Report gaps within query ranges
reportGaps(t.ranges = target.ranges, q.ranges = query.ranges, invert = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.