checkAssembledTx: plot annotated and assembled transcripts together

Description Usage Arguments Value Author(s) Examples

View source: R/checkAssembledTx.R

Description

plot annotated and assembled transcripts together

Usage

1
2
3
4
5
6
7
checkAssembledTx(
  assembled,
  annotated,
  ind = 1,
  main = "Assembled and Annotated Transcripts",
  customCol = NULL
)

Arguments

assembled

a GRangesList object where the GRanges objects in the list represent sets of exons comprising assembled transcripts

annotated

a GRangesList object where the GRanges objects in the list represent sets of exons comprising annotated transcripts

ind

integer; index of annotated specifying which annotated transcript to plot. All transcripts (assembled and annotated) overlapping annotated[[ind]] will be plotted. Default 1.

main

optional character string giving the title for the resulting plot. Default: "Assembled and Annotated Transcripts"

customCol

optional vector of custom colors for the annotated transcripts. If not the same length as the number of annotated transcripts in the plot, recycling or truncation might occur.

Value

Plots annotated transcripts on the bottom panel (shaded in gray) and assembled transcripts on the top panel (shaded with diagonal lines).

Author(s)

Alyssa Frazee

Examples

1
2
3
4
gtfPath = system.file('extdata', 'annot.gtf.gz', package='ballgown')
annot = gffReadGR(gtfPath, splitByTranscript=TRUE)
data(bg)
checkAssembledTx(annotated=annot, assembled=structure(bg)$trans, ind=4)

alyssafrazee/ballgown documentation built on Sept. 3, 2021, 7:15 p.m.