157d7eb9f2765db7651e12c14233c56fa7205e96 mspeir Thu Sep 17 14:46:12 2026 -0700 VCF help: add the two settings the sweep missed, and fix a value order, refs #38010 The earlier commit left out sampleMetadataFile and showHardyWeinberg on the grounds that nothing in the tree reads them. Both are read: hgc/vcfClick.c loads the metadata file in vcfGenotypeTable, and reads showHardyWeinberg with cartOrTdbBoolean in vcfGenotypesDetails. Neither call is gated on track type, so both also apply to vcfPhasedTrio, which tagTypes.tab had not allowed; that is corrected here too. sampleColorFile and showHardyWeinberg had no entry in trackDbLibrary.shtml, so they were missing from the trackDb doc pages as well. Both get a blurb, a row in trackDbDoc.html and trackDbHub.v3.html, and a changes.html note. sampleColorFile is the last VCF setting that was recognized but undocumented. vcf.html and the three trackDb doc files listed vcfPhasedColorBy as mendelDiff|deNovo|function|noColor. vcfUi.c prints the radio buttons in the opposite order, so the lists now read noColor|function|deNovo|mendelDiff, the way hapClusterColorBy already matches its own buttons. trackDbSettings.yaml and .json are regenerated. They also pick up minAc, vcfDoMinAc and vcfPhasedColorBy, which were documented earlier in this series without a regen. Found in the v504 code review, #38354. Co-Authored-By: Claude Opus 5 (1M context) diff --git src/hg/htdocs/goldenPath/help/vcf.html src/hg/htdocs/goldenPath/help/vcf.html index d64733d79ff..a0a4da64f5a 100755 --- src/hg/htdocs/goldenPath/help/vcf.html +++ src/hg/htdocs/goldenPath/help/vcf.html @@ -174,30 +174,32 @@

The remaining settings are OPTIONAL. Some are specific to VCF:

hapClusterEnabled   true|false                   # if file has phased genotypes, sort by local similarity
 hapClusterColorBy   altOnly|function|refAlt|base # coloring scheme, default altOnly, conditional on hapClusterEnabled
 hapClusterTreeAngle triangle|rectangle           # draw leaves as < or [, default <, conditional on hapClusterEnabled
 hapClusterHeight    N                            # height of track in pixels, default 128, conditional on hapClusterEnabled
 geneTrack           track name                   # gene track used by the function coloring scheme; without it that scheme is not offered
 applyMinQual        true|false                   # if true, don't display items with QUAL < minQual; default false
 minQual             Q                            # minimum value of Q column to display item, conditional on applyMinQual
 minFreq             F                            # minimum minor allele frequency to display item; default 0.0 

These VCF settings are also recognized. They are used mainly in track hubs and are rarely needed in a custom track line:

hapClusterMethod   centerWeighted|fileOrder|treeFile url # haplotype sort order, default centerWeighted
 sampleColorFile    url                                   # sample-to-color table, used with hapClusterMethod treeFile
+sampleMetadataFile url                                   # extra sample columns, added to the genotype table on the details page
+showHardyWeinberg  true|false                            # show Hardy-Weinberg equilibrium on the details page; default false
 minAc              N                                     # minimum alternate allele count to display item; default 0
 vcfDoQual          true|false                            # show the QUAL controls on the configuration page; default true
 vcfDoFilter        true|false                            # show the FILTER controls; default true
 vcfDoMaf           true|false                            # show the allele frequency control; default true
 vcfDoMinAc         true|false                            # show the allele count control; default true

Other optional settings are not specific to VCF, but relevant:

name            track label                 # default is "User Track"
 description     center label                # default is "User Supplied Track"
 visibility      squish|pack|full|dense|hide # default is hide (will also take numeric values 4|3|2|1|0)
 priority        N                           # default is 100
 db              genome database             # e.g. hg19 for Human Feb. 2009 (GRCh37)
 maxWindowToDraw N                           # don't display track when viewing more than N bases
 chromosomes     chr1,chr2,...               # track contains data only on listed reference assembly sequences 

@@ -239,31 +241,31 @@ of the haplotype lanes and unphased heterozygous variants are displayed in the area between the two haplotype lines.

Follow the steps for a normal VCF file, including moving the file to a web accessible location and generating a tabix index file, then use the following required vcfPhasedTrio trackDb settings to view the trio display:

type                   vcfPhasedTrio                 # The track type is required and must be "vcfPhasedTrio"
 bigDataUrl             http://url.to.vcfFile         # The bigDataUrl is required
 vcfChildSample         GT ID|alias                   # the Genotype column ID of the "child" sample, with an optional "|" followed by a human readable alias for the ID
 

There are also three optional settings for vcfPhasedTrio tracks:

vcfParentSamples       GT ID1|alias1,GT ID2|alias2        # comma separated (no spaces) list of the "parent" samples, with optional aliases
 vcfUseAltSampleNames   GT ID                              # Use the aliases in the display by default instead of the Genotype column ID
-vcfPhasedColorBy       mendelDiff|deNovo|function|noColor # allele coloring scheme, default noColor; function also requires geneTrack
+vcfPhasedColorBy       noColor|function|deNovo|mendelDiff # allele coloring scheme, default noColor; function also requires geneTrack
 

Other optional settings are not specific to VCF, but relevant:

maxWindowToDraw        N                             # don't display track when viewing more than N bases
 chromosomes            chr1,chr2,...                 # track contains data only on listed reference assembly sequences 

Examples

Example #1

In this example, you will create a custom track for an indexed VCF file that is already on a public server — variant calls generated by the 1000 Genomes Project. The line breaks inserted here for readability must be removed before submitting the track line:

browser position chr21:33,034,804-33,037,719
 track type=vcfTabix name="VCF Example One" description="VCF Ex. 1: 1000 Genomes phase 1 interim SNVs"
     chromosomes=chr21 maxWindowToDraw=200000