matchpos | R Documentation |
Function to match a set of variants to a reference by chromosome and/or position and/or SNP/rsIDs
matchpos(
tomatch,
ref.df,
auto.detect.tomatch = T,
auto.detect.ref = T,
chr = "",
ref.chr = "",
pos = "",
ref.pos = "",
snp = "",
ref.snp = "",
ref = "",
ref.ref = "",
alt = "",
ref.alt = "",
exclude.ambiguous = F,
silent = F,
rm.duplicates = F
)
tomatch |
A data.frame or data.table |
ref.df |
A data.frame or data.table |
rm.dumplicates |
Remove SNPs with more than one match |
If REF/ALT alleles available, will also check them for reverse coding. Specify the exclude.ambiguous option for possible sense/antisense ambiguity.
matched postions of SNPs
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.