annotateGeneModel: Annotate a GRanges gene model with ORF boundries for...

Description Usage Arguments Value Author(s) See Also Examples

View source: R/plotGvisTracks.R

Description

Annotate a GRanges gene model with ORF boundries for visualisation with Gviz

Usage

1
annotateGeneModel(transcripts, orfs)

Arguments

transcripts

GRanges of gene model to be visualised

orfs

ORF predictions. Created by getORFs()

Value

data.frame of a gene model for visualisation

Author(s)

Beth Signal

See Also

Other Gviz gene structure visualisation: makeGeneModel

Examples

1
2
3
4
5
6
7
gtf <- rtracklayer::import(system.file("extdata", "example_gtf.gtf",
package="GeneStructureTools"))
transcript <- gtf[gtf$type=="exon" & gtf$gene_name=="Neurl1a"]
g <- BSgenome.Mmusculus.UCSC.mm10::BSgenome.Mmusculus.UCSC.mm10
# longest ORF for each transcripts
orfs <- getOrfs(transcript, BSgenome = g, returnLongestOnly = TRUE)
geneModelAnnotated <- annotateGeneModel(transcript, orfs)

GeneStructureTools documentation built on Nov. 8, 2020, 6:04 p.m.