Description Usage Arguments Details Value Author(s) Examples
Given a GRanges object of SNPs and a SNPlocs annotation, this function attempts to replace the names of the GRanges object entries with rs-IDs.
1 2 3 4  | getSnpIdFromLocation(GR, ...)
## S4 method for signature 'GRanges'
getSnpIdFromLocation(GR, SNPloc, return.vector = FALSE, verbose = TRUE)
 | 
GR | 
 A   | 
... | 
 arguments to pass on  | 
SNPloc | 
 A   | 
return.vector | 
 Setting   | 
verbose | 
 Setting   | 
This function is used to try to identify the rs-IDs of SNPs in a GRanges object.
getSnpIdFromLocation returns the same GRanges object it was
given with, but with updated with rs.id information.
Jesper R. Gadin, Lasse Folkersen
1 2 3 4 5 6 7 8 9 10  | is_32bit_windows <- .Platform$OS.type == "windows" &&
                  .Platform$r_arch == "i386"
if (!is_32bit_windows && require(SNPlocs.Hsapiens.dbSNP144.GRCh37)) {
	#load example data
	data(ASEset)
  #get counts at the three positions specified in GRvariants
  updatedGRanges <- getSnpIdFromLocation(rowRanges(ASEset),
    SNPlocs.Hsapiens.dbSNP144.GRCh37)
}
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.