genotypes_df: A tools4ukbb function Function output: a dataframe with one...

genotypes_dfR Documentation

A tools4ukbb function Function output: a dataframe with one eid column and one column per variant you select. The variant columns contain the genotypes of each individual. This function, unlike get_genotypes, requires a genotype list and, thus, knowledge of the chromosome your selected variants are located on

Description

A tools4ukbb function Function output: a dataframe with one eid column and one column per variant you select. The variant columns contain the genotypes of each individual. This function, unlike get_genotypes, requires a genotype list and, thus, knowledge of the chromosome your selected variants are located on

A tools4ukbb function Function output: a dataframe with one eid column and one column per variant you select. The variant columns contain the genotypes of each individual.

Usage

genotypes_df(variants, pgen_list, psam)

genotypes_df(variants, pgen_list, psam)

Arguments

variants

a list of variants you are interested in

variants_df

dataframe with 3 columns: variant names, their chromosome, and their index

directory

the directory with your pvar, pgen, and psam files

Examples

genotypes_df()
genotypes_df()

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