Loading Ensembl 98 EnsDb from Annotation Hub fails with database disk image malformed error
1
0
Entering edit mode
AB ▴ 110
@ab-8975
Last seen 2 days ago
United States

Hi ,

I have some single cell ATAC seq data that I want to analyze using Signac. I want to add gene annotations using Annotation Hub. But I keep getting this error


library(AnnotationHub)
ah <- AnnotationHub()

# Search for the Ensembl 98 EnsDb for Homo sapiens on AnnotationHub
query(ah, "EnsDb.Hsapiens.v98")

ensdb_v98 <- ah[["AH75011"]]

loading from cache
Error: failed to load resource
  name: AH75011
  title: Ensembl 98 EnsDb for Homo sapiens
  reason: database disk image is malformed
In addition: Warning message:
Couldn't set synchronous mode: database disk image is malformed
Use `synchronous` = NULL to turn off this warning.

I uninstalled and reinstall the package. Didn't work. I guess this is a problem with the file in the database. Any thoughts or suggestions?

Thanks, AB

signac AnnotationHub • 503 views
ADD COMMENT
1
Entering edit mode
shepherl 4.1k
@lshep
Last seen 4 hours ago
United States

What is your sessionInfo()? I just tried locally and it works fine so there might have been a bad or interrupted download when initially retrieving the file.

> ensdb_v98 <- ah[["AH75011"]]
downloading 1 resources
retrieving 1 resource
  |======================================================================| 100%

loading from cache
require("ensembldb")

This should only be done once or it defeats the point of caching, and will incur a cost to the project each time something is downloaded, but can you try force re-downloading the file using the following syntax. There is an issue open suggesting a safe guard against this that I hope to look into soon.

library(AnnotationHub)
ah <- AnnotationHub()
ensdb_v98 <- ah[["AH75011", force=TRUE]]
ADD COMMENT
0
Entering edit mode

Force=TRUE did the trick. Thank you.

ADD REPLY

Login before adding your answer.

Traffic: 595 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6