0846eb5a094ecf1f8400f5ea091f3e6727794477
kate
Mon Jun 26 14:42:15 2017 -0700
Remove debug stmts. refs #15646
diff --git src/hg/hgTracks/gtexEqtlClusterTrack.c src/hg/hgTracks/gtexEqtlClusterTrack.c
index 6756276..dd9861c 100644
--- src/hg/hgTracks/gtexEqtlClusterTrack.c
+++ src/hg/hgTracks/gtexEqtlClusterTrack.c
@@ -73,49 +73,49 @@
if (maxEffect < 0 - cutoff)
return MG_CYAN;
return MG_BLUE;
}
/* up-regulation displayed as red */
if (maxEffect > cutoff)
return MG_MAGENTA;
return MG_RED;
}
static void gtexEqtlClusterMapItem(struct track *tg, 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;
-uglyf("
title: %s\n", title);
+//uglyf("
title: %s\n", title);
if (tg->limitedVis != tvDense)
{
// construct list of tissues with colors and effect sizes for mouseover
struct gtexEqtlCluster *eqtl = (struct gtexEqtlCluster *)item;
//struct gtexEqtlClusterTrack *extras = (struct gtexEqtlClusterTrack *)tg->extraUiData;
//struct hash *tissueHash = extras->tissueHash;
struct dyString *ds = dyStringNew(0);
int i;
for (i=0; iexpCount; i++)
{
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,"* | %s | %s%0.2f |
\n",
//color, name, effect < 0 ? "" : "+", effect);
}
title = dyStringCannibalize(&ds);
}
-uglyf("
title2: %s\n", title);
+//uglyf("
title2: %s\n", title);
genericMapItem(tg, hvg, item, title, itemName, start, end, x, y, width, height);
}
void gtexEqtlClusterMethods(struct track *track)
/* BED5+5 with target, expNames,expScores, expProbs */
{
track->loadItems = gtexEqtlClusterLoadItems;
track->itemName = gtexEqtlClusterItemName;
track->itemColor = gtexEqtlClusterItemColor;
track->mapItem = gtexEqtlClusterMapItem;
}