b24afd50025b4dd947bc69e6ff266831c6d76629
lrnassar
Mon Jul 13 07:48:56 2026 -0700
lrSv: fix rename fallout from CR - broken generator string, missed link, stale comment. refs #36258
Fix a literal newline that leaked into a Python string literal in lrSvMergeAll.py
during the longReadVariants rename (the file no longer parsed). Update the missed
g=lrSv cross-link in hg38/viennaVntr.html to g=longReadVariants. Correct the stale
"lrSv.filter." cart-key prefix in the lrSv.ra comment to "longReadVariants.filter.".
diff --git src/hg/makeDb/scripts/lrSv/lrSvMergeAll.py src/hg/makeDb/scripts/lrSv/lrSvMergeAll.py
index 907d37e57b6..87989070980 100644
--- src/hg/makeDb/scripts/lrSv/lrSvMergeAll.py
+++ src/hg/makeDb/scripts/lrSv/lrSvMergeAll.py
@@ -485,32 +485,31 @@
def write_trackdb_stanza(out_path, dbs):
"""Auto-generated full trackDb stanza for the lrSvAll track.
Written directly into the trackDb dir and pulled in via
`include lrSvAll.ra` from lrSv.ra.
"""
# Commas are the separator in filterValues, so strip them from labels.
# The original label (with commas) still appears on the detail page via
# the autoSql field descriptions.
src_parts = [f"{db['key']}|{db['label'].replace(',', '')}" for db in dbs]
with open(out_path, "w") as f:
f.write("# AUTO-GENERATED by ~/kent/src/hg/makeDb/scripts/lrSv/lrSvMergeAll.py\n")
f.write("# Do not edit by hand - re-run the merge script and re-commit.\n\n")
f.write(" track lrSvAll\n")
- f.write(" parent longReadVariants
-")
+ f.write(" parent longReadVariants\n")
f.write(" bigDataUrl /gbdb/$D/lrSv/lrSvAll.bb\n")
f.write(" shortLabel All LR SVs merged\n")
f.write(" longLabel All long-read SVs merged across subtracks "
"by exact position, with per-database AC\n")
f.write(" type bigBed 9 +\n")
f.write(" itemRgb on\n")
f.write(" visibility pack\n")
f.write(" mouseOver Var: $name ($svType)
SV len: $svLen"
"
Ins len: $insLen
Sources: $sources"
"
AF range: $minAF-$maxAF
AC: $AC\n")
# Source filter
f.write(" filterValues.sources " + ",".join(src_parts) + "\n")
f.write(" filterType.sources multipleListOr\n")
f.write(" filterLabel.sources Source Database\n")
# SV type