R/get_genes_and_annotation.R
annotate_with_nearest_gene.Rd
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(variants, protein_coding_only = F)
variants | a dataframe of variant positions (CHROM and POS) |
---|---|
protein_coding_only | If set to TRUE only annotate with protein coding genes (the default value is FALSE) |
the input dataframe with Gene_Symbol as an additional column
if (FALSE) { annotate_with_nearest_gene(variants) }