X-Git-Url: https://git.donarmstrong.com/?p=fastq-tools.git;a=blobdiff_plain;f=src%2Ffastq-match.c;h=1e4d9c705344af121b645869edaba736b78736a8;hp=bd040a6cf7df9535dc3bd1e1924f4d7157476d7a;hb=d6b81119e55cf77c1e4c17b9e9026abc01e22b96;hpb=07ffc4895d705c5207492a002ffce4576dac5fc5 diff --git a/src/fastq-match.c b/src/fastq-match.c index bd040a6..1e4d9c7 100644 --- a/src/fastq-match.c +++ b/src/fastq-match.c @@ -47,10 +47,10 @@ void fastq_match(FILE* fin, FILE* fout, sw_t* sw) { int score; - fastq_t* fqf = fastq_open(fin); - seq_t* seq = fastq_alloc_seq(); + fastq_t* fqf = fastq_create(fin); + seq_t* seq = seq_create(); - while (fastq_next(fqf, seq)) { + while (fastq_read(fqf, seq)) { fprintf(fout, "%s\t", seq->seq.s); fastq_sw_conv_seq((unsigned char*)seq->seq.s, seq->seq.n); @@ -59,8 +59,8 @@ void fastq_match(FILE* fin, FILE* fout, sw_t* sw) fprintf(fout, "%d\n", score); } - fastq_free_seq(seq); - fastq_close(fqf); + seq_free(seq); + fastq_free(fqf); }