da33d70c10ddaae6c3290cb900d7d0cc2b6ee01b
hiram
  Tue Mar 17 13:57:24 2026 -0700
allow calculation of GC percent on the fly with code help from claude refs #35958

diff --git src/hg/hgc/togaClick.c src/hg/hgc/togaClick.c
index de092e4773d..dadc3da2016 100644
--- src/hg/hgc/togaClick.c
+++ src/hg/hgc/togaClick.c
@@ -282,31 +282,34 @@
 
 void print_with_newlines(const char *str) {
     int line_length = 80; // Number of characters per line
     int length = strlen(str);
     int i = 0;
 
     while (i < length) {
         /* Print up to 80 characters or the remainder of the string */
         int chars_to_print = (length - i < line_length) ? (length - i) : line_length;
         printf("%.*s<BR>", chars_to_print, &str[i]);
         i += chars_to_print;
     }
 }
 
 static void panelPrompt(char *target, char *prompt)
-/* output span element for an expandable text element */
+/* output span element for an expandable text element
+ *  this opens a <div> element, you need to close it </div> after your text in
+ *  this section has been output.
+ */
 {
 printf("<span class='hideToggle' dataTarget='%s' style='cursor: pointer; color: blue;'><img height='18' width='18' src='../images/add_sm.gif'>&nbsp;%s:</span>\n", target, prompt);
 printf("<div id='%s' style='display: none;'>\n", target);
 }
 
 void doHillerLabTOGAGeneBig(char *database, struct trackDb *tdb, char *item, char *table_name)
 /* Put up TOGA Gene track info. */
 // To think about -> put into a single bigBed
 // string: HTML formatted inact mut
 // string: HTML formatted exon ali section
 {
 int start = cartInt(cart, "o");
 int end = cartInt(cart, "t");
 char *chrom = cartString(cart, "c");
 char *fileName = bbiNameFromSettingOrTable(tdb, NULL, tdb->table);