110329b274d3e77d46cedfea05ac44a20682719e braney Wed Feb 5 13:12:28 2020 -0800 use mitochondrial code on chrMT diff --git src/hg/hgTracks/cds.c src/hg/hgTracks/cds.c index 17d72fa..249b341 100644 --- src/hg/hgTracks/cds.c +++ src/hg/hgTracks/cds.c @@ -501,31 +501,31 @@ } else { errAbort("colorAndCodonFromGrayIx: invalid grayIx %d", grayIx); color = cdsColor[CDS_ERROR]; sprintf(codon,"X"); } return color; } static char baseColorLookupCodon(DNA *dna) /* Call dnautil's lookupCodon, but translate stop codon '\0' to '*' for display. */ { char peptide; -if (sameString(chromName, "chrM")) +if (isMito(chromName)) peptide = lookupMitoCodon(dna); else peptide = lookupCodon(dna); if (peptide == '\0') peptide = '*'; return peptide; } static int peptideToGrayIx(char peptide, boolean codonFirstColor) /* Encode peptide (a letter or '*') and alternating gray shade into our alpha-offset scheme. */ { if (peptide == '*') peptide = GRAYIX_STOP_CODON_ALPHA; if (codonFirstColor) return(peptide - 'A' + 1);