@@ -43,6 +43,8 @@ static const char USAGE_MESSAGE[] =
4343" -s, --sample=N sample the suffix array [1]\n "
4444" -d, --dup identify and print duplicate sequence\n "
4545" IDs between QUERY and TARGET\n "
46+ " --chastity discard unchaste reads\n "
47+ " --no-chastity do not discard unchaste reads [default]\n "
4648" -v, --verbose display verbose output\n "
4749" --help display this help and exit\n "
4850" --version output version information and exit\n "
@@ -76,6 +78,8 @@ static const struct option longopts[] = {
7678 { " dup" , no_argument, NULL , ' d' },
7779 { " threads" , required_argument, NULL , ' j' },
7880 { " verbose" , no_argument, NULL , ' v' },
81+ { " chastity" , no_argument, &opt::chastityFilter, 1 },
82+ { " no-chastity" , no_argument, &opt::chastityFilter, 0 },
7983 { " help" , no_argument, NULL , OPT_HELP },
8084 { " version" , no_argument, NULL , OPT_VERSION },
8185 { NULL , 0 , NULL , 0 }
@@ -344,6 +348,9 @@ int main(int argc, char** argv)
344348 commandLine = ss.str ();
345349 }
346350
351+ opt::chastityFilter = false ;
352+ opt::trimMasked = false ;
353+
347354 bool die = false ;
348355 for (int c; (c = getopt_long (argc, argv,
349356 shortopts, longopts, NULL )) != -1 ;) {
@@ -458,8 +465,6 @@ int main(int argc, char** argv)
458465 } else if (opt::verbose > 0 )
459466 cerr << " Identifying duplicates.\n " ;
460467
461- opt::chastityFilter = false ;
462- opt::trimMasked = false ;
463468 FastaInterleave fa (argv + optind, argv + argc,
464469 FastaReader::FOLD_CASE);
465470 find (faIndex, fmIndex, fa);
0 commit comments