Description Usage Arguments Examples
Determine if a point is within a range
1 | pointsWithin(pos, ranges)
|
pos |
Dataframe with chr and pos columns |
ranges |
Dataframe with chr, start, and end columns |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | snp1 <- data.frame(
'chr' = 'chr1',
'pos' = 7
)
cnv <- data.frame(
'chr' = c('chr1', 'chr2', 'chr3'),
'startPos' = c(5, 0, 1),
'endPos' = c(100, 20000, 2)
)
pointsWithin(snp1, cnv)
# no hits
snp2 <- data.frame(
'chr' = 'chrX',
'pos' = 7
)
pointsWithin(snp2, cnv)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.