73b74e92fd0ccbea53939947f6b7d593bc663375 galt Wed Aug 15 14:23:42 2012 -0700 fix hgc/encodeClick doEncodePeak to support items and use them to match unique display - even though multiples are now incredibly rare with new item=name matching, the code improves the display of the multiples by separating them with a vertical space diff --git src/hg/hgc/hgc.c src/hg/hgc/hgc.c index bf1a9c2..9b27bce 100644 --- src/hg/hgc/hgc.c +++ src/hg/hgc/hgc.c @@ -3862,31 +3862,31 @@ else if (sameString(type, "axt")) { genericAxtClick(conn, tdb, item, start, words[1]); } else if (sameString(type, "expRatio")) { doExpRatio(tdb, item, NULL); } else if (sameString(type, "coloredExon")) { doColoredExon(tdb, item); } else if (sameString(type, "encodePeak") || sameString(type, "narrowPeak") || sameString(type, "broadPeak") || sameString(type, "gappedPeak")) { - doEncodePeak(tdb, NULL); + doEncodePeak(tdb, NULL, item); } else if (sameString(type, "encodeFiveC")) { doEncodeFiveC(conn, tdb); } else if (sameString(type, "peptideMapping")) { doPeptideMapping(conn, tdb, item); } else if (sameString(type, "chromGraph")) { doChromGraph(tdb); } else if (sameString(type, "wig")) { @@ -20034,31 +20034,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); + doEncodePeak(ct->tdb, ct, itemName); 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)