powered by
annotate_with_nearest_gene() Annotate the variant/snp with their nearest gene Required parameters is a dataframe of SNPs (with the columns CHROM and POS)
annotate_with_nearest_gene()
annotate_with_nearest_gene( variants, protein_coding_only = FALSE, build = 38, .chr_map = NULL )
the input dataframe with Gene_Symbol as an additional column
a dataframe of variant positions (CHROM and POS)
Logical, if set to TRUE only annotate with protein coding genes (the default value is FALSE)
A number representing the genome build. Set to 37 to change to build (GRCh37). The default is build 38 (GRCh38).
An internally used list which maps chromosome names to numbers.
if (FALSE) { variants <-get_lead_snps(CD_UKBB) annotate_with_nearest_gene(variants) }
Run the code above in your browser using DataLab