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/cds.h src/hg/hgTracks/cds.h index 8e0b3d7..99f2a96 100644 --- src/hg/hgTracks/cds.h +++ src/hg/hgTracks/cds.h @@ -164,31 +164,31 @@ void baseColorOverdrawDiff(struct track *tg, struct linkedFeatures *lf, struct hvGfx *hvg, int xOff, int y, double scale, int heightPer, struct dnaSeq *qSeq, int qOffset, struct psl *psl, int winStart, enum baseColorDrawOpt drawOpt); /* If we're drawing different bases/codons, and zoomed out past base/codon * level, draw 1-pixel wide red lines only where bases/codons differ from * genomic. This tests drawing mode and zoom level but assumes that lf itself * has been drawn already and we're not in dense mode etc. */ void baseColorOverdrawQInsert(struct track *tg, struct linkedFeatures *lf, struct hvGfx *hvg, int xOff, int y, double scale, int heightPer, struct dnaSeq *qSeq, int qOffset, struct psl *psl, - int winStart, enum baseColorDrawOpt drawOpt, + MgFont *font, int winStart, enum baseColorDrawOpt drawOpt, boolean indelShowQInsert, boolean indelShowPolyA); /* If applicable, draw 1-pixel wide orange lines for query insertions in the * middle of the query, 1-pixel wide purple lines for query insertions at the * end of the query, and 1-pixel wide green (instead of purple) when a query * insertion at the end is a valid poly-A tail. */ struct simpleFeature *baseColorCodonsFromDna(int frame, int chromStart, int chromEnd, struct dnaSeq *seq, bool reverse); /* Create list of codons from a DNA sequence */ void baseColorDrawRulerCodons(struct hvGfx *hvg, struct simpleFeature *sfList, double scale, int xOff, int y, int height, MgFont *font, int winStart, int maxPixels, bool zoomedToText);