View source: R/GenomicStateHub.R
| GenomicStateHub | R Documentation | 
This function uses AnnotationHub to obtain the objects provided by this
package. These are: the TxDb object made with gencode_txdb(), the
annotated genes object made with gencode_annotated_genes() or the
GenomicState object made with gencode_genomic_state().
GenomicStateHub(
  version = "31",
  genome = c("hg38", "hg19"),
  filetype = c("TxDb", "AnnotatedGenes", "GenomicState"),
  ah = AnnotationHub::AnnotationHub()
)
| version | A  | 
| genome | A  | 
| filetype | A  | 
| ah | An  | 
The AnnotationHub-class query for the file you requested.
Leonardo Collado-Torres
gencode_txdb() gencode_annotated_genes()
gencode_genomic_state()
## Query AnnotationHub for the GenomicState object for Gencode v31 on
## hg19 coordinates
hub_query_gs_gencode_v31_hg19 <- GenomicStateHub(
    version = "31",
    genome = "hg19",
    filetype = "GenomicState"
)
hub_query_gs_gencode_v31_hg19
## Check the metadata
mcols(hub_query_gs_gencode_v31_hg19)
## Access the file through AnnotationHub
if (length(hub_query_gs_gencode_v31_hg19) == 1) {
    hub_gs_gencode_v31_hg19 <- hub_query_gs_gencode_v31_hg19[[1]]
    hub_gs_gencode_v31_hg19
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.