31a8f798f6eb4466ccb1a7b76e5644b55c369980
max
Fri Mar 13 06:16:40 2026 -0700
subCfg: auto-show/hide composite vis on subtrack checkbox changes, refs #37182
Move the logic that auto-sets composite visibility to pack/hide when
subtracks are checked/unchecked into a separate onUserCbChange handler
bound via native addEventListener. jQuery .trigger('change') only fires
jQuery handlers, not native ones, so this correctly distinguishes real
user clicks from programmatic triggers during page init. Also bind it
on matCB (matrix) checkboxes and check only visible subCBs to avoid
counting hidden-but-checked subtracks.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
diff --git src/hg/makeDb/trackDb/human/hg38/webstr.ra src/hg/makeDb/trackDb/human/hg38/strVar.ra
similarity index 85%
rename from src/hg/makeDb/trackDb/human/hg38/webstr.ra
rename to src/hg/makeDb/trackDb/human/hg38/strVar.ra
index 743282d177e..31f075bc695 100644
--- src/hg/makeDb/trackDb/human/hg38/webstr.ra
+++ src/hg/makeDb/trackDb/human/hg38/strVar.ra
@@ -1,35 +1,32 @@
track strVar
shortLabel STR Variation
longLabel Short Tandem Repeat Variation
group varRep
superTrack on
-html strVar.html
visibility hide
track webstr
shortLabel WebSTR
longLabel WebSTR Short Tandem Repeat Loci (EnsembleTR Panel, 1000 Genomes)
type bigBed 9 +
itemRgb on
- bigDataUrl /gbdb/hg38/webstr/webstr.bb
+ bigDataUrl /gbdb/hg38/strVar/webstr.bb
visibility dense
superTrack strVar dense
url https://webstr.ucsd.edu/locus?repeat_id=$$&genome=hg38
urlLabel WebSTR locus page
searchIndex name
mouseOver $motif repeat, $numCopies copies, period $period
- html webstr.html
track strchive
shortLabel STRchive
longLabel STRchive Disease-Associated Short Tandem Repeat Loci
type bigBed 9 +
itemRgb on
- bigDataUrl /gbdb/hg38/webstr/strchive.bb
+ bigDataUrl /gbdb/hg38/strVar/strchive.bb
visibility pack
superTrack strVar pack
url https://strchive.org/loci/$$
urlLabel STRchive locus page
searchIndex name
mouseOver $name: $referenceMotif repeat in $gene, pathogenic min $pathogenicMin ($inheritance)
- html strchive.html