These functions coerce a
TxDb object to a
GRanges object with
metadata columns encoding transcript structures according to the
model of a standard file format. Currently, BED and GFF models are
supported. If a
TxDb is passed to
export, when targeting a BED or GFF file,
this coercion occurs automatically.
1 2 3 4
## S4 method for signature 'TxDb' asBED(x) ## S4 method for signature 'TxDb' asGFF(x)
GRanges, with the columns
blockSizes added. The thick regions correspond to the CDS
regions, and the blocks represent the exons. The transcript IDs are
stored in the
name column. The ranges are the transcript bounds.
GRanges, with columns
Parent. The gene structures are
expressed according to the conventions defined by the GFF3 spec. There
are elements of each
type of feature: “gene”,
“mRNA” “exon” and “cds”. The
gene_id for genes,
tx_name for transcripts,
and exons and cds regions are
ID column uses
tx_id, with the prefixes “GeneID” and
“TxID” to ensure uniqueness across types. The exons and cds
IDs of the parent features. A feature may have
multiple parents (the column is a
CharacterList). Each exon
belongs to one or more mRNAs, and mRNAs belong to a gene.
1 2 3 4 5 6
txdb_file <- system.file("extdata", "hg19_knownGene_sample.sqlite", package="GenomicFeatures") txdb <- loadDb(txdb_file) asBED(txdb) asGFF(txdb)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.