is_gt_col: Which columns are genotype columns?

Description Usage Arguments Value See Also Examples

Description

is_gt_col uses grep to check which columns of the vars data frame contain the string "_GT".

Usage

1
is_gt_col(vars, pat = "_GT$")

Arguments

vars

The data frame of vars.

pat

character: the pattern which matches a typical genotype column (default: "_GT$").

Value

an atomic vector of the indices of the columns that yielded a match.

See Also

grep.

Examples

1
2
3
4
## Not run: 
is_gt_col(vars) # assumes you have a vars data frame

## End(Not run)

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