360607541994aa88b49fc241c34bd964a1db7b50
lrnassar
  Tue Sep 29 15:07:07 2026 -0700
Rebuild the hs1 sgdpCopyNumber track as a faceted composite, so its 319
samples are picked from a searchable metadata table rather than 319
checkboxes; the same bigBeds are pointed at by the same /gbdb paths, so no
data changed.  Subtracks are renamed from <region>_<population>_<libId>_wssd
to sgdpCopyNumber_<libId> because a faceted composite requires the parent
name plus the primaryKey value, and dataTypes is deliberately unset: with it
hgTrackUi parses the data element only as far as the first underscore and
would truncate LP6005441-DNA_A01 to LP6005441-DNA.  The per-subtrack
'visibility dense' lines are gone because a faceted composite honors a
child's own display mode where a classic composite ignores it, so keeping
them would pin every sample to dense and remove the per-item click that the
copy number is read from.  Sample attributes come from the Reich lab SGDP
tables and 317 of the 319 join; sgdpCopyNumberBuild.py takes its sample list
from the checked-in sgdpCopyNumberSamples.tsv rather than from trackDb,
because at release the generated stanzas replace sgdpCopyNumber.trackDb.ra
and the legacy region prefix that the two unmatched samples depend on
disappears with them.  Alpha gets the new file and beta/public keep the old
one until the metadata and color files are on the RR, without which the
picker renders empty.  sgdpCopyNumber_subset, which turns out to be the first
29 samples in plate order rather than any curated set, is not in the alpha
version; whether it is retired for good is still open on the ticket.
Faceted composite suggested by Gerardo, and the cross-sandbox metadata fetch
that this track turned up was fixed by Max in b3a26a6aff3.  refs #29344

diff --git src/hg/makeDb/trackDb/human/hs1/t2t-supplied.trackDb.ra src/hg/makeDb/trackDb/human/hs1/t2t-supplied.trackDb.ra
index aca2d4424bb..e0d25eb8309 100644
--- src/hg/makeDb/trackDb/human/hs1/t2t-supplied.trackDb.ra
+++ src/hg/makeDb/trackDb/human/hs1/t2t-supplied.trackDb.ra
@@ -3,19 +3,20 @@
 include catLiftOffGenesV1.trackDb.ra
 include censat.trackDb.ra
 include clinVar20220313.trackDb.ra
 include cytoBandMapped.trackDb.ra
 include dbSNP155.trackDb.ra
 include encode.trackDb.ra
 include gwasSNPs2022-03-08.trackDb.ra
 include hgCactus.trackDb.ra
 include hgLiftOver.trackDb.ra
 include hgUnique.trackDb.ra
 include microsatellites.trackDb.ra
 include proseq.trackDb.ra
 include rdnaModel.trackDb.ra
 include rnaseq.trackDb.ra
 include sedefSegDups.trackDb.ra
-include sgdpCopyNumber.trackDb.ra
+include sgdpCopyNumber.trackDb.ra beta,public
+include sgdpCopyNumber.alpha.trackDb.ra alpha
 include t2tRepeatMasker.trackDb.ra