예제 #1
0
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;
}
예제 #2
0
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;
}