makeStandardOrgDbs | R Documentation |
Add OrgDb and TxDb sqlite files to AnnotationHub
makeStandardOrgDbsToAHM(currentMetadata, justRunUnitTest = FALSE,
BiocVersion = BiocManager::version(),
downloadOrgDbs = TRUE)
makeStandardTxDbsToAHM(currentMetadata, justRunUnitTest = FALSE,
BiocVersion = BiocManager::version(), TxDbs)
makeNCBIToOrgDbsToAHM(currentMetadata, justRunUnitTest = FALSE,
BiocVersion = BiocManager::version(),
baseUrl = "ftp://ftp.ncbi.nlm.nih.gov/gene/DATA/")
currentMetadata |
Historically was intended to be a list of metadata to filter, i.e., records that do not need to be processed again. In some recipes this is used as a way to pass additional arguments. Need to remove or make consistent. |
baseUrl |
A |
justRunUnitTest |
A |
BiocVersion |
A |
TxDbs |
Character vector of the |
downloadOrgDbs |
A |
makeStandardOrgDbsToAHM
and makeStandardTxDbsToAHM
extracts
the sqlite files from the existing OrgDb
and TxDb
packages
in the Bioconductor repositories and generate associated metadata.
makeNCBIToOrgDbsToAHM
creates sqlite files and metadata for 1000
organisms with the makeOrgPackageFromNCBI
function. These
organisms are less 'main stream' than those hosted in the Bioconductor
repository (makeStandardOrgDbsToAHM
) and the databases are less
comprehensive because data only come from one source, NCBI.
List of AnnotationHubMetadata
objects.
Bioconductor Core Team
updateResources
AnnotationHubMetadata
## Not run:
## In Bioconductor 3.5, one new TxDb was added and 4 active
## tracks were updated. This piece of code shows how to add these 5
## packages to AnnotationHub.
## Step I: generate metadata
##
## Generate the metadata with the low-level helper for inspection.
TxDbs <- c("TxDb.Ggallus.UCSC.galGal5.refGene",
"TxDb.Celegans.UCSC.ce11.refGene",
"TxDb.Rnorvegicus.UCSC.rn5.refGene",
"TxDb.Dmelanogaster.UCSC.dm6.ensGene",
"TxDb.Rnorvegicus.UCSC.rn6.refGene")
meta <- makeStandardTxDbsToAHM(currentMetadata=list(AnnotationHubRoot="TxDbs"),
justRunUnitTest=FALSE,
TxDbs = TxDbs)
## Once the low-level helper runs with no errors, try generating the
## metadata with the high-level wrapper updateResources(). Setting
## metadataOnly=TRUE will generate metadata only and not push resources
## to data bucket. insert=FALSE prevents the metadata from being inserted in the
## database.
##
## The metadata generated by updateResources() will be the same as that
## generated by makeStandardTxDbsToAHM(). Both should be a list the same
## length as the number of TxDbs specified.
meta <- updateResources("TxDbs",
preparerClasses="TxDbFromPkgsImportPreparer",
metadataOnly=TRUE, insert = FALSE,
justRunUnitTest=FALSE, TxDbs = TxDbs)
INFO [2017-04-11 09:12:09] Preparer Class: TxDbFromPkgsImportPreparer
complete!
> length(meta)
[1] 5
## Step II: push resources to Azure
##
## If the metadata looks correct we are ready to push resources to Azure.
## Set metadataOnly=FALSE but keep insert=FALSE.
## export an environment variable with a core generated SAS URL for
## upload example:
## export AZURE_SAS_URL='https://bioconductorhubs.blob.core.windows.net/staginghub?sp=racwl&st=2022-02-08T15:57:00Z&se=2022-02-22T23:57:00Z&spr=https&sv=2020-08-04&sr=c&sig=fBtPzgrw1Akzlz
meta <- updateResources("TxDbs",
BiocVersion="3.5",
preparerClasses="TxDbFromPkgsImportPreparer",
metadataOnly=FALSE, insert = FALSE,
justRunUnitTest=FALSE, TxDbs = TxDbs)
## Step III: insert metadata in AnnotationHub production database
##
## Inserting the metadata in the database is usually done as a separte step
## and with the help of the AnnotationHub docker.
## Set metadataOnly=TRUE and insert=TRUE.
meta <- updateResources("TxDbs",
BiocVersion="3.5",
preparerClasses="TxDbFromPkgsImportPreparer",
metadataOnly=FALSE, insert = FALSE,
justRunUnitTest=FALSE, TxDbs = TxDbs)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.