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/bamTrack.c src/hg/hgTracks/bamTrack.c index 4880896..f47d36c 100644 --- src/hg/hgTracks/bamTrack.c +++ src/hg/hgTracks/bamTrack.c @@ -675,31 +675,31 @@ } } if (indelShowDoubleInsert && psl) { int intronGap = 0; if (vis != tvDense) intronGap = atoi(trackDbSettingClosestToHomeOrDefault(tg->tdb, "intronGap", "0")); lfDrawSpecialGaps(lf, intronGap, TRUE, 0, tg, hvg, xOff, y, scale, color, color, 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. */ if ((indelShowQueryInsert || indelShowPolyA) && psl) - baseColorOverdrawQInsert(tg, lf, hvg, xOff, y, scale, heightPer, qSeq, qOffset, psl, winStart, + baseColorOverdrawQInsert(tg, lf, hvg, xOff, y, scale, heightPer, qSeq, qOffset, psl, font, winStart, drawOpt, indelShowQueryInsert, indelShowPolyA); baseColorOverdrawDiff(tg, lf, hvg, xOff, y, scale, heightPer, qSeq, qOffset, psl, winStart, drawOpt); } } void bamPairedDrawAt(struct track *tg, void *item, struct hvGfx *hvg, int xOff, int y, double scale, MgFont *font, Color color, enum trackVisibility vis) /* Draw a bam linked features series item at position. (like linkedFeaturesSeriesDrawAt, * but calls bamDrawAt instead of linkedFeaturesDrawAt) */ { struct linkedFeaturesSeries *lfs = item; struct linkedFeatures *lf; int midY = y + (tg->heightPer>>1); int prevEnd = lfs->start;