View source: R/convert_rs_to_loc.R
convert_loc_to_rs | R Documentation |
Function will convert genomic co-ordinates to rs ids.
convert_loc_to_rs(df, dbSNP)
df |
dataframe. Dataframe containing SNPs as genomic locations. Must
contain 2 columns labelled |
dbSNP |
BS genome reference snps (choose appropriate dbSNP build dependent on genome build). |
Dataframe with rs ids and CHR:BP locations.
Some CHR:BP locations have more than one associated rs id, thus some filtering for duplicates may have to occur after conversion. We leave this to the user to decide how they wish to filter.
Some CHR:BP locations may not have an associated rs id – these will be represented by NA in the SNP column after conversion.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.