0607b89d9588aa28b12dc406d22331e3e8b013d7
braney
  Fri Apr 1 09:09:51 2022 -0700
sometimes the maf summary table deletes the version numbers from the
"other" database.   If we don't find the component with a dot, look for
one without it

diff --git src/hg/hgTracks/wigMafTrack.c src/hg/hgTracks/wigMafTrack.c
index a6af667..f426b04 100644
--- src/hg/hgTracks/wigMafTrack.c
+++ src/hg/hgTracks/wigMafTrack.c
@@ -1296,30 +1296,41 @@
 /* reverse summary lists */
 cookie = hashFirst(componentHash);
 while ((hel = hashNext(&cookie)) != NULL)
     slReverse(&hel->val);
 if (!track->isBigBed)
     hFreeConn(&conn);
 
 /* display pairwise items */
 for (mi = miList; mi != NULL; mi = mi->next)
     {
     if (mi->ix < 0)
         /* ignore item for the score */
         continue;
     summaryList = (struct mafSummary *)hashFindVal(componentHash, mi->db);
     if (summaryList == NULL)
+        {
+        // sometimes the summary table has the other database without a dot even if it has one
+        char *tryNoDot = cloneString(mi->db);
+        char *dot = strchr(tryNoDot, '.');
+        if (dot != NULL)
+            {
+            *dot = 0;
+            summaryList = (struct mafSummary *)hashFindVal(componentHash, tryNoDot);
+            }
+        }
+    if (summaryList == NULL)
         summaryList = (struct mafSummary *)hashFindVal(componentHash, mi->name);
 
     if (summaryList != NULL)
 	{
 	if (vis == tvFull)
 	    {
 	    hvGfxSetClip(hvg, xOff, yOff, width, 16);
 	    drawScoreSummary(summaryList, mi->height, seqStart, seqEnd, hvg,
 				    xOff, yOff, width, font, track->ixAltColor,
 				    track->ixAltColor, tvFull, useIrowChains);
 	    hvGfxUnclip(hvg);
 	    }
 	else
 	    {
 	    /* pack */