read.gtf: Reading GTF (General Transfer Format) Files

Description Usage Arguments Details Author(s) References Examples

Description

This function reads a standard GTF file and stores it as data.frame object.

Usage

1
read.gtf(gtf.file, trackline = FALSE, sep = "\t")

Arguments

gtf.file

path to the input GTF file.

trackline

is a trackline included in the GTF file passed to gtf.file. If yes, then the first line is skipped.

sep

separator for GTF file columns. Default for a standard GTF file format is sep = "\t".

Details

The GTF (General Transfer Format) specification allows to share sequence information in a standardized manner. The attributes column must be processed separately due to the lack of a clear specification.

Author(s)

Hajk-Georg Drost

References

http://www.ensembl.org/info/website/upload/gff.html

Examples

1
2
3
4
5
6
7
8
# location of the example gtf file
example.gtf <- system.file("example.gtf", package = "seqreadr")

# reading example gtf file
ex.gtf.df <- read.gtf(gtf.file = example.gtf)

# having a look at the output
ex.gtf.df

HajkD/seqreadr documentation built on May 6, 2019, 10:55 p.m.