9169db807b49113b231d35f2beec4e04c2fb1756
lrnassar
  Wed Jun 3 08:29:02 2026 -0700
Add dataVersion to Orphanet and ClinGen dosage tracks to show upstream release. refs #36455

Orphanet: parse the JDBOR release version (e.g. 1.3.42 / 4.1.8 [2025-03-03]) from
the downloaded XML and write it to a per-assembly version.txt that the orphadata
track points to via dataVersion.

ClinGen: write the ClinGen dosage 'results as of' date (e.g. 28 Apr,2026) from the
curation list header to a version file shared by the clinGenHaplo and clinGenTriplo
subtracks. The other ClinGen feeds publish no dataset-level date, so they are left
unversioned.

The version file is written per assembly only after that assembly's bigBed is
installed, surfacing the source's own release, which can differ from our otto
update timestamp.

diff --git src/hg/makeDb/trackDb/human/trackDb.ra src/hg/makeDb/trackDb/human/trackDb.ra
index 65c13cd63d9..96648ebf779 100644
--- src/hg/makeDb/trackDb/human/trackDb.ra
+++ src/hg/makeDb/trackDb/human/trackDb.ra
@@ -5567,30 +5567,31 @@
 termRegex nssv[0-9]+
 searchType bed
 searchPriority 50
 
 searchTable cnvDevDelayControl
 semiShortCircuit 1
 termRegex nssv[0-9]+
 searchType bed
 searchPriority 50
 
 include covidHgiGwas.ra
 include covidTracks.ra
  
 track orphadata
 bigDataUrl /gbdb/$D/bbi/orphanet/orphadata.bb
+dataVersion /gbdb/$D/bbi/orphanet/version.txt
 shortLabel Orphanet
 longLabel Orphadata: Aggregated Data From Orphanet
 group phenDis
 type bigBed 9 +
 bedNameLabel OrphaCode
 url http://www.orpha.net/consor/cgi-bin/OC_Exp.php?lng=en&Expert=$$
 urlLabel OrphaNet Phenotype Link:
 urls ensemblID="https://grch37.ensembl.org/Homo_sapiens/Gene/Summary?db=core;g=$$" pmid="https://pubmed.ncbi.nlm.nih.gov/$$" orphaCode="http://www.orpha.net/consor/cgi-bin/OC_Exp.php?lng=en&Expert=$$" omim="https://www.omim.org/entry/$$?search=$$&highlight=$$" hgnc="https://www.genenames.org/data/gene-symbol-report/#!/hgnc_id/HGNC:$$"
 skipEmptyFields on
 skipFields name,score,itemRgb
 mouseOver Gene: $geneSymbol, Disorder: $disorder, Inheritance(s): $inheritance, Onset: $onsetList
 filterValues.assnType Biomarker tested in,Candidate gene tested in,Disease-causing germline mutation(s) (gain of function) in,Disease-causing germline mutation(s) (loss of function) in,Disease-causing germline mutation(s) in,Disease-causing somatic mutation(s) in,Major susceptibility factor in,Modifying germline mutation in,Part of a fusion gene in,Role in the phenotype of
 filterValues.inheritance Autosomal dominant,Autosomal recessive,Mitochondrial inheritance,Multigenic/multifactorial,No data available,Not applicable,Oligogenic,Semi-dominant,Unknown,X-linked dominant,X-linked recessive,Y-linked
 filterValues.onsetList Adolescent,Adult,All ages,Antenatal,Childhood,Elderly,Infancy,Neonatal,No data available
 itemRgb on