2678ac942661570b6f57cac57f48597b60092b04
max
  Thu Nov 17 10:11:35 2022 -0800
fixing small mastermind bug, refs #30284

diff --git src/hg/utils/otto/mastermind/mastermindToBed.py src/hg/utils/otto/mastermind/mastermindToBed.py
index 67a97e2..a2d0bbf 100644
--- src/hg/utils/otto/mastermind/mastermindToBed.py
+++ src/hg/utils/otto/mastermind/mastermindToBed.py
@@ -61,25 +61,26 @@
         mouseOver = mmid3+" on %d transcripts - %s/%s/%s" % (len(mmid3s), mmcnt1, mmcnt2, mmcnt3)
 
     score = "0"
     strand = "."
     # values copied from knownGene.html
     itemRgb = "130,130,210" # light blue by default: mmcnt3==1
     if int(mmcnt3)>1: # medium-blue if mmcnt3 >=2
         itemRgb = "50,80,160"
     if int(mmcnt1)!=0: # dark-blue if exact cDNA match
         itemRgb = "12,12,120"
 
     urlSuffix = mmuri3s[0].replace("https://mastermind.genomenon.com/detail?disease=all%20diseases&", "")
     urlSuffix = urlSuffix.replace("ref=cvr", "ref=ucsc")
     assert(urlSuffix!=mmuri3)
 
+    mmid3 = mmid3.replace(",", ",")
     url = urlSuffix+"|"+mmid3
     outRow = [chrom, str(start), str(end), name, score, strand, str(start), str(end), itemRgb, url, gene, mmcnt1, mmcnt2, mmcnt3, mouseOver]
     ofh.write("\t".join(outRow))
     ofh.write("\n")
 
 print("Wrote %s" % ofh.name)