6361ad1b494f51fe3d761b1cefacc1f8c12be1c9
max
  Wed Jan 31 07:09:14 2024 -0800
adding linebreaks to clinvar mouseover and review status, #32915

diff --git src/hg/utils/otto/clinvar/clinVarToBed src/hg/utils/otto/clinvar/clinVarToBed
index fadf2e9..79e71db 100755
--- src/hg/utils/otto/clinvar/clinVarToBed
+++ src/hg/utils/otto/clinvar/clinVarToBed
@@ -899,33 +899,39 @@
 
     if len(mouseOverName)>80:
         mouseOverName = mouseOverName[:80]+"..."
 
     #if len(hgvsProt) > 90:
         #hgvsProt = hgvsProt[:90]+"..."
     #if len(hgvsCod) > 90:
         #hgvsCod = hgvsCod[:90]+"..."
 
     phenotypeIds, _ = accListToHtml(phenotypeIds)
 
     starRatingHtml, asciiStars, starCount = reviewStatusToHtmlStars(reviewStatus)
 
     phenotypeList = ", ".join(phenotypeList.split("|"))
 
-    mouseOverParts = [mouseOverName, "Review Status: "+starRatingHtml,
-            "Type: "+allType, "Consequence: "+ molConseq, "Significance: "+clinSign,
-            "Origin: "+origin, "Phenotypes: "+phenotypeList]
+    mouseOverParts = [
+            mouseOverName,
+            "<b>Review Status: </b>"+starRatingHtml,
+            "<b>Type: </b>"+allType,
+            "<b>Consequence: </b>"+ molConseq,
+            "<b>Significance: </b>"+clinSign,
+            "<b>Origin: </b>"+origin,
+            "<b>Phenotypes: </b>"+phenotypeList
+            ]
     # removed Apr 2020: numberSubmitters+" submitters", "Level: "+asciiStars
     mouseOver = "<br>".join(mouseOverParts)
 
     snpAcc = "rs"+snpAcc # dbSnp links changed in mid/late 2022
 
     row = [chrom, start, end, shortName, str(starCount), strand, thickStart, thickEnd, itemRgb, \
         blockCount, blockSizes, blockStarts,
         name, clinSign, starRatingHtml, allType, geneStr, molConseq,
         snpAcc, dbVarAcc, irvcAcc, inGtr, phenotypeList, phenotypeIds, origin, assembly, cytogenetic,
         hgvsTable, "", numberSubmitters, lastEval, guidelines, otherIds, mouseOver,
         # these fields are the for the filters, not for the display
         pathoCode, originCode, allTypeCode, str(varLen), str(starCount),
         # the variant ID got forgotten in the original bigBed schema, it was only part of the origName field
         varId, dbVarSsvAcc]