a37d4ffb473b6ebf6c66545f2b7d5f7eef35ef4b
max
  Fri Apr 10 03:00:33 2026 -0700
Color strVar subtracks by expected heterozygosity instead of motif period, fix hgTrackUi filter label truncation, refs #36652

Change all four strVar subtracks (webstr, tommoStr, trexplorer, viennaVntr) from
motif-period-based coloring to expected heterozygosity (het = 1 - sum(p_i^2)),
using a blue-to-red heat map: dark blue (het<0.1) through medium blue, light
purple, salmon, to dark red (het>=0.7). Add het as a filterable bigBed field with
scoreFilter and filterByRange on each track. Update mouseOver, track docs, and
makedoc. Also fix hgTrackUi to strip the "|..." suffix from autoSql comments
when displaying numeric filter labels.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

diff --git src/hg/makeDb/scripts/webstr/webstr.as src/hg/makeDb/scripts/webstr/webstr.as
index 15a55aa3aec..26ed024c6a6 100644
--- src/hg/makeDb/scripts/webstr/webstr.as
+++ src/hg/makeDb/scripts/webstr/webstr.as
@@ -2,26 +2,27 @@
 "WebSTR short tandem repeat loci with allele frequency data from EnsembleTR panel"
     (
     string chrom;        "Chromosome"
     uint chromStart;     "Start position"
     uint chromEnd;       "End position"
     string name;         "Repeat motif x copy count"
     uint score;          "Score (0-1000)"
     char[1] strand;      "Strand"
     uint thickStart;     "Thick start (same as chromStart)"
     uint thickEnd;       "Thick end (same as chromEnd)"
     uint reserved;       "Item color RGB"
     string motif;        "Repeat unit motif"
     uint period;         "Length of repeat unit"
     uint numCopies;      "Number of repeat copies in reference"
     string repeatId;     "WebSTR repeat identifier"
+    float het;           "Expected heterozygosity|1 - sum(p_i^2) pooled across all 1000 Genomes populations"
     lstring afrHist;     "AFR allele frequency histogram (space-separated allele=freq pairs)"
     uint afrN;           "AFR sample count"
     lstring amrHist;     "AMR allele frequency histogram (space-separated allele=freq pairs)"
     uint amrN;           "AMR sample count"
     lstring easHist;     "EAS allele frequency histogram (space-separated allele=freq pairs)"
     uint easN;           "EAS sample count"
     lstring eurHist;     "EUR allele frequency histogram (space-separated allele=freq pairs)"
     uint eurN;           "EUR sample count"
     lstring sasHist;     "SAS allele frequency histogram (space-separated allele=freq pairs)"
     uint sasN;           "SAS sample count"
     )