Entering edit mode
I am trying to use BioMart. Selecting a database works:
mart = useMart(host="useast.ensembl.org", biomart="ENSEMBL_MART_ENSEMBL", dataset="mmusculus_gene_ensembl", verbose=T)
If I try to get annotations using TSS featureType, it takes a few seconds, but works:
martAnnot = getAnnotation(mart=mart, featureType="TSS")
However, if I use Exon:
martAnnot = getAnnotation(mart=mart, featureType="Exon")
It fails after several minutes:
Error in value[[3L]](cond) : Request to BioMart web service failed. Verify if you are still connected to the internet. Alternatively the BioMart web service is temporarily down.
If the TSS works, then the connection and the service are both functional. I tried repeating both several times with same results. What is going on?
It looks like you lost the internet connection or your connection is not stable.
Maybe you want to have a try to use local annotations like this:
library(ChIPpeakAnno)
library(EnsDb.Mmusculus.v79)
exonAnno <- annoGR(EnsDb.Mmusculus.v79, feature="exon")
If it's the internet connection, then why do I not have problems with TSS? I repeated this multiple times over the course of several days.
Using EnsDb* packages limits me to just the three genomes that are available and just the build versions that are available.
I got it. It is a timeout error. It will be fix in next release version (2 or 3 days later). Thank you for reporting that.
Actually, it's pretty straightforward and easy to build EnsDb objects on any species/Ensembl release based on GTF files fetched from AnnotationHub or downloaded directly from the Ensembl ftp server:
Great!. I will add this into development version of ChIPpeakAnno to build EnsDb or TxDb.