abea526d50eb92c5e27a5c19051749d87a4a78f5
jnavarr5
  Tue Apr 15 11:20:55 2025 -0700
Updating the URL to match the new styling from PanelApp, no Redmine.

diff --git src/hg/utils/otto/panelApp/genes.py src/hg/utils/otto/panelApp/genes.py
index af605280a3c..6dd4d94a2ff 100755
--- src/hg/utils/otto/panelApp/genes.py
+++ src/hg/utils/otto/panelApp/genes.py
@@ -82,31 +82,31 @@
     logging.info("Got %d gene symbols" % len(syms))
     return list(syms)
 
 def getGenesLocations(jsonFh):
     hg19_dict = dict()
     hg38_dict = dict()
     repeat19 = list()
     repeat38 = list()
     continuous_count = 0
     genes_missing_info = list()
     genes_no_location = list()
 
     syms = getGeneSymbols()
 
     for sym in syms:
-        url = "https://panelapp.genomicsengland.co.uk/api/v1/genes/{}?format=json".format(sym)
+        url = "https://panelapp.genomicsengland.co.uk/api/v1/genes/entity_name={}&format=json".format(sym)
 
         count = 0
         while True:
             try:
                 myResponse = requests.get(url)
                 if myResponse.ok:
                     break
                 else:
                     logging.error("Some error on %s, retrying after 1 minute (trial %d)" % (url, count))
             except Exception:
                 logging.error("HTTP error on %s, retrying after 1 minute (trial %d)" % (url, count))
 
             time.sleep(60)    # Wait 1 minute before trying again
             count += 1        # Count the number of tries before failing
             if count > 10:    # Quit afer 10 failed attempts