f7d577042a7e3e41c1121082febb7ff25020bf0b markd Sun Feb 28 13:19:19 2021 -0800 have gfServer check that index files match the required naming convention diff --git src/gfServer/gfServer.c src/gfServer/gfServer.c index bd55595..a245f2e 100644 --- src/gfServer/gfServer.c +++ src/gfServer/gfServer.c @@ -1099,33 +1099,58 @@ sprintf(buf, "%sfiles", gfSignature()); mustWriteFd(sd, buf, strlen(buf)); /* Get count of files, and then each file name. */ if (netGetString(sd, buf) != NULL) { fileCount = atoi(buf); for (i=0; i 1) + errAbort("gfServer index only works with a single genome file"); +checkIndexFileName(gfxFile, seqFiles[0]); + struct genoFindIndex *gfIdx = genoFindIndexBuild(fileCount, seqFiles, minMatch, maxGap, tileSize, repMatch, doTrans, NULL, allowOneMismatch, doMask, stepSize, noSimpRepMask); genoFindIndexWrite(gfIdx, gfxFile); } static void dynWarnErrorVa(char* msg, va_list args) /* warnHandler to log and send back an error response */ { char buf[4096]; int msgLen = vsnprintf(buf, sizeof(buf) - 1, msg, args); buf[msgLen] = '\0'; logError("%s", buf); printf("Error: %s\n", buf); }