76bde04179c67dde93143803a1502cb80e8abc33 kent Thu Jun 30 11:27:08 2022 -0700 Making qInserts be rendered as two bases wide rather than always a single pixel line. If zoomed in enough will show size of insert in query as a number in the middle of the box. See also redmine #29642. Also qInserts are drawn after, not before, the red blocks of base mismatches. diff --git src/hg/hgTracks/simpleTracks.c src/hg/hgTracks/simpleTracks.c index accaf40..4e9cac3 100644 --- src/hg/hgTracks/simpleTracks.c +++ src/hg/hgTracks/simpleTracks.c @@ -3953,36 +3953,36 @@ lf->orientation, barbColor, TRUE); } } } } if ((intronGap > 0) || chainLines) lfDrawSpecialGaps(lf, intronGap, chainLines, gapFactor, tg, hvg, xOff, y, scale, color, bColor, vis); if (vis != tvDense) { /* If highlighting differences between aligned sequence and genome when * zoomed way out, this must be done in a separate pass after exons are * drawn so that exons sharing the pixel don't overdraw differences. */ + baseColorOverdrawDiff(tg, lf, hvg, xOff, y, scale, heightPer, + qSeq, qOffset, psl, winStart, drawOpt); if (indelShowQueryInsert || indelShowPolyA) baseColorOverdrawQInsert(tg, lf, hvg, xOff, y, scale, heightPer, - qSeq, qOffset, psl, winStart, drawOpt, + qSeq, qOffset, psl, font, winStart, drawOpt, indelShowQueryInsert, indelShowPolyA); - baseColorOverdrawDiff(tg, lf, hvg, xOff, y, scale, heightPer, - qSeq, qOffset, psl, winStart, drawOpt); } } static void lfSeriesDrawConnecter(struct linkedFeaturesSeries *lfs, struct hvGfx *hvg, int start, int end, double scale, int xOff, int midY, Color color, Color bColor, enum trackVisibility vis) /* Draw connection between two sets of linked features. */ { if (start != -1 && !lfs->noLine) { int x1 = round((double)((int)start-winStart)*scale) + xOff; int x2 = round((double)((int)end-winStart)*scale) + xOff; int w = x2-x1; if (w > 0) {