Learn R Programming

Rgff (version 0.1.6)

sort_gtf: Sorts a GTF file

Description

This function produces a sorted GTF file from an unsorted GTF file. The default order is by Chromosome, Start, End (reverse) and feature (gene -> transcript -> OTHERS)

Usage

sort_gtf(gtfFile, outFile, forceOverwrite = FALSE)

Value

Path to the sorted GTF file

Arguments

gtfFile

Path to the input GTF file

outFile

Path to the output GTF file, if not provided the output will be the input path (without extension) with the suffix sorted.gtf

forceOverwrite

If output file exists, overwrite the existing file. (default FALSE)