4 fastq-sample - sample random reads from a fastq file
7 .B fastq-sample [OPTION]... FILE [FILE2]
10 Given a FASTQ file, random reads are sampled and output, with or without
11 replacement, according to the '-r' option. The number of reads to sample can be
12 specifed with the '-n' option, or in terms of the proportion of total reads
15 If two files are given, the input is treated as paired-end, and matching pairs
16 are sampled and output into seperate files: [prefix].1.fastq and
17 [prefix].2.fastq, where [prefix] is set with the '-o' option.
22 The number of reads to sample and output
25 The number of reads to sample in terms of the proportion of total reads. If
26 sampling with replacement, this number may be greater than 1.0.
28 \fB\-o\fR, \fB\-\-output=PREFIX\fR
29 The filename prefix to which output should be written. If single-end data is
30 being sampled, the output file is [PREFIX].fastq, and with paired-end,
31 [PREFIX].1.fastq and [PREFIX].2.fastq. (Default: \"sample\")
33 \fB\-r\fR, \fB\-\-with\-replacement\fR
34 Sample with replacement. (By default, sampling is done without replacement.)
36 \fB\-c\fR, \fB\-\-complement-output=PREFIX\fR
37 Output reads not included in the random sample to a file (or files) with the
38 given prefix. By default, these reads are not output.
40 \fB\-s\fR, \fB\-\-seed\fR
41 Seed the random number generator. Using the same seed on the same data set will
42 produce the same random sample.
44 \fB\-h\fR, \fB\-\-help\fR
45 Output a help message and exit.
47 \fB\-V\fR, \fB\-\-version\fR
48 Output version information and exit.
52 Written by Daniel C. Jones <dcjones@cs.washington.edu>