gtfPath = system.file('extdata', 'annot.gtf.gz', package='ballgown')
# read in exons as GRanges:
annotgr = gffReadGR(gtfPath)
# read in groups of exons as transcripts, in GRangesList:
transcripts_grl = gffReadGR(gtfPath, splitByTranscript=TRUE)
Run the code above in your browser using DataLab