Learn R Programming

gprofiler2 (version 0.2.3)

gsnpense: 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)

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.

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.

Author

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

Examples

Run this code
gsnpense(c("rs11734132", "rs7961894", "rs4305276", "rs17396340", "rs3184504"))

Run the code above in your browser using DataLab