9a71e97d8a11e25bc6e48e8e95fa0c9cc7da4801 chmalee Tue Apr 4 11:59:28 2023 -0700 hgPcr saves hits instead of overwriting the trash file with each new pcr search, refs #30925 diff --git src/jkOwnLib/gfPcrLib.c src/jkOwnLib/gfPcrLib.c index fb7894c..1b0773a 100644 --- src/jkOwnLib/gfPcrLib.c +++ src/jkOwnLib/gfPcrLib.c @@ -315,31 +315,31 @@ char *url, FILE *f) /* Write a single output in specified format (either "fa" or "bed") * to file. If url is non-null it should be a printf formatted * string that takes %s, %d, %d for chromosome, start, end. */ { outFunction output = gfPcrOutputFunction(outType); output(out, f, url); } void gfPcrOutputWriteAll(struct gfPcrOutput *outList, char *outType, char *url, char *fileName) /* Create file of outputs in specified format (either "fa" or "bed") * to file. If url is non-null it should be a printf formatted * string that takes %s, %d, %d for chromosome, start, end. */ { -FILE *f = mustOpen(fileName, "w"); +FILE *f = mustOpen(fileName, "a"); gfPcrOutputWriteList(outList, outType, url, f); carefulClose(&f); } static void pcrLocalStrand(char *pcrName, struct dnaSeq *seq, int seqOffset, char *seqName, int seqSize, int maxSize, char *fPrimer, int fPrimerSize, char *rPrimer, int rPrimerSize, int minPerfect, int minGood, char strand, struct gfPcrOutput **pOutList) /* Do detailed PCR scan on one strand and report results. */ { char *fDna = seq->dna, *rDna; char *endDna = fDna + seq->size; char *fpPerfect = fPrimer + fPrimerSize - minPerfect; char *rpPerfect = rPrimer;