View source: R/getGeneSymbol.R
getGeneSymbol | R Documentation |
Get gene symbol from a list of SNPs
getGeneSymbol( x, snpCol = 1, chrCol = 2, posCol = 3, db = TxDb.Hsapiens.UCSC.hg19.knownGene )
x |
data.frame containing: SNP name, chromosome and genomic position. |
snpCol |
column of x having the SNP name. Default is 1. |
chrCol |
column of x having the SNP chromosome. Default is 2. |
posCol |
column of x having the SNP position. Default is 3. |
db |
reference genome. Default is 'TxDb.Hsapiens.UCSC.hg19.knownGene' |
a data.frame having initial information and gene symbol
snps = c('rs58108140','rs189107123','rs180734498','rs144762171') chr = c('chr1','chr1','chr1','chr1') pos = c(10583, 10611, 13302, 13327) x <- data.frame(snps, chr, pos ) getGeneSymbol(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.