Hi,
I have a list of INDELS in their rsid format, and I am trying to convert this list from the rsids to a format like the one coming out of the imputation from MACH/Minimac, i.e. chr:pos:ALLELES.
I have tried using biomaRt to find the chr, positions, and alleles corresponding to the rsids like this:
library(biomaRt)
snpmart = useMart("snp", dataset="hsapiens_snp")
getBM(c("refsnp_id","allele","chr_name","chrom_start"), values="rs200623867", filters="snp_filter", mart=snpmart)
But I get this for an INSERTION:
refsnp_id allele chr_name chrom_start
rs146107628 -/T 10 100002842
That I would like to convert to this format:
10:100002841:C_CT I R
While for a DELETION:
rs200623867 G/- 10 100003302
That I would like to convert to this:
10:100003301:AG_A D R
So it looks like I am missing the information about the other allele when using biomaRt.
Is there maybe a better approach to completing this convertion in R?
Thank you!
Simone
indels
r
biomart