Description Usage Arguments Value Examples
Returns a vector of T/F depending on whether SNPs are in CNV regions
1 | insideCnvs(posList, cnvs)
|
posList |
Dataframe ($chr / $pos) |
cnvs |
Dataframe ($chr / $start / $end) |
a T/F vector of whether the positions are in the CNVs
1 2 3 4 5 6 7 8 9 10 | snpList <- data.frame(
'chr' = c('chr1', 'chr1', 'chr1', 'chr2', 'chr2', 'chr3'),
'pos' = c(7, 100, 101, 0, 10, 5)
)
cnv <- data.frame(
'chr' = c('chr1', 'chr2', 'chr3'),
'startPos' = c(5, 0, 1),
'endPos' = c(100, 20000, 2)
)
insideCnvs(snpList, cnv)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.