Is there an easy way to plot only exons, not introns? Consider:
gr <- GenomicRanges::GRanges(17, IRanges(start = c(5,20,30,50), end = c(10,25,40,60))) mcols(gr)$transcript <- "test" tr <- Gviz::GeneRegionTrack(gr) Gviz::plotTracks(tr)
Which plots this:
How could I plot this without the introns? With the exons "smacked together", so to speak? I was imagining something like this:
Gviz::plotTracks( tr, ranges = gr )
Hey, I just want to comment a convenient way to do this, for anyone who might look at it. It can be done with:
And this is just the intended transformation of the exons.