| 1 |
.TH GFF-SORT 1 2025-05-26 NCBI "NCBI Entrez Direct User's Manual" |
| 2 |
.SH NAME |
| 3 |
gff\-sort \- sort a General Feature Format version 3 file |
| 4 |
.SH SYNOPSIS |
| 5 |
.B gff\-sort |
| 6 |
.SH DESCRIPTION |
| 7 |
\fBgff\-sort\fP reads a General Feature Format version 3 (GFF3) file |
| 8 |
from standard input and prints a sorted equivalent to standard output. |
| 9 |
It sorts according to the following criteria: |
| 10 |
.PD 0 |
| 11 |
.TP 2 |
| 12 |
\(bu |
| 13 |
accession (highest priority), case insensitively |
| 14 |
.TP 2 |
| 15 |
\(bu |
| 16 |
feature identifier, case insensitively and hierarchically |
| 17 |
.TP 2 |
| 18 |
\(bu |
| 19 |
strand (positive first) |
| 20 |
.TP 2 |
| 21 |
\(bu |
| 22 |
start position |
| 23 |
.TP 2 |
| 24 |
\(bu |
| 25 |
length (longest first) |
| 26 |
.TP 2 |
| 27 |
\(bu |
| 28 |
feature key (lowest priority): |
| 29 |
.RS 2 |
| 30 |
.TP 2 |
| 31 |
\(bu |
| 32 |
\fBgene\fP or \fBpseudogene\fP (first) |
| 33 |
.TP 2 |
| 34 |
\(bu |
| 35 |
\fBmRNA\fP, \fBprimary_transcript\fP, |
| 36 |
or a recombination site such as \fBC_region\fP |
| 37 |
.TP 2 |
| 38 |
\(bu |
| 39 |
\fBCDS\fP |
| 40 |
.TP 2 |
| 41 |
\(bu |
| 42 |
\fBexon\fP or \fPintron\fP |
| 43 |
.TP 2 |
| 44 |
\(bu |
| 45 |
anything else (last) |
| 46 |
.RE |
| 47 |
.PD |
| 48 |
.SH SEE ALSO |
| 49 |
.BR gff2xml (1), |
| 50 |
.BR sort\-table (1), |
| 51 |
.BR transmute (1), |
| 52 |
.BR xtract (1). |