ezReadGff: Reads an annotation table from a file.

View source: R/gff.R

ezReadGffR Documentation

Reads an annotation table from a file.

Description

Reads an annotation table from a gtf or gff file into a data.frame.

Usage

ezReadGff(gffFile, nrows = -1)

ezWriteGff(x, file)

Arguments

gffFile

the gtf or gff file to read the information from.

nrows

an integer specifying the maximum number of rows to read in.

x

an annotation matrix or data.frame.

file

a character representing the connection to write the table to.

Value

Returns a data.frame containing the annotation information.

Functions

  • ezWriteGff: Writes a gtf or gff annotation table passed by with x to the connection file, keeping only the original columns.

Author(s)

Rehrauer, Hubert

Schmid, Peter

Examples

gtf = ezReadGff(system.file("extdata/genes.gtf", package="ezRun", mustWork=TRUE))
ezWriteGff(gtf,"newgtf")

uzh/ezRun documentation built on April 19, 2024, 8:25 a.m.