convertHub | R Documentation |
The Hub class was updated to utilize BiocFileCache to allow for file level caching control. This update changed the way files were stored and named. As a convenience for AnnotationHub and ExperimentHub we have provided this helper function to try to re-download files and add them into the BiocFileCache tracking database.
convertHub(oldcachepath=NULL,
newcachepath=NULL,
hubType=c("AnnotationHub", "ExperimentHub"),
proxy=getAnnotationHubOption("PROXY"),
max.downloads=getAnnotationHubOption("MAX_DOWNLOADS"),
force=FALSE, verbose=TRUE)
oldcachepath |
character(1) complete file path location of the
old hub to be converted. If left as |
newcachepath |
character(1) complete file path to the new
location for the cache. If left as |
hubType |
Either AnnotationHub or ExperimentHub. By default assumes AnnotationHub. |
proxy |
proxy connection allowing Internet access, usually through a restrictive firewall. Default: NULL. |
max.downloads |
numeric(1). The integer number of downloads allowed before triggering a warning. This is to help avoid accidental download of a large number of AnnotationHub members |
force |
logical(1). Force re-download of a resource rather than using a cached version. |
verbose |
logical(1). Print out status messages. |
character(1). File path of new cache location. If verbose
also prints status messages for downloading files and any files that
were not redownloaded.
Lori Shepherd
AnnotationHub
,
getAnnotationHubOption
,
getInfoOnIds
# To transition over from old default to new default location
## Not run: convertHub()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.