X-Git-Url: https://git.donarmstrong.com/?p=fastq-tools.git;a=blobdiff_plain;f=src%2Ffastq-qual.c;h=5d8e4dadcf0ebba37db5533cb0d27e017e58fa49;hp=52013765b3025172dbff16e014819bd891215ed3;hb=d6b81119e55cf77c1e4c17b9e9026abc01e22b96;hpb=07ffc4895d705c5207492a002ffce4576dac5fc5 diff --git a/src/fastq-qual.c b/src/fastq-qual.c index 5201376..5d8e4da 100644 --- a/src/fastq-qual.c +++ b/src/fastq-qual.c @@ -42,12 +42,12 @@ void print_help() void tally_quals(FILE* fin, unsigned int** xs, size_t* n) { - seq_t* seq = fastq_alloc_seq(); - fastq_t* fqf = fastq_open(fin); + seq_t* seq = seq_create(); + fastq_t* fqf = fastq_create(fin); size_t i; - while (fastq_next(fqf, seq)) { + while (fastq_read(fqf, seq)) { if (seq->qual.n > *n) { *xs = realloc_or_die(*xs, 255 * seq->qual.n * sizeof(unsigned int)); memset(*xs + *n, 0, 255 * (seq->qual.n - *n) * sizeof(unsigned int)); @@ -60,8 +60,8 @@ void tally_quals(FILE* fin, unsigned int** xs, size_t* n) } } - fastq_free_seq(seq); - fastq_close(fqf); + seq_free(seq); + fastq_free(fqf); }