annotate_with_nearest_gene: Get the nearest gene for one or more snps

Description Usage Arguments Value Examples

View source: R/get_genes_and_annotation.R

Description

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)

Usage

1
annotate_with_nearest_gene(variants, protein_coding_only = F)

Arguments

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)

Value

the input dataframe with Gene_Symbol as an additional column

Examples

1
2
3
4
## Not run: 
annotate_with_nearest_gene(variants)

## End(Not run)

wuxi-nextcode/topR documentation built on Dec. 23, 2021, 6:13 p.m.