Import a GTF File

Description

This function imports a gtf file.

Usage

1
  importGTF(file, skip = 0, nrow = -1, use.data.table = TRUE, level = "gene")

Arguments

file

File name of the gtf file.

skip

Rows to skip from the top.

nrow

Total amount of rows read.

use.data.table

Logical, shall the data.table package be used for importing the GTF file.

level

Filter for the GTF Entry.

Details

This function imports a standard gtf file as provided by Ensembl. The current settings shouldn't be changed and the only the filename file should be provided. Hence, this function works currently only on the gene level.

Value

A data table of class gtf containing the columns of the gtf file, including the splitted last column.

Author(s)

Daniel Fischer