gencode_txdb | R Documentation |
This function builds a transcript database (TxDb
) object which you can then
use to build a Gencode GenomicState
object. This function will download
the data from Gencode, import it into R, process it and build the TxDb
object.
gencode_txdb(
version = "31",
genome = c("hg38", "hg19"),
chrs = paste0("chr", c(seq_len(22), "X", "Y", "M"))
)
gencode_source_url(version = "31", genome = c("hg38", "hg19"))
version |
A |
genome |
A |
chrs |
A |
A GenomicFeatures::TxDb object.
A character(1)
with the URL for the GTF Gencode file of interest.
Leonardo Collado-Torres
Based on code for the brainflowprobes
package at:
https://github.com/LieberInstitute/brainflowprobes/blob/devel/data-raw/create_sysdata.R
gencode_annotated_genes()
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"
)
)
## Explore the result
txdb_v31_hg19_chr21
## Locate the GTF file for Gencode version 31 for hg19
gencode_source_url(version = "31", genome = "hg19")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.