X-Git-Url: https://git.donarmstrong.com/?p=fastq-tools.git;a=blobdiff_plain;f=src%2Ffastq-uniq.c;h=3a92565c8a5118dbd2b13fd4720347058f619709;hp=2e507622ddb38ebb0bcc97bd9b9a7c403d9ddf2e;hb=d6b81119e55cf77c1e4c17b9e9026abc01e22b96;hpb=07ffc4895d705c5207492a002ffce4576dac5fc5 diff --git a/src/fastq-uniq.c b/src/fastq-uniq.c index 2e50762..3a92565 100644 --- a/src/fastq-uniq.c +++ b/src/fastq-uniq.c @@ -49,10 +49,10 @@ static size_t total_reads; void fastq_hash(FILE* fin, hash_table* T) { - 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)) { inc_hash_table(T, seq->seq.s, seq->seq.n); total_reads++; @@ -61,8 +61,8 @@ void fastq_hash(FILE* fin, hash_table* T) } } - fastq_free_seq(seq); - fastq_close(fqf); + seq_free(seq); + fastq_free(fqf); }