View source: R/gencode_genomic_state.R
gencode_genomic_state | R Documentation |
Based on a TxDb
object built by gencode_txdb()
this function builds a
GenomicState
object which you can then use with
derfinder::annotateRegions()
. This information is then used by packages
like derfinderPlot
.
gencode_genomic_state(txdb)
txdb |
A GenomicFeatures::TxDb object built with
|
Note that not all genes will have symbols as many will be NA
.
A GenomicState object with the gene symbols as built using
derfinder::makeGenomicState()
.
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_annotated_genes()
## 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"
)
)
## Now build the GenomicState object
gs_v31_hg19_chr21 <- gencode_genomic_state(txdb_v31_hg19_chr21)
## Explore the result
gs_v31_hg19_chr21
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.