View source: R/local_metadata.R
local_metadata | R Documentation |
Locate local metadata outside of AnnotationHub
local_metadata(local_path = "/dcl01/lieber/ajaffe/lab/GenomicState/data-raw")
local_path |
A |
The AnnotationHub metadata data.frame()
for the data in this
package with RDataPath
updated to point to the local_path
. It includes
an addtional column called loadCode
which you can evaluate with
eval(parse(text = entry))
.
Leonardo Collado-Torres
AnnotationHubData::makeAnnotationHubMetadata()
## Get the local metadata
meta <- local_metadata()
## Subset to the data of interest, lets say hg19 TxDb for v31
interest <- subset(meta, RDataClass == "TxDb" & Tags == "Gencode:v31:hg19")
## Inspect the result
interest
## Next you can load the data
if (file.exists(interest$RDataPath)) {
## This only works at JHPCE
eval(parse(text = interest$loadCode))
## Explore the loaded object (would be gencode_v31_hg19_txdb in this case)
gencode_v31_hg19_txdb
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.