get_all_variants: A tools4ukbb function Function output: a dataframe with three...

get_all_variantsR Documentation

A tools4ukbb function Function output: a dataframe with three columns: variants, chromosome, and index, which, respectfully indicate the name of the variant, the chromosome they are on, and their index (per chromosome).

Description

A tools4ukbb function Function output: a dataframe with three columns: variants, chromosome, and index, which, respectfully indicate the name of the variant, the chromosome they are on, and their index (per chromosome).

Usage

get_all_variants(pattern, directory, variants)

Arguments

pattern

the pattern by which you are labeling your chromosomes (eg: for files of pattern sample3_chr2_date.pvar, chromsome = "chr" OR for s1_c2_date.pvar, chromosome = "c")

directory

the directory with your pvar, pgen, and psam files

variants

a list of variants you are interested in

Examples

get_all_variants()

Lab-Jaiswal/tools4ukbb documentation built on May 12, 2022, 9:11 a.m.