powered by
This function produces a sorted GFF file from an unsorted GFF file. The default order is by Chromosome, Start, End (reverse) and feature (based on the precedency in feature tree)
sort_gff( inFile, outFile, fileType = c("AUTO", "GFF3", "GTF"), forceOverwrite = FALSE )
Path to the sorted feature file
Path to the input GFF file
Path to the output sorted file, if not provided the output will be the input path (without extension) with the suffix sorted.gtf/gff3
Version of the input file (GTF/GFF3). Default AUTO: determined from the file name.
If output file exists, overwrite the existing file. (default FALSE)
test_gff3<-system.file("extdata", "eden.gff3", package="Rgff") sort_gff(test_gff3)
Run the code above in your browser using DataLab