Learn R Programming

gprofiler2 (version 0.1.4)

gsnpense: Convert SNP rs numbers to genes.

Description

Interface to the g:Profiler tool g:SNPense that maps SNP rs identifiers to chromosome positions, genes and variant effects. Available only for human SNPs.

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.

Examples

Run this code
# NOT RUN {
gsnpense(c("rs11734132", "rs7961894", "rs4305276", "rs17396340", "rs3184504"))
# }

Run the code above in your browser using DataLab