6082fe6467f1b6632e73ee985b024595f256f354 kent Wed May 28 14:49:39 2014 -0700 Librarified fq i/o diff --git src/inc/fq.h src/inc/fq.h index 8be9c93..debba9a 100644 --- src/inc/fq.h +++ src/inc/fq.h @@ -1,14 +1,23 @@ /* fq - stuff for doing i/o on fastq files. */ -struct fq3 +#ifndef FQ_H +#define FQ_H + +struct fq /* Representation of record as 3 lines of text, not further parsed. We omit the 3 of 4 lines in the * fastq record, since it is always just '+'. */ { - struct fq3 *next; - char *atLine; // This line starts with @ and contains the sequence name plus other stuff - char *seqLine; // ACGT and on occassional N normally - char *qualLine; // Might be 33-based (Sanger) or 64 based (Solexa) + struct fq *next; + char *header; // This line starts with @ and contains the sequence name plus other stuff + char *dna; // ACGT and on occassional N normally + char *quality; // Might be 33-based (Sanger) or 64 based (Solexa) }; -struct fq3 *fq3ReadNext(struct lineFile *lf); +struct fq *fqReadNext(struct lineFile *lf); /* Read next record, return it as fq3. */ + +void fqFree(struct fq **pFq); +/* Free up *pFq and set it to NULL */ + +#endif /* FQ_H */ +