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/chainTrack.c src/hg/hgTracks/chainTrack.c index 24bd072..540b82e 100644 --- src/hg/hgTracks/chainTrack.c +++ src/hg/hgTracks/chainTrack.c @@ -447,30 +447,31 @@ extraWhere, &rowOffset); } else { sr = hRangeQuery(conn, table, chromName, winStart, winEnd, NULL, &rowOffset); } } while ((row = sqlNextRow(sr)) != NULL) { char buf[16]; chainHeadStaticLoad(row + rowOffset, &chain); AllocVar(lf); lf->start = lf->tallStart = chain.tStart; lf->end = lf->tallEnd = chain.tEnd; + lf->qSize = chain.qSize; lf->grayIx = maxShade; if (chainCart->chainColor == chainColorScoreColors) { float normScore = sqlFloat((row+rowOffset)[11]); lf->grayIx = hGrayInRange(normScore, 0, 100, maxShade+1); lf->score = normScore; } else lf->score = chain.score; lf->filterColor = -1; if (chain.qStrand == '-') { lf->orientation = -1;