struct vegaInfoZfish *vegaInfoZfishLoadAll(char *fileName) /* Load all vegaInfoZfish from a whitespace-separated file. * Dispose of this with vegaInfoZfishFreeList(). */ { struct vegaInfoZfish *list = NULL, *el; struct lineFile *lf = lineFileOpen(fileName, TRUE); char *row[8]; while (lineFileRow(lf, row)) { el = vegaInfoZfishLoad(row); slAddHead(&list, el); } lineFileClose(&lf); slReverse(&list); return list; }
struct jaxQTL2 *jaxQTL2LoadAll(char *fileName) /* Load all jaxQTL2 from a tab-separated file. * Dispose of this with jaxQTL2FreeList(). */ { struct jaxQTL2 *list = NULL, *el; struct lineFile *lf = lineFileOpen(fileName, TRUE); char *row[12]; while (lineFileRow(lf, row)) { el = jaxQTL2Load(row); slAddHead(&list, el); } lineFileClose(&lf); slReverse(&list); return list; }
struct encodeErgeSummary *encodeErgeSummaryLoadAll(char *fileName) /* Load all encodeErgeSummary from a whitespace-separated file. * Dispose of this with encodeErgeSummaryFreeList(). */ { struct encodeErgeSummary *list = NULL, *el; struct lineFile *lf = lineFileOpen(fileName, TRUE); char *row[14]; while (lineFileRow(lf, row)) { el = encodeErgeSummaryLoad(row); slAddHead(&list, el); } lineFileClose(&lf); slReverse(&list); return list; }
struct makeItemsItem *makeItemsItemLoadAll(char *fileName) /* Load all makeItemsItem from a whitespace-separated file. * Dispose of this with makeItemsItemFreeList(). */ { struct makeItemsItem *list = NULL, *el; struct lineFile *lf = lineFileOpen(fileName, TRUE); char *row[12]; while (lineFileRow(lf, row)) { el = makeItemsItemLoad(row); slAddHead(&list, el); } lineFileClose(&lf); slReverse(&list); return list; }
struct scoredRef *scoredRefLoadAll(char *fileName) /* Load all scoredRef from a whitespace-separated file. * Dispose of this with scoredRefFreeList(). */ { struct scoredRef *list = NULL, *el; struct lineFile *lf = lineFileOpen(fileName, TRUE); char *row[6]; while (lineFileRow(lf, row)) { el = scoredRefLoad(row); slAddHead(&list, el); } lineFileClose(&lf); slReverse(&list); return list; }
struct pgPhenoAssoc *pgPhenoAssocLoadAll(char *fileName) /* Load all pgPhenoAssoc from a whitespace-separated file. * Dispose of this with pgPhenoAssocFreeList(). */ { struct pgPhenoAssoc *list = NULL, *el; struct lineFile *lf = lineFileOpen(fileName, TRUE); char *row[5]; while (lineFileRow(lf, row)) { el = pgPhenoAssocLoad(row); slAddHead(&list, el); } lineFileClose(&lf); slReverse(&list); return list; }
struct bToBeCfg *bToBeCfgLoadAll(char *fileName) /* Load all bToBeCfg from a whitespace-separated file. * Dispose of this with bToBeCfgFreeList(). */ { struct bToBeCfg *list = NULL, *el; struct lineFile *lf = lineFileOpen(fileName, TRUE); char *row[7]; while (lineFileRow(lf, row)) { el = bToBeCfgLoad(row); slAddHead(&list, el); } lineFileClose(&lf); slReverse(&list); return list; }
struct zdobnovSynt *zdobnovSyntLoadAll(char *fileName) /* Load all zdobnovSynt from a whitespace-separated file. * Dispose of this with zdobnovSyntFreeList(). */ { struct zdobnovSynt *list = NULL, *el; struct lineFile *lf = lineFileOpen(fileName, TRUE); char *row[13]; while (lineFileRow(lf, row)) { el = zdobnovSyntLoad(row); slAddHead(&list, el); } lineFileClose(&lf); slReverse(&list); return list; }
struct wgEncodeGencodePdb *wgEncodeGencodePdbLoadAll(char *fileName) /* Load all wgEncodeGencodePdb from a whitespace-separated file. * Dispose of this with wgEncodeGencodePdbFreeList(). */ { struct wgEncodeGencodePdb *list = NULL, *el; struct lineFile *lf = lineFileOpen(fileName, TRUE); char *row[2]; while (lineFileRow(lf, row)) { el = wgEncodeGencodePdbLoad(row); slAddHead(&list, el); } lineFileClose(&lf); slReverse(&list); return list; }
struct pslWQueryID *pslWQueryIDLoadAll(char *fileName) /* Load all pslWQueryID from a whitespace-separated file. * Dispose of this with pslWQueryIDFreeList(). */ { struct pslWQueryID *list = NULL, *el; struct lineFile *lf = lineFileOpen(fileName, TRUE); char *row[22]; while (lineFileRow(lf, row)) { el = pslWQueryIDLoad(row); slAddHead(&list, el); } lineFileClose(&lf); slReverse(&list); return list; }
struct docIdSub *docIdSubLoadAll(char *fileName) /* Load all docIdSub from a whitespace-separated file. * Dispose of this with docIdSubFreeList(). */ { struct docIdSub *list = NULL, *el; struct lineFile *lf = lineFileOpen(fileName, TRUE); char *row[10]; while (lineFileRow(lf, row)) { el = docIdSubLoad(row); slAddHead(&list, el); } lineFileClose(&lf); slReverse(&list); return list; }
struct hash *readInf(char *fileName) /* Read info file into hash */ { struct lineFile *lf = lineFileOpen(fileName, TRUE); struct hash *hash = newHash(0); struct clone *clone; int wordCount; char *words[9]; while (lineFileRow(lf, words)) { addCloneToHash(hash, words[0]); } uglyf("Read %d lines in %s\n", lf->lineIx, fileName); lineFileClose(&lf); return hash; }
struct traceInfo *traceInfoLoadAll(char *fileName) /* Load all traceInfo from a tab-separated file. * Dispose of this with traceInfoFreeList(). */ { struct traceInfo *list = NULL, *el; struct lineFile *lf = lineFileOpen(fileName, TRUE); char *row[3]; while (lineFileRow(lf, row)) { el = traceInfoLoad(row); slAddHead(&list, el); } lineFileClose(&lf); slReverse(&list); return list; }
struct ensPhusionBlast *ensPhusionBlastLoadAll(char *fileName) /* Load all ensPhusionBlast from a tab-separated file. * Dispose of this with ensPhusionBlastFreeList(). */ { struct ensPhusionBlast *list = NULL, *el; struct lineFile *lf = lineFileOpen(fileName, TRUE); char *row[8]; while (lineFileRow(lf, row)) { el = ensPhusionBlastLoad(row); slAddHead(&list, el); } lineFileClose(&lf); slReverse(&list); return list; }
struct mouseSynWhd *mouseSynWhdLoadAll(char *fileName) /* Load all mouseSynWhd from a tab-separated file. * Dispose of this with mouseSynWhdFreeList(). */ { struct mouseSynWhd *list = NULL, *el; struct lineFile *lf = lineFileOpen(fileName, TRUE); char *row[9]; while (lineFileRow(lf, row)) { el = mouseSynWhdLoad(row); slAddHead(&list, el); } lineFileClose(&lf); slReverse(&list); return list; }
struct hash *readMrnaInfo(char *fileName) /* Read in file into a hash of mrnaInfos. */ { struct hash *hash = newHash(16); struct lineFile *lf = lineFileOpen(fileName, TRUE); char *row[4]; while (lineFileRow(lf, row)) { struct mrnaInfo *m; AllocVar(m); hashAddSaveName(hash, row[0], m, &m->name); m->size = lineFileNeedNum(lf, row, 1); m->cdsStart = lineFileNeedNum(lf, row, 2); m->cdsEnd = lineFileNeedNum(lf, row, 3); } return hash; }
struct rmskOut2 *rmskOut2LoadAll(char *fileName) /* Load all rmskOut2 from a whitespace-separated file. * Dispose of this with rmskOut2FreeList(). */ { struct rmskOut2 *list = NULL, *el; struct lineFile *lf = lineFileOpen(fileName, TRUE); char *row[16]; while (lineFileRow(lf, row)) { el = rmskOut2Load(row); slAddHead(&list, el); } lineFileClose(&lf); slReverse(&list); return list; }
struct gtexDonor *gtexDonorLoadAll(char *fileName) /* Load all gtexDonor from a whitespace-separated file. * Dispose of this with gtexDonorFreeList(). */ { struct gtexDonor *list = NULL, *el; struct lineFile *lf = lineFileOpen(fileName, TRUE); char *row[4]; while (lineFileRow(lf, row)) { el = gtexDonorLoad(row); slAddHead(&list, el); } lineFileClose(&lf); slReverse(&list); return list; }
struct codeBlastScore *codeBlastScoreLoadAll(char *fileName) /* Load all codeBlastScore from a whitespace-separated file. * Dispose of this with codeBlastScoreFreeList(). */ { struct codeBlastScore *list = NULL, *el; struct lineFile *lf = lineFileOpen(fileName, TRUE); char *row[13]; while (lineFileRow(lf, row)) { el = codeBlastScoreLoad(row); slAddHead(&list, el); } lineFileClose(&lf); slReverse(&list); return list; }
void raIntoCdwRepeatQa(char *fileName, struct sqlConnection *conn, long long fileId) /* Read in two column file and put it into cdwQaRepeat table. */ { struct lineFile *lf = lineFileOpen(fileName, TRUE); char *row[2]; while (lineFileRow(lf, row)) { char *repeatClass = row[0]; double mapRatio = lineFileNeedDouble(lf, row, 1); char query[512]; sqlSafef(query, sizeof(query), "insert into cdwQaRepeat (fileId,repeatClass,mapRatio) values (%lld, \"%s\", %g)", fileId, repeatClass, mapRatio); sqlUpdate(conn, query); } lineFileClose(&lf); }
struct estPair *estPairLoadAll(char *fileName) /* Load all estPair from a tab-separated file. * Dispose of this with estPairFreeList(). */ { struct estPair *list = NULL, *el; struct lineFile *lf = lineFileOpen(fileName, TRUE); char *row[10]; while (lineFileRow(lf, row)) { el = estPairLoad(row); slAddHead(&list, el); } lineFileClose(&lf); slReverse(&list); return list; }
struct affyAtlas *affyAtlasLoadAll(char *fileName) /* Load all affyAtlas from a tab-separated file. * Dispose of this with affyAtlasFreeList(). */ { struct affyAtlas *list = NULL, *el; struct lineFile *lf = lineFileOpen(fileName, TRUE); char *row[6]; while (lineFileRow(lf, row)) { el = affyAtlasLoad(row); slAddHead(&list, el); } lineFileClose(&lf); slReverse(&list); return list; }
struct kgAlias *kgAliasLoadAll(char *fileName) /* Load all kgAlias from a whitespace-separated file. * Dispose of this with kgAliasFreeList(). */ { struct kgAlias *list = NULL, *el; struct lineFile *lf = lineFileOpen(fileName, TRUE); char *row[2]; while (lineFileRow(lf, row)) { el = kgAliasLoad(row); slAddHead(&list, el); } lineFileClose(&lf); slReverse(&list); return list; }
struct metaChromGraph *metaChromGraphLoadAll(char *fileName) /* Load all metaChromGraph from a whitespace-separated file. * Dispose of this with metaChromGraphFreeList(). */ { struct metaChromGraph *list = NULL, *el; struct lineFile *lf = lineFileOpen(fileName, TRUE); char *row[4]; while (lineFileRow(lf, row)) { el = metaChromGraphLoad(row); slAddHead(&list, el); } lineFileClose(&lf); slReverse(&list); return list; }
struct taxonGeneticCode *taxonGeneticCodeLoadAll(char *fileName) /* Load all taxonGeneticCode from a whitespace-separated file. * Dispose of this with taxonGeneticCodeFreeList(). */ { struct taxonGeneticCode *list = NULL, *el; struct lineFile *lf = lineFileOpen(fileName, TRUE); char *row[6]; while (lineFileRow(lf, row)) { el = taxonGeneticCodeLoad(row); slAddHead(&list, el); } lineFileClose(&lf); slReverse(&list); return list; }
struct landmarkAttrLink *landmarkAttrLinkLoadAll(char *fileName) /* Load all landmarkAttrLink from a whitespace-separated file. * Dispose of this with landmarkAttrLinkFreeList(). */ { struct landmarkAttrLink *list = NULL, *el; struct lineFile *lf = lineFileOpen(fileName, TRUE); char *row[4]; while (lineFileRow(lf, row)) { el = landmarkAttrLinkLoad(row); slAddHead(&list, el); } lineFileClose(&lf); slReverse(&list); return list; }
struct transRegCodeCondition *transRegCodeConditionLoadAll(char *fileName) /* Load all transRegCodeCondition from a whitespace-separated file. * Dispose of this with transRegCodeConditionFreeList(). */ { struct transRegCodeCondition *list = NULL, *el; struct lineFile *lf = lineFileOpen(fileName, TRUE); char *row[2]; while (lineFileRow(lf, row)) { el = transRegCodeConditionLoad(row); slAddHead(&list, el); } lineFileClose(&lf); slReverse(&list); return list; }
struct simpleRepeat *simpleRepeatLoadAll(char *fileName) /* Load all simpleRepeat from a tab-separated file. * Dispose of this with simpleRepeatFreeList(). */ { struct simpleRepeat *list = NULL, *el; struct lineFile *lf = lineFileOpen(fileName, TRUE); char *row[16]; while (lineFileRow(lf, row)) { el = simpleRepeatLoad(row); slAddHead(&list, el); } lineFileClose(&lf); slReverse(&list); return list; }
struct ecAttribute *ecAttributeLoadAll(char *fileName) /* Load all ecAttribute from a whitespace-separated file. * Dispose of this with ecAttributeFreeList(). */ { struct ecAttribute *list = NULL, *el; struct lineFile *lf = lineFileOpen(fileName, TRUE); char *row[8]; while (lineFileRow(lf, row)) { el = ecAttributeLoad(row); slAddHead(&list, el); } lineFileClose(&lf); slReverse(&list); return list; }
struct ggMrnaBlock *ggMrnaBlockLoadAll(char *fileName) /* Load all ggMrnaBlock from a tab-separated file. * Dispose of this with ggMrnaBlockFreeList(). */ { struct ggMrnaBlock *list = NULL, *el; struct lineFile *lf = lineFileOpen(fileName, TRUE); char *row[4]; while (lineFileRow(lf, row)) { el = ggMrnaBlockLoad(row); slAddHead(&list, el); } lineFileClose(&lf); slReverse(&list); return list; }