110329b274d3e77d46cedfea05ac44a20682719e
braney
  Wed Feb 5 13:12:28 2020 -0800
use mitochondrial code on chrMT

diff --git src/hg/lib/hdb.c src/hg/lib/hdb.c
index 355c50b..c5ee95f 100644
--- src/hg/lib/hdb.c
+++ src/hg/lib/hdb.c
@@ -130,30 +130,36 @@
 struct sqlResult *sr = NULL;
 char **row = NULL;
 char query[256];
 sqlSafef(query, sizeof(query), "select * from chromInfo where chrom = '%s'",
       chrom);
 sr = sqlGetResult(conn, query);
 if ((row = sqlNextRow(sr)) != NULL)
     {
     ci = chromInfoLoad(row);
     }
 sqlFreeResult(&sr);
 hFreeConn(&conn);
 return ci;
 }
 
+boolean isMito(char *chrom)
+/* Return True if chrom is chrM or chrMT */
+{
+return sameString(chrom, "chrM") || sameString(chrom, "chrMT");
+}
+
 struct chromInfo *hGetChromInfo(char *db, char *chrom)
 /* Get chromInfo for named chromosome (case-insens.) from db.
  * Return NULL if no such chrom. */
 /* Cache results, but build up the hash incrementally instead of in one slurp
  * from chromInfo because that takes a *long* time for scaffold-based dbs and
  * is usually not necessary. */
 {
 static struct hash *dbToInfo = NULL;
 struct hash *infoHash = NULL;
 struct hashEl *dHel = NULL;
 struct chromInfo *ci = NULL;
 char upcName[HDB_MAX_CHROM_STRING];
 if (strlen(chrom) >= HDB_MAX_CHROM_STRING)
     return NULL;
 safef(upcName, sizeof(upcName), "%s", chrom);