I've been caught out by this before. It's confusing to still find those old packages, but at some point ensembldb moved away from the individual annotation packages and onto the Bioconductor AnnotationHub.
You can find the Ensembl 105 annotation on there e.g.
library(AnnotationHub)
ah <- AnnotationHub()
#> snapshotDate(): 2021-10-20
query(ah, c("EnsDb", "v105"))
#> AnnotationHub with 243 records
#> # snapshotDate(): 2021-10-20
#> # $dataprovider: Ensembl
#> # $species: Zonotrichia albicollis, Zalophus californianus, Xiphophorus macu...
#> # $rdataclass: EnsDb
#> # additional mcols(): taxonomyid, genome, description,
#> # coordinate_1_based, maintainer, rdatadateadded, preparerclass, tags,
#> # rdatapath, sourceurl, sourcetype
#> # retrieve records with, e.g., 'object[["AH97950"]]'
#>
#> title
#> AH97950 | Ensembl 105 EnsDb for Anser brachyrhynchus
#> AH97951 | Ensembl 105 EnsDb for Astatotilapia calliptera
#> AH97952 | Ensembl 105 EnsDb for Anolis carolinensis
#> AH97953 | Ensembl 105 EnsDb for Amphilophus citrinellus
#> AH97954 | Ensembl 105 EnsDb for Amazona collaria
#> ... ...
#> AH98188 | Ensembl 105 EnsDb for Xiphophorus couchianus
#> AH98189 | Ensembl 105 EnsDb for Xiphophorus maculatus
#> AH98190 | Ensembl 105 EnsDb for Xenopus tropicalis
#> AH98191 | Ensembl 105 EnsDb for Zonotrichia albicollis
#> AH98192 | Ensembl 105 EnsDb for Zalophus californianus
Hopefully the AnnotationHub documentation should help you work out how to retrieve the species you want.
... and to get you started with that (retrieving database for species of interest) and subsequent usage you may want to have a look at the code posted in this thread: EnsDb.Rnorvegicus for Rnor6
That is what I was using.
AnnotationHub()
is explained in theEnsemblDB
vignettes under "Getting EnsDb databases ". Here is my code:The most recent one is v103.
I am trying to get AnnotationHub or EnsemblDB to create one for v105.
What version of R and
AnnotationHub
are you using? Release 105 is definitely available for the current Bioconductor release (3.14) with R 4.1.Yup, my R is outdated by a single release and I cant get Bioconductor 3.14 because of that
>BiocManager::install()
outputs:When I try
BiocManager::install("EnsDb.Hsapiens.v105")
, I get "package 'EnsDb.Hsapiens.v105' is not available for Bioconductor version '3.14'" in R v4.1.The data is available via the AnnotationHub.
This solution has been working for me. However, today I was surprised by an error message when trying to print the
data
object:"Error: no such table: gene"
I also get lots of error messages when trying to use
data
for downstream applications, such as inlocuszoomr::locus
.Update:
data <- ah[["AH98047", force = TRUE]]
fixed the problem.
The
force=TRUE
option should be used sparingly and really only once. This options forces re-download of the data (costing us egress) instead of using the locally cached data. It's acceptable when necessary but wanted to point out this distinction.