gffToGRanges {genomation} | R Documentation |
Converts a gff formated data.frame into a GenomicRanges object. The GenomicRanges object needs to be properly formated for the function to work.
gffToGRanges(gff.file, filter = NULL, zero.based = FALSE, ensembl = FALSE)
gff.file |
path to a gff formatted file.
The file can end in |
filter |
a character designating which elements to retain from the gff file (e.g. exon, CDS, ...) |
zero.based |
|
ensembl |
|
returns a GenomicRanges
object
gff.file = system.file('extdata/chr21.refseq.hg19.gtf', package='genomation') gff = gffToGRanges(gff.file)