]> git.donarmstrong.com Git - fastq-tools.git/blobdiff - src/fastq-match.c
Added a program to adjust quality scores by a fixed offset.
[fastq-tools.git] / src / fastq-match.c
index 53af1343c1756f5389dfa2ba18d1b6d9e615fb3a..bd040a6cf7df9535dc3bd1e1924f4d7157476d7a 100644 (file)
@@ -43,9 +43,7 @@ void print_help()
 }
 
 
-void fastq_match(FILE* fin, FILE* fout,
-                 sw_t* sw,
-                 unsigned char* query, int n)
+void fastq_match(FILE* fin, FILE* fout, sw_t* sw)
 {
     int score;
 
@@ -131,7 +129,7 @@ int main(int argc, char* argv[])
     sw = fastq_alloc_sw(query, query_len);
 
     if (optind >= argc || (argc - optind == 1 && strcmp(argv[optind],"-") == 0)) {
-        fastq_match(stdin, stdout, sw, query, query_len);
+        fastq_match(stdin, stdout, sw);
     }
     else {
         for (; optind < argc; optind++) {
@@ -141,7 +139,7 @@ int main(int argc, char* argv[])
                 continue;
             }
 
-            fastq_match(fin, stdout, sw, query, query_len);
+            fastq_match(fin, stdout, sw);
         }
     }