89065c3677b833bb80467057e0d54c367ea9600a kate Tue Jul 18 15:38:41 2017 -0700 Set item color for GTEx eqtl tissue tracks to black. O/w there's too much color going on! diff --git src/hg/hgTracks/simpleTracks.c src/hg/hgTracks/simpleTracks.c index e689c59..92f896d 100644 --- src/hg/hgTracks/simpleTracks.c +++ src/hg/hgTracks/simpleTracks.c @@ -3521,30 +3521,36 @@ *retBarbColor = tg->ixAltColor; } } Color bigGenePredColor(struct track *tg, void *item, struct hvGfx *hvg) /* Determine the color of the name for the bigGenePred linked feature. */ { struct linkedFeatures *lf = item; struct rgbColor itemRgb; itemRgb.r = (lf->filterColor & 0xff0000) >> 16; itemRgb.g = (lf->filterColor & 0xff00) >> 8; itemRgb.b = lf->filterColor & 0xff; return hvGfxFindColorIx(hvg, itemRgb.r, itemRgb.g, itemRgb.b); } +Color blackItemNameColor(struct track *tg, void *item, struct hvGfx *hvg) +/* Force item name (label) color to black */ +{ +return hvGfxFindColorIx(hvg, 0, 0, 0); +} + Color linkedFeaturesNameColor(struct track *tg, void *item, struct hvGfx *hvg) /* Determine the color of the name for the linked feature. */ { Color col, barbCol; lfColors(tg, item, hvg, &col, &barbCol); return col; } struct simpleFeature *simpleFeatureCloneList(struct simpleFeature *list) /* Just copies the simpleFeature list. This is good for making a copy */ /* when the codon list is made. */ { struct simpleFeature *ret = NULL; struct simpleFeature *cur; for (cur = list; cur != NULL; cur = cur->next) @@ -13845,30 +13851,32 @@ longRangeMethods(track, tdb); if (trackShouldUseAjaxRetrieval(tg)) track->loadItems = dontLoadItems; } else if (sameWord(type, "mathWig")) { mathWigMethods(track, tdb, wordCount, words); if (trackShouldUseAjaxRetrieval(track)) track->loadItems = dontLoadItems; } else if (sameWord(type, "bigBed")) { bigBedMethods(track, tdb, wordCount, words); if (trackShouldUseAjaxRetrieval(track)) track->loadItems = dontLoadItems; + if (startsWith("gtexEqtlTissue", track->track)) + gtexEqtlTissueMethods(track); } else if (sameWord(type, "bigMaf")) { tdb->canPack = TRUE; wordCount++; words[1] = "3"; wigMafMethods(track, tdb, wordCount, words); track->isBigBed = TRUE; if (trackShouldUseAjaxRetrieval(track)) track->loadItems = dontLoadItems; } else if (sameWord(type, "bigBarChart")) { tdb->canPack = TRUE; track->isBigBed = TRUE;