85f4cbbe5ed5131f6c2d37071d22af4bf394865a fanhsu Mon Dec 6 11:32:33 2010 -0800 Adding back some code for DECIPHER drawing that should not be deleted. diff --git src/hg/hgTracks/simpleTracks.c src/hg/hgTracks/simpleTracks.c index 73e1b32..c043feb 100644 --- src/hg/hgTracks/simpleTracks.c +++ src/hg/hgTracks/simpleTracks.c @@ -10931,34 +10931,51 @@ sPhenotypes = omimGeneDiseaseList(tg, item); w = x2-x1; if (w < 1) w = 1; if (color) { hvGfxBox(hvg, x1, y, w, heightPer, omimGeneColor(tg, item, hvg)); if (vis == tvFull) { hvGfxTextRight(hvg, x1-mgFontStringWidth(font, sPhenotypes)-2, y, mgFontStringWidth(font, sPhenotypes), heightPer, MG_BLACK, font, sPhenotypes); } + if (vis != tvDense) mapBoxHc(hvg, bed->chromStart, bed->chromEnd, x1, y, x2 - x1, heightPer, tg->track, tg->mapItemName(tg, bed), sPhenotypes); } + +if (tg->subType == lfWithBarbs) + { + int dir = 0; + if (bed->strand[0] == '+') + dir = 1; + else if(bed->strand[0] == '-') + dir = -1; + if (dir != 0 && w > 2) + { + int midY = y + (heightPer>>1); + Color textColor = hvGfxContrastingColor(hvg, color); + clippedBarbs(hvg, x1, midY, w, tl.barbHeight, tl.barbSpacing, + dir, textColor, TRUE); + } + } } void omimGeneMethods (struct track *tg) { tg->itemColor = omimGeneColor; tg->itemNameColor = omimGeneColor; tg->itemName = omimGeneName; tg->drawItemAt = omimGeneDrawAt; } Color restColor(struct track *tg, void *item, struct hvGfx *hvg) /* set the color for REST track items */ { struct bed *el = item;