Thanks again for the hard work on the Gviz package. I find it really useful. I encountered a small issue concerning Gene tracks from BioMarts. Since I occasionally work with older genome assemblies I sometimes need to use older versions of the Ensembl Biomarts. E.g.:
useMart("ENSEMBL_MART_ENSEMBL", dataset = "hsapiens_gene_ensembl",host="feb2014.archive.ensembl.org")
The problem is now that the Gviz function 'BiomartGeneRegionTrack' throws the following error since it cannot find an annotation column in the old Biomart that is there in the current Ensembl biomart:
> BiomartGeneRegionTrack(genome=assembly,biomart=mart,chromosome=chrom,start=start,end=end,name="ENSEMBL genes")
Error in getBM(attributes, filters = filterNames, values = filterValues, :
Invalid attribute(s): external_gene_name
Please use the function 'listAttributes' to get valid attribute names
> traceback()
7: stop(paste("Invalid attribute(s):", paste(attributes[invalid],
collapse = ", "), "\nPlease use the function 'listAttributes' to get valid attribute names"))
6: getBM(attributes, filters = filterNames, values = filterValues,
bmHeader = FALSE, mart = .Object@biomart, uniqueRows = TRUE)
5: .local(.Object, ...)
4: initialize(value, ...)
3: initialize(value, ...)
2: new("BiomartGeneRegionTrack", start = start, end = end, chromosome = chromosome,
strand = strand, biomart = biomart, name = name, genome = genome,
stacking = stacking, filters = filters, ...)
1: BiomartGeneRegionTrack(genome = assembly, biomart = mart, chromosome = chrom,
start = start, end = end, name = "ENSEMBL genes")
It would be great if you could look into this. Thanks a lot in advance!