get_genotype | R 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 genotypes_df, DOES NOT require a genotype list and, thus, you do not need to know what chromosome your selected variants are located on If the variants you request are not on the chromosomes in your directory, you will get an error
get_genotype(variant_df, directory, variants)
directory |
the directory with your pvar, pgen, and psam files |
variants |
a list of variants you are interested in |
variants_df |
dataframe with 3 columns: variant names, their chromosome, and their index. This is generated via |
genotypes_df()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.