30e53467883676e7fb5c8aad1a4f303c40ffaf73 braney Tue Mar 6 14:37:57 2018 -0800 do GBiB gbdb replacement magic on mathWig bigWigs. diff --git src/hg/lib/mathWig.c src/hg/lib/mathWig.c index 3d1ab26..12c790f 100644 --- src/hg/lib/mathWig.c +++ src/hg/lib/mathWig.c @@ -134,31 +134,31 @@ struct wiggle *nextWiggle; for(wiggle = wiggleList; wiggle; wiggle = nextWiggle) { nextWiggle = wiggle->next; if (wiggle->span == minSpan) getWigDataFromFile(wiggle, array, winStart, winEnd); freez(&wiggle); } } void getBigWigData(char *file, char *chrom, unsigned winStart, unsigned winEnd, double *array) /* Query a bigBed file to find the wiggle values we need for a specified range. */ { struct lm *lm = lmInit(0); -struct bbiFile *bwf = bigWigFileOpen(file); +struct bbiFile *bwf = bigWigFileOpen(hReplaceGbdb(file)); struct bbiInterval *iv, *ivList = bigWigIntervalQuery(bwf, chrom, winStart, winEnd, lm); unsigned width = winEnd - winStart; for (iv = ivList; iv != NULL; iv = iv->next) { unsigned start = max(0, iv->start - winStart); unsigned end = min(width, iv->end - winStart); int ii; for (ii = start; ii < end; ii++) array[ii] = iv->val; } } double *mathWigGetValues(char *db, char *equation, char *chrom, unsigned winStart, unsigned winEnd, boolean missingIsZero)