f2ef97844c0973a30cbbc1afcdd01b4096143a69
lrnassar
  Wed Jun 3 10:56:07 2026 -0700
Add date-based dataVersion to composite/superTrack otto containers. refs #36455

Composite and superTrack container pages do not display 'Data last updated at
UCSC' (printUpdateTime returns early for them), so a dataVersion file is the
only freshness signal a user sees there. Add one to the dbVar (dbVarSv),
panelApp, clinGen (clinGenComp) and decipher (decipherContainer) containers.

Each otto build script writes a per-assembly 'Last updated <date>' file when it
actually updates the data, and the container stanza points to it via dataVersion.
clinGen's container date is written by its three displayed feeds (makeDosage,
makeGeneValidity, makeClinGenCspec); decipher writes hg38 only (hg19 is frozen).

diff --git src/hg/utils/otto/clinGen/makeGeneValidity.sh src/hg/utils/otto/clinGen/makeGeneValidity.sh
index 96e19af8d68..71218dda5be 100755
--- src/hg/utils/otto/clinGen/makeGeneValidity.sh
+++ src/hg/utils/otto/clinGen/makeGeneValidity.sh
@@ -29,18 +29,20 @@
 ftp -n -v -i ftp.clinicalgenome.org 2>&1 < ftp.geneDiseaseValidity.cmds &> ls.check
 grep "hg.*ClinGenBigBed.bb" ls.check | sort > release.list || echo "Error - no bigBed files found"
 
 # see if anything is changing, if so, notify, download, and build
 diff prev.release.list release.list > release.diff || true
 count=`wc -l release.diff | cut -d' ' -f1`
 if [ "${count}" -gt 1 ]; then
     printf "New ClinGen Gene-Disease tracks\n"
     today=`date +%F`
     mkdir -p $today
     cd $today
     wget -N -q "ftp://ftp.clinicalgenome.org/hg19ClinGenBigBed.bb"
     wget -N -q "ftp://ftp.clinicalgenome.org/hg38ClinGenBigBed.bb"
     cp hg19ClinGenBigBed.bb ${WORKDIR}/release/hg19/clinGenGeneDisease.bb
     cp hg38ClinGenBigBed.bb ${WORKDIR}/release/hg38/clinGenGeneDisease.bb
+    printf 'Last updated %s\n' "$today" > ${WORKDIR}/release/hg19/clinGenVersion.txt
+    printf 'Last updated %s\n' "$today" > ${WORKDIR}/release/hg38/clinGenVersion.txt
     cd ..
     echo "ClinGen Gene-Disease update done: `date`"
 fi