snp2ensembl: Map SNPs to Ensembl genes.

View source: R/db.R

snp2ensemblR Documentation

Map SNPs to Ensembl genes.

Description

Maps SNPs from a GWAS experiment to genes.

Usage

snp2ensembl(gwas, organism = 9606, flank = 0)

Arguments

gwas

A SnpMatrix object with the GWAS information.

organism

Tax ID of the studied organism. The default is 9606 (human).

flank

A number with the flanking regions around genes to be considered part of the gene i.e. SNPs mapped to them will be considered mapped to the gene.

Value

A data.frame with two columns: one for the SNP and another for the gene it has been mapped to.


hclimente/martini documentation built on Feb. 26, 2024, 6:23 p.m.