ExperimentHub
Dependencies & Environment
Package-intrinsic requirements from the Bioconductor landing page — reproduce in any R environment.
- Version: 3.2.0 · Bioconductor: 3.23 · R: ≥ 4.6
- Depends: BiocGenerics, AnnotationHub, BiocFileCache
- Imports: S4Vectors, BiocManager, rappdirs
- Install:
BiocManager::install("ExperimentHub")
When to Use
- Accessing Curated Datasets: Retrieving large files of curated data from experiments, publications, or training courses via the
ExperimentHubweb service. - Retrieving R Objects: Downloading specific R data objects like
SummarizedExperiment,ExpressionSet, orGAlignmentPairsdirectly into your session. - Interactive Exploration: Interactively querying and exploring available resources using
BiocHubsShiny.
When NOT to Use
- For accessing reference genome annotations, use
AnnotationHubbecauseExperimentHubis focused exclusively on experimental data.
Data Requirements
- Requires an internet connection to download files initially, which are then cached locally.
- Queries use string terms (e.g., "mus musculus" or "alpineData").
Key Parameters
- localHub: Set to
TRUEinExperimentHubto use only the local cache and avoid internet queries. - ask: Set to
FALSEinremoveCacheto bypass interactive prompts when deleting the cache. - appname: Used in
rappdirs::user_cache_dirto specify the package name (e.g., "ExperimentHub"). - which: Used in
tools::R_user_dirto specify the directory type (e.g., "cache").
Best Practices
- Use
queryto search for specific strings and filter theExperimentHubobject before downloading. - Check
snapshotDateand usepossibleDatesto ensure reproducibility with older versions of a snapshot. - Manage the default caching location using
tools::R_user_diror by setting theEXPERIMENT_HUB_CACHEenvironment variable.
Common Pitfalls
- Proxy Issues: Operating behind a proxy blocks downloads; fix by setting the
EXPERIMENT_HUB_PROXYenvironment variable or usingsetExperimentHubOption. - Permission Errors: Sharing a cache across multiple users causes access failures; fix by changing the group permissions of
BiocFileCache.sqliteandBiocFileCache.sqlite.LOCKtog+rw. - Lost Cache: Upgrading to newer versions changes the default cache location; fix by moving files to the new
tools::R_user_dirlocation or settingEXPERIMENT_HUB_CACHE.
Alternatives
- AnnotationHub: For retrieving annotation resources rather than experiment data.
- BiocHubsShiny: For a graphical interface to perform the same queries interactively.
Citations
- ExperimentHub Package Authors. ExperimentHub: Access the ExperimentHub Web Service. Bioconductor.
References
- Homepage: https://bioconductor.org/packages/ExperimentHub
- Vignette: https://bioconductor.org/packages/release/bioc/vignettes/ExperimentHub/inst/doc/ExperimentHub.html
Run this on BioMate
This skill is the knowledge layer — when, why, and how to use experimenthub. To run this analysis on your own data with managed compute, automated QC, and reproducible outputs, use BioMate — free to start.