Learn R Programming

GenomicTools (version 0.2.9.7)

getRSLocation: Get the location of an SNP.

Description

This function gets the exact location of a SNPs, based on a specific database.

Usage

getRSLocation(rs, species=NULL)

Arguments

rs

SNP rs number

species

Species identifier

Value

A list with Chr and Location (BP) of an SNP.

Details

This function can download from any specifi ensembl database the location of an SNP (as given as RS number) for a specific species.

Examples

Run this code
# NOT RUN {
# Depending on the internet connection the following call
# can take up 10 seconds and hence does not pass the Cran
# checks. This is why it is wrapped into \dontrun 

  
# }
# NOT RUN {
    getRSLocation("rs16033432", species="Gallus_gallus")
  
# }

Run the code above in your browser using DataLab