gr.round | R Documentation |
up = F
then return the "first" range, otherwise the last range
3) If q in Q is fully outside of S (ie fully inside not S) then return the start-1
(if up = T
) or end+1
(if up = F
)
of the matching range in not SRound a set of GRanges to another set
"rounds" a set of query ranges Q to a given interval set S using the following rule:
1) If q in Q is partially / fully within S then return intersection of q with S.
2) If q intersects multiple ranges in S and up = F
then return the "first" range, otherwise the last range
3) If q in Q is fully outside of S (ie fully inside not S) then return the start-1
(if up = T
) or end+1
(if up = F
)
of the matching range in not S
gr.round(Q, S, up = TRUE, parallel = FALSE)
Q |
Query |
S |
Subject |
up |
[default TRUE] See description. |
parallel |
[default FALSE] If |
Rounded GRanges
## Not run: query <- GRanges(1, IRanges(c(100,110),width=201), seqinfo=Seqinfo("1", 500))
subject <- GRanges(1, IRanges(c(160,170),width=201), seqinfo=Seqinfo("1", 500))
gr.round(query, subject)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.