Learn R Programming

Rgff (version 0.1.6)

sort_gff3: Sorts a GFF3 file

Description

This function produces a sorted GFF3 file from an unsorted GFF3 file. The output file will be sorted by Chromosome, Start, End (reverse) and feature (based on the precedency in feature tree)

Usage

sort_gff3(gffFile, outFile, forceOverwrite = FALSE)

Value

Path to the sorted GFF3 file

Arguments

gffFile

Path to the input GFF3 file

outFile

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

forceOverwrite

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