Hi,
I'm having difficulty using the getBM function. I'm trying to download the names of snps located within a certain region (of chromosome 15 for a particular transcript) I've tried several versions but to no avail. I did notice that the example in the biomart vignette did not work either (third example down).
snpmart <- useMart(host="www.ensembl.org", biomart="ENSEMBL_MART_SNP", dataset="hsapiens_snp")
snps <- getBM(attributes=c("refsnp_id","allele","chrom_start","chrom_strand"),
filters = c("chr_name","start","end"),
values = list(15,67065845,67195195), mart = snpmart)
snps <- getBM(attributes=c("refsnp_id","allele","chrom_start","chrom_strand"),
filters = c("chromosomal_region"),
values = list(1:67065845:67065900), mart = snpmart)
getBM(c('refsnp_id','allele','chrom_start','chrom_strand'),
filters = c('chr_name','chrom_start','chrom_end'),
values = list(8,148350,148612), mart = snpmart)
"Error in getBM(c("refsnp_id", "allele", "chrom_start", "chrom_strand"), :
Invalid filters(s): chrom_start, chrom_end
Please use the function 'listFilters' to get valid filter names"
I'm talking to our BioMart team and I'll get back to you when I know more.
Many thanks for this information - sorry to hear it is a big job for the variants.