5ef72df72099ffa752903955d8826bed3b81e4bb
gperez2
Thu May 29 18:21:53 2025 -0700
Making the (?) a link instead of the entire 'codon phase', refs #33749
diff --git src/hg/hgTracks/simpleTracks.c src/hg/hgTracks/simpleTracks.c
index 94ff2089302..9ca217eade2 100644
--- src/hg/hgTracks/simpleTracks.c
+++ src/hg/hgTracks/simpleTracks.c
@@ -2670,47 +2670,47 @@
Note that start/end-phases are in the direction of transcription:
if transcript is on + strand, the start phase is the exonFrame value, and the end phase is the next exonFrame (3' on DNA) value
if transcript is on - strand, the start phase is the previous (=3' on DNA) exonFrame and the end phase is the exonFrame */
{
if (startPhase==-1) // UTRs don't have a frame at all
{
safef(buf, EXONTEXTLEN, "No Codon: Untranslated region
");
}
else
{
char *exonNote = "";
boolean isNotLastExon = (exonIntronNumberCodon phase: ";
+ " ";
if (isNotLastExon)
{
if (startPhase==endPhase)
exonNote = ": in-frame exon";
else
exonNote = ": out-of-frame exon";
- safef(buf, EXONTEXTLEN, "%s start %d, end %d%s
", phasePrefix, startPhase, endPhase, exonNote);
+ safef(buf, EXONTEXTLEN, "Codon phase %s : start %d, end %d%s
", phasePrefix, startPhase, endPhase, exonNote);
}
else
{
if (startPhase==0)
exonNote = ": in-frame exon";
else
exonNote = ": out-of-frame exon";
- safef(buf, EXONTEXTLEN, "%s start %d%s
", phasePrefix, startPhase, exonNote);
+ safef(buf, EXONTEXTLEN, "Codon phase %s : start %d%s
", phasePrefix, startPhase, exonNote);
}
}
}
boolean linkedFeaturesNextPrevItem(struct track *tg, struct hvGfx *hvg, void *item, int x, int y, int w, int h, boolean next)
/* Draw a mapBox over the arrow-button on an *item already in the window*. */
/* Clicking this will do one of several things: */
{
boolean result = FALSE;
struct linkedFeatures *lf = item;
struct simpleFeature *exons = lf->components;
struct simpleFeature *exon = exons;
char *nextExonText;
char *prevExonText;
long newWinSize = virtWinEnd - virtWinStart;