View source: R/gencode_annotated_genes.R
gencode_annotated_genes | R Documentation |
Based on a TxDb
object built by gencode_txdb()
this function annotates
the genes. This information is then used by packages like derfinder
and
derfinderPlot
.
gencode_annotated_genes(txdb)
txdb |
A GenomicFeatures::TxDb object built with
|
The annotated genes resulting from
bumphunter::annotateTranscripts()
.
Leonardo Collado-Torres.
Based on code for the brainflowprobes
package at:
https://github.com/LieberInstitute/brainflowprobes/blob/devel/data-raw/create_sysdata.R
gencode_txdb()
gencode_genomic_state()
## Start from scratch if you want:
## Not run:
txdb_v31_hg19_chr21 <- gencode_txdb("31", "hg19", chrs = "chr21")
## End(Not run)
## or read in the txdb object for hg19 chr21 from this package
txdb_v31_hg19_chr21 <- AnnotationDbi::loadDb(
system.file("extdata", "txdb_v31_hg19_chr21.sqlite",
package = "GenomicState"
)
)
## Obtain the annotated genes for the Gencode TxDb object
genes_v31_hg19_chr21 <- gencode_annotated_genes(txdb_v31_hg19_chr21)
## Explore the result
genes_v31_hg19_chr21
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.