bac95a147f49cd331052e597006e04b3deee40fc
max
  Wed Apr 22 10:43:20 2026 -0700
lrSv/srSv: human-readable SV type filter labels, script cleanups

Add human-readable labels to the supertrack-level svType filter on
both the lrSv and srSv supertracks using the "CODE|CODE (Long name)"
filterValues syntax: DEL -> "DEL (Deletion)", INS -> "INS (Insertion)",
etc. Labels keep the short code up front so users can match what
hgTracks shows next to each feature.

Also sweep in the in-progress converter/as-file cleanups under
scripts/lrSv/ and scripts/srSv/ (introduction of lrSvCommon.py
helpers, consistent insLen / svLen / AC column naming, tightened
field-description text) that had been piling up as an unstaged
working tree.

refs #36258

diff --git src/hg/makeDb/scripts/srSv/abelSv.as src/hg/makeDb/scripts/srSv/abelSv.as
index 60f057c25a2..05166ef4fe6 100644
--- src/hg/makeDb/scripts/srSv/abelSv.as
+++ src/hg/makeDb/scripts/srSv/abelSv.as
@@ -1,32 +1,33 @@
 table abelSv
 "Structural variants from Abel et al. 2020 (CCDG, 17,795 human genomes)"
     (
     string chrom;      "Chromosome"
     uint   chromStart; "Start position"
     uint   chromEnd;   "End position"
     string name;       "Variant ID"
     uint   score;      "Score (0-1000), higher AF is higher"
     char[1] strand;    "Strand (. for most SVs)"
     uint   thickStart; "Thick start (same as chromStart)"
     uint   thickEnd;   "Thick end (same as chromEnd)"
     uint   itemRgb;    "RGB color based on SV type"
     string svType;     "SV Type|DEL=deletion, DUP=duplication, INV=inversion, MEI=mobile element insertion, BND=breakend/translocation"
-    int    svLength;   "SV Length (bp)|Difference in length between REF and ALT alleles; -1 for BND"
+    int    svLen;      "SV Length (bp)|Length of the variant on the reference in base pairs; -1 for BND"
+    int    insLen;     "Insertion Length|Length of inserted sequence, 0 for DEL/INV/CPX"
+    int    AC;         "Allele Count (AC)|Total alternate-allele count across all samples"
     string callset;    "Source callset|B38=native GRCh38 calls (14,623 samples), B37lift=lifted from GRCh37 (8,417 samples)"
     string filter;     "Filter status|PASS (high confidence) or LOW (low confidence)"
-    int    ac;         "Allele Count (AC)|Total alternate-allele count across all samples"
     int    an;         "Allele Number (AN)|Total called alleles across all samples"
     float  af;         "Allele Frequency (AF)|AC/AN"
     float  msq;        "Mean Sample Quality (MSQ)|Mean GQ across positively genotyped samples"
     int    nSamp;      "Samples with non-reference genotype (NSAMP)"
     int    nFam;       "Families with non-reference genotype (NFAM)"
     string mateChrom;  "Mate chromosome|For BND only; translocation partner"
     int    matePos;    "Mate position|For BND only; -1 otherwise"
     int    acAfr;      "AC - African (AFR)"
     int    anAfr;      "AN - African (AFR)"
     int    acAmr;      "AC - Latino/Admixed-American (AMR)"
     int    anAmr;      "AN - Latino/Admixed-American (AMR)"
     int    acNfe;      "AC - Non-Finnish European (NFE)"
     int    anNfe;      "AN - Non-Finnish European (NFE)"
     int    acFe;       "AC - Finnish European (FE)"
     int    anFe;       "AN - Finnish European (FE)"