4 * fastq-grep: regular expression searches of the sequences within a fastq file
6 * Febuary 2011 / Daniel Jones <dcjones@cs.washington.edu>
18 KSEQ_INIT(gzFile, gzread)
24 "fastq-grep [OPTION]... PATTERN [FILE]...\n"
25 "Search for PATTERN in the read sequence in each FILE or standard input.\n"
26 "PATTERN, by default, is a perl compatible regular expression."
31 static int invert_flag;
34 int main(int argc, char* argv[])
40 static struct option long_options[] =
42 {"help", no_argument, &help_flag, 1},
43 {"invert-match", no_argument, &invert_flag, 1},
48 opt = getopt_long(argc, argv, "hv", long_options, &opt_idx);
50 if( opt == -1 ) break;
54 if (long_options[opt_idx].flag != 0) break;