db1d562564ed1c7a69946edd1aaa8f56e32e69a3 galt Mon Oct 15 17:05:46 2012 -0700 bug fix for #9287 - hgc click handler for encode bed plus should handle encode custom track clickthrough properly diff --git src/hg/hgc/hgc.c src/hg/hgc/hgc.c index f30d0be..e427d82 100644 --- src/hg/hgc/hgc.c +++ src/hg/hgc/hgc.c @@ -20060,31 +20060,31 @@ int start = cartInt(cart, "o"); char *type; fileName = nextWord(&fileItem); for (ct = ctList; ct != NULL; ct = ct->next) if (sameString(trackId, ct->tdb->track)) break; if (ct == NULL) errAbort("Couldn't find '%s' in '%s'", trackId, fileName); type = ct->tdb->type; cartWebStart(cart, database, "Custom Track: %s", ct->tdb->shortLabel); itemName = skipLeadingSpaces(fileItem); printf("<H2>%s</H2>\n", ct->tdb->longLabel); if (sameWord(type, "array")) doExpRatio(ct->tdb, fileItem, ct); else if (sameWord(type, "encodePeak")) - doEncodePeak(ct->tdb, ct, itemName); + doEncodePeak(ct->tdb, ct, fileName); else if (sameWord(type, "bigWig")) bigWigCustomClick(ct->tdb); else if (sameWord(type, "bigBed")) bigBedCustomClick(ct->tdb); #ifdef USE_BAM else if (sameWord(type, "bam")) doBamDetails(ct->tdb, itemName); #endif//def USE_BAM #ifdef USE_TABIX else if (sameWord(type, "vcfTabix")) doVcfTabixDetails(ct->tdb, itemName); #endif//def USE_TABIX else if (sameWord(type, "makeItems")) doMakeItemsDetails(ct, fileName); // fileName is first word, which is, go figure, id else if (ct->wiggle)