are_in_lr: Is the specific variant/row located within the provided...

Description Usage Arguments Value See Also Examples

Description

are_in_lr indicates which variants from the variant file lie within the provided linkage region.

Usage

1
are_in_lr(chr = NULL, startbp = NULL, endbp = NULL, vars = NULL)

Arguments

chr

The linkage region chromosome. Takes values from 1 to 22 (autosomal) and X, Y, M (sex and mitochondrial).

startbp, endbp

The start and end base pair coordinates.

vars

The data frame of vars.

Value

A logical vector of length equal to nrow(vars), indicating if the row is within any of the linkage regions.

See Also

Logic.

base::Logic.

Examples

1
2
3
4
5
## Not run: 
# assumes you have a vars data frame
big_logical_vec <- are_in_lr(chr = 4, startbp = 10000, endbp = 50000, vars)

## End(Not run)

bahlolab/varpr documentation built on May 11, 2019, 5:26 p.m.