Hi,
I can't retrieve the flanking regions of my snps.
I used:
snpmart<- useMart("ENSEMBL_MART_SNP",dataset = "hsapiens_snp")
TEST<- getBM(attributes = c("refsnp_id","upstream_flank","downstream_flank"), filters = c("snp_filter","upstream_flank","downstream_flank"), checkFilters = FALSE, values = list(proxy_list,20,20), mart = snpmart)
where proxy_list is a list of several snps
and it gave me this error:
Error in getBM(attributes = c("refsnp_id", "upstream_flank", "downstream_flank"), : Query ERROR: caught BioMart::Exception: non-BioMart die(): Can't use an undefined value as an ARRAY reference at /ensemblweb/wwwmart/www_86/biomart-perl/lib/BioMart/Dataset/GenomicSequence.pm line 396.
sessionInfo()
R version 3.3.2 (2016-10-31) Platform: x86_64-pc-linux-gnu (64-bit) Running under: Ubuntu 16.04.1 LTS
Hope you can help me out
cheers,
ana
Hi Mike,
This is great, thanks very useful. I was wondering is there also an option to do this for chr:bp format? Some of my variants do not have an rsid....
Might be best to start a new question with an example of the data you have and what you're trying to get out.