makeGeneModel: Convert GRanges gene model to data.frame for visualisation...

Description Usage Arguments Value Author(s) See Also Examples

View source: R/plotGvisTracks.R

Description

Convert GRanges gene model to data.frame for visualisation with Gviz

Usage

1
makeGeneModel(transcript)

Arguments

transcript

GRanges of gene model to be visualised

Value

data.frame of a gene model for visualisation

Author(s)

Beth Signal

See Also

Other Gviz gene structure visualisation: annotateGeneModel()

Examples

1
2
3
4
5
gtf <- rtracklayer::import(system.file("extdata", "gencode.vM25.small.gtf",
    package = "GeneStructureTools"
))
transcript <- gtf[gtf$type == "exon" & gtf$gene_name == "Tmem208"]
geneModel <- makeGeneModel(transcript)

betsig/GeneStructureTools documentation built on March 31, 2021, 4:43 a.m.