-AC_INIT( [fastq-tools], [0.3], [dcjones@cs.washington.edu] )
+AC_INIT( [fastq-tools], [0.4], [dcjones@cs.washington.edu] )
AM_INIT_AUTOMAKE( [foreign -Wall -Werror] )
m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
FASTQ entry with a matching nucleotide sequence.
One ore more FILEs may be specified, otherwise input is read from standard input.
-Input files may be gziped.
.SH OPTIONS
-.TP
+.TP
\fB\-i\fR, \fB\-\-id\fR
Match the read ID (by default, the sequence is matched).
.TP
--- /dev/null
+.TH FASTQ-SORT 1
+
+.SH NAME
+fastq-sort - sort entries in a fastq file
+
+.SH SYNOPSIS
+.B fastq-sort [OPTION]... [FILE]...
+
+.SH DESCRIPTION
+Sort a FASTQ file, outputing the sorted file to standard out. If no files are
+given, read from standard input.
+
+.SH OPTIONS
+.TP
+\fB\-r\fR, \fB\-\-reverse\fR
+Sort in reverse (i.e., descending) order.
+.TP
+\fB\-I\fR, \fB\-\-id\fR
+Sort alphabetically by read identifier.
+.TP
+\fB\-S\fR, \fB\-\-seq\fR
+Sort alphabetically by nucleotide sequence.
+.TP
+\fB\-R\fR, \fB\-\-random\fR
+Sort in random order. By default, a fixed seed is used so that random sort is
+deterministic. Use the '--seed' option to produce different random orderings on
+repeated runs.
+.TP
+\fB\-\-seed=[SEED]\fR
+If a decimal integer SEED is given, it is used as the seed when producing a
+random ordering. With no argument, a seed is generated using the current system
+time.
+.TP
+\fB\-G\fR, \fB\-\-gc\fR
+Sort by increasing GC-content.
+.TP
+\fB\-M\fR, \fB\-\-mean-qual\fR
+Sort by increasing mean quality score.
+.TP
+\fB\-h\fR, \fB\-\-help\fR
+Output a help message and exit.
+.TP
+\fB\-V\fR, \fB\-\-version\fR
+Output version information and exit.
+
+.SH AUTHOR
+Written by Daniel C. Jones <dcjones@cs.washington.edu>
" -R, --random randomly shuffle the sequences\n"
" --seed[=SEED] seed to use for random shuffle.\n"
" -G, --gc sort by GC content\n"
-" -M, --mean-qual sort by median quality score\n" /* TODO */
+" -M, --mean-qual sort by median quality score\n"
" -h, --help print this message\n"
" -V, --version output version information and exit\n"
);