Reads a GFF3 or GTF file (optionally gzipped) and returns a misha 1D
intervals data frame. GFF/GTF are 1-based and inclusive on both ends;
coordinates are converted to 0-based half-open by subtracting 1 from
start and leaving end as-is.
Arguments
- file
path to a GFF/GTF file.
- feature
optional feature-type filter (column 3 of GFF). Pass a character vector to keep only those types (e.g.
"exon",c("gene", "transcript")).- strand
if
TRUE, include thestrandcolumn.- attrs
if
TRUE, include the raw attributes string as columnattrs. The attribute string is not parsed.
Value
A 1D intervals data frame with columns chrom, start, end, and optionally strand, type, source, score, attrs.