insideCnvs: Returns a vector of T/F depending on whether SNPs are in CNV...

Description Usage Arguments Value Examples

View source: R/pointsWithin.R

Description

Returns a vector of T/F depending on whether SNPs are in CNV regions

Usage

1
insideCnvs(posList, cnvs)

Arguments

posList

Dataframe ($chr / $pos)

cnvs

Dataframe ($chr / $start / $end)

Value

a T/F vector of whether the positions are in the CNVs

Examples

 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)

JEFworks/badger documentation built on May 7, 2019, 7:40 a.m.