struct edwFastqFile *edwFastqFileLoadRa(char *fileName) /* Return list of all edwFastqFile in ra file. */ { struct raToStructReader *reader = edwFastqFileRaReader(); struct lineFile *lf = lineFileOpen(fileName, TRUE); struct edwFastqFile *el, *list = NULL; while ((el = edwFastqFileFromNextRa(lf, reader)) != NULL) slAddHead(&list, el); slReverse(&list); lineFileClose(&lf); raToStructReaderFree(&reader); return list; }
struct cdwQaPairedEndFastq *cdwQaPairedEndFastqLoadRa(char *fileName) /* Return list of all cdwQaPairedEndFastq in ra file. */ { struct raToStructReader *reader = cdwQaPairedEndFastqRaReader(); struct lineFile *lf = lineFileOpen(fileName, TRUE); struct cdwQaPairedEndFastq *el, *list = NULL; while ((el = cdwQaPairedEndFastqFromNextRa(lf, reader)) != NULL) slAddHead(&list, el); slReverse(&list); lineFileClose(&lf); raToStructReaderFree(&reader); return list; }