Description Usage Arguments Value Author(s) See Also Examples
(very) light wrapper for rtracklayer::import
1 2 |
gtf |
name of GTF/GFF file on disk |
splitByTranscript |
if |
identifier |
name of transcript identifier column of |
sep |
field separator in the |
if splitByTranscript is FALSE, an object of class
GRanges representing the genomic features in gtf. If
splitByTranscript is TRUE, an object of class GRangesList,
where each element is a GRanges object corresponding to an
annotated transcript (designated in names).
Alyssa Frazee
gffRead for reading in a GTF file as a data frame
rather than a GRanges/GRangesList object.
1 2 3 4 5 6 7 | 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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.