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 ' 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/makeClinGenCspec.sh src/hg/utils/otto/clinGen/makeClinGenCspec.sh index d943becf6b4..2e277860458 100755 --- src/hg/utils/otto/clinGen/makeClinGenCspec.sh +++ src/hg/utils/otto/clinGen/makeClinGenCspec.sh @@ -276,20 +276,29 @@ # Check if the absolute difference is greater than 20% if (( $(echo "$absDiffHg38 > 20" | bc -l) || $(echo "$absDiffHg19 > 20" | bc -l) )); then echo echo "Error: Difference in item count exceeds 20%." echo "Difference in hg38: $diffHg38%" echo "Difference in hg19: $diffHg19%" exit 1 fi # If the difference is within the 20%, proceed mv clinGenCspecHg38.new.bb clinGenCspecHg38.bb mv clinGenCspecHg19.new.bb clinGenCspecHg19.bb mv svis.json svis.json.old +# clinGenComp container "last updated" date. This Cspec feed runs as a separate cron, but +# clinGenCspec is a displayed subtrack, so stamp the shared per-db version file that the +# composite's dataVersion reads. (This script runs in the clinGenCspec/ subdir, so use the +# absolute release path.) +today=$(date +%F) +for db in hg19 hg38; do + printf 'Last updated %s\n' "$today" > /hive/data/outside/otto/clinGen/release/${db}/clinGenVersion.txt +done + echo echo "Item counts for hg38 old vs. new bigBed. Old: $oldCountHg38 New: $newCountHg38" echo "Item counts for hg19 old vs. new bigBed. Old: $oldCountHg19 New: $newCountHg19" echo echo "ClinGen VCEP specifications track built successfully."