get_nearest_genes: Find genes that are closest to a SNP.

View source: R/gwar.R

get_nearest_genesR Documentation

Find genes that are closest to a SNP.

Description

Find genes that are closest to a SNP.

Usage

get_nearest_genes(gwas_table = NULL, n_hit = 1)

Arguments

gwas_table

Object returned from format_gwas function

n_hit

The number of SNPs that should be looked up.

Details

Based on a GWAS table, returns the gene annotation that is closest to each SNP for the number of SNP specified. This function always returns the closest annotation. To limit the lookup range use get_overlapping_genes. Lookup is done via ensembl plants; requires internet connection.

See Also

format_gwas

get_overlapping_genes


Gregor-Mendel-Institute/gwaR documentation built on Feb. 8, 2023, 8:34 p.m.