5906e77a265fe9100d798f0f3e31668a3a4704e3 kate Wed Sep 27 10:50:25 2017 -0700 Remove experimental code. refs #15646 diff --git src/hg/hgTracks/gtexEqtlClusterTrack.c src/hg/hgTracks/gtexEqtlClusterTrack.c index beb5c2d..7ec04a3 100644 --- src/hg/hgTracks/gtexEqtlClusterTrack.c +++ src/hg/hgTracks/gtexEqtlClusterTrack.c @@ -273,48 +273,40 @@ struct rgbColor tisColor = eqtlTissueColor(track, eqtl); int ix = hvGfxFindColorIx(hvg, tisColor.r, tisColor.g, tisColor.b); hvGfxBox(hvg, x + tissueColorPatchSpacer, y + (tl.fontHeight - h)/2 + tl.fontHeight/10, w, h, ix); } } static void gtexEqtlClusterMapItem(struct track *track, struct hvGfx *hvg, void *item, char *itemName, char *mapItemName, int start, int end, int x, int y, int width, int height) /* Create a map box on item and label with list of tissues with colors and effect size */ { char *title = itemName; if (track->limitedVis != tvDense) { struct gtexEqtlCluster *eqtl = (struct gtexEqtlCluster *)item; - // Experiment: construct list of tissues with colors and effect sizes for mouseover - //struct gtexEqtlClusterTrack *extras = (struct gtexEqtlClusterTrack *)track->extraUiData; - //struct hash *tissueHash = extras->tissueHash; struct dyString *ds = dyStringNew(0); dyStringPrintf(ds, "%s/%s: ", eqtl->name, eqtl->target); int i; for (i=0; i<eqtl->expCount; i++) { if (eqtlIsExcludedTissue(eqtl, i)) continue; double effect= eqtl->expScores[i]; dyStringPrintf(ds, "%s(%s%0.2f)%s", eqtl->expNames[i], effect < 0 ? "" : "+", effect, i < eqtl->expCount - 1 ? ", " : ""); - //struct gtexTissue *tis = (struct gtexTissue *)hashFindVal(tissueHash, eqtl->expNames[i]); - //unsigned color = tis ? tis->color : 0; // BLACK - //char *name = tis ? tis->name : "unknown"; - //#dyStringPrintf(ds,"<tr><td style='color: #%06X;'>*</td><td>%s</td><td>%s%0.2f</td></tr>\n", - //color, name, effect < 0 ? "" : "+", effect); } title = dyStringCannibalize(&ds); } int w = width + gtexEqtlClusterItemRightPixels(track, item); genericMapItem(track, hvg, item, title, itemName, start, end, x, y, w, height); } void gtexEqtlClusterMethods(struct track *track) /* BED5+5 with target, expNames,expScores, expProbs */ { track->loadItems = gtexEqtlClusterLoadItems; track->itemName = gtexEqtlClusterItemName; track->itemColor = gtexEqtlClusterItemColor; track->itemRightPixels = gtexEqtlClusterItemRightPixels; track->drawItemAt = gtexEqtlClusterDrawItemAt;