View source: R/coords_to_rsids.R
coords_to_rsids | R Documentation |
Get RSIDS from SNP coordinates using Bioconductor genome references.
coords_to_rsids(
dat,
genome_build = "hg19",
drop_unannotated = TRUE,
drop_duplicates = TRUE,
SNPname = "SNP",
verbose = TRUE
)
dat |
data.table or
data.frame with SNP positions in the columns
|
genome_build |
Which genome build |
drop_unannotated |
Drop SNPs that RSIDs couldn't be found for. |
drop_duplicates |
Drop any duplicate SNPs rows. |
SNPname |
Name of the new column with RSIDs. |
verbose |
Print messages. |
data.table with new columns for RSIDs.
dat <- echodata::BST1[seq(5),]
data.table::setnames(dat,"SNP","SNP_old")
dat_annot <- coords_to_rsids(dat = dat)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.