sort_gtf: Sorts a GTF file

View source: R/Rgff.R

sort_gtfR Documentation

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)

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)

Value

Path to the sorted GTF file


Rgff documentation built on Sept. 30, 2022, 5:08 p.m.