gsnpense: Convert SNP rs identifiers to genes.

View source: R/gprofiler2.R

gsnpenseR Documentation

Convert SNP rs identifiers to genes.

Description

Interface to the g:Profiler tool g:SNPense (https://biit.cs.ut.ee/gprofiler/snpense) that maps SNP rs identifiers to chromosome positions, genes and variant effects. Available only for human variants.

Usage

gsnpense(query, filter_na = TRUE)

Arguments

query

vector of SNP IDs to be translated (should start with prefix 'rs').

filter_na

logical indicating whether to filter out results without a corresponding target name.

Value

The output is a data.frame which is a table closely corresponding to the web interface output. Columns 'ensgs' and 'gene_names' can contain list of multiple values.

The result fields are further described in the vignette.

Author(s)

Liis Kolberg <liis.kolberg@ut.ee>, Uku Raudvere <uku.raudvere@ut.ee>

Examples

gsnpense(c("rs11734132", "rs7961894", "rs4305276", "rs17396340", "rs3184504"))

gprofiler2 documentation built on July 9, 2023, 6:06 p.m.