Description Usage Arguments Value Examples
View source: R/plot_functions.r
Plot the transcript models of a gene.
1 2 3 4 5 6 7 | plotTxModelsOLD(
db = NULL,
g = NULL,
tid = NULL,
addChevrons = T,
rangex = NULL
)
|
db |
A TxDb containing transcript models from Ensembl. |
g |
If the TxDb contains more than one gene, then use g to specify what to plot. |
addChevrons |
Boolean indicating wheter to add chevrons to intronic regions to indicate direction of the transcript. |
rangex |
The range in genomic coordinates for the region of interest. This is important for correct alignment of the tx model plot with splice junction plot. |
ex |
GrangesList with exonsBy tx. |
int |
GrangesList with intronsByTranscript information. |
Don't know?
1 2 3 4 5 6 7 8 9 10 11 12 | ensembl <- useMart(biomart = "ensembl", dataset = "hsapiens_gene_ensembl")
annot <- getBM(
attributes = c("ensembl_gene_id", "external_gene_name", "ensembl_transcript_id", "external_transcript_name", "transcript_tsl", "chromosome_name", "start_position", "end_position", "strand"),
filters = "external_gene_name",
values = "FIRRE",
mart = ensembl
)
txdb <- makeTxDbFromBiomart(transcript_ids = annot$ensembl_transcript_id)#, host = "uswest.ensembl.org")
plotTranscripts(tdb = txdb)
Plot transcript models.
Using data stored in a TxDb to visualize the transcript models.
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.