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
@@ -1,46 +1,48 @@
 #!/bin/bash
 
 # downloads and builds the ClinGen Gene Validity track
 # assumes running in the build directory:
 # /hive/data/outside/otto/clinGen/
 set -beEu -o pipefail
 
 WORKDIR=$1
 mkdir -p ${WORKDIR}/clinGenGeneValidity
 cd ${WORKDIR}/clinGenGeneValidity
 
 # the release directory, where gbdb symlinks will point
 if [ ! -d release ]; then
     mkdir -p ${WORKDIR}/release/{hg19,hg38}
 fi
 
 echo "user anonymous
 ls hg*ClinGenBigBed.bb
 bye" > ftp.geneDiseaseValidity.cmds
 
 if [ -e release.list ]
 then
     mv release.list prev.release.list
 fi
 touch prev.release.list
 rm -f release.list
 
 # connect and list a directory, result to file: ls.check
 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