6d02024d6f5b80437784b274ff2ccf6940dde976 mspeir Wed Sep 9 15:08:26 2026 -0700 VCF help: document geneTrack, the function coloring scheme, and vcfPhasedColorBy, refs #38010 The rest of the settings vcfUi.c reads from trackDb but neither help page mentioned. geneTrack (vcfUi.c:269 and :681) is the gate for the functional-effect coloring in both the haplotype display and the trio display: the radio button is only printed when the setting is non-empty. Nothing on either page said so, so the scheme was undiscoverable and its absence looked like a bug. hapClusterColorBy therefore has four values, not the three both pages listed -- hgVcfTrackHelp.html went as far as saying "There are three ways that reference and alternate alleles can be colored" above three bullets. Add the fourth, in the order vcfCfgHapClusterColor prints the buttons, and add function to the value lists in vcf.html. vcfPhasedColorBy (mendelDiff|deNovo|function|noColor) was documented nowhere at all, not even in trackDbLibrary.shtml, though vcf.html already described what it does in the alt text of the trio screenshot. Add it to the trio settings. Both settings tables needed a wider value column to fit, so those rows are repadded; no wording in them changed. Co-Authored-By: Claude Opus 5 (1M context) diff --git src/hg/htdocs/goldenPath/help/hgVcfTrackHelp.html src/hg/htdocs/goldenPath/help/hgVcfTrackHelp.html index 989b0612616..c43cbaa81e9 100755 --- src/hg/htdocs/goldenPath/help/hgVcfTrackHelp.html +++ src/hg/htdocs/goldenPath/help/hgVcfTrackHelp.html @@ -1,145 +1,150 @@

Configuring VCF tracks

Genome Browser VCF tracks may be configured in a variety of ways to highlight different aspects of the displayed information. By default, VCFs will display alleles with base-specific coloring. Homozygote data are shown as one letter, while heterozygotes will be displayed with both letters.

VCF default display

The default VCF custom track will display colored bases and will not show clustering unless specified as VCF/tabix in the custom track page.

The following section describes configuration settings available to VCF files compressed and indexed in the Tabix format. This requires VCF manipulation, separate index files, and a web accessible directory to reference from the bigDataUrl track line. For more information on setting up and uploading VCF/Tabix data, click the link on VCF custom track creation.

Configuring the haplotype sorting display

If the VCF file contains genotype columns for at least two samples (four haplotypes), then a haplotype sorting display can be configured. This can be useful for determining the similarity between the samples and inferring inheritance at a particular locus.

The haplotype sorting display is drawn only when the track's display mode is set to pack or squish; squish draws it at half the configured height. In full mode the track shows one row per variant, and in dense mode it collapses every variant onto a single row. Neither of those modes draws per-sample rows, so the settings described below have no effect in them. The haplotype sorting display is likewise unavailable in multi-region view and when Display data as a density graph is checked.

Enable Haplotype sorting display: When this option is checked, each sample's phased and/or homozygous genotypes are split into haplotypes, clustered by similarity around a central variant, and sorted for display by their position in the clustering tree. The tree (as space allows) is drawn in the label area next to the track image. Leaf clusters, in which all haplotypes are identical (at least for the variants used in clustering), are colored purple.

VCF tree diagram

The haplotype tree can be seen to the left of the track.

Each variant is drawn as a vertical column, using color to distinguish between reference alleles and alternate alleles of the horizontally running haplotypes. If unchecked, then the display is the same as for VCF without genotypes: a stacked bar graph of the top two alleles, showing the proportion of alleles if allele counts are available. This setting is enabled by default.

The following options are applicable only when the haplotype sorting display is enabled:

Haplotype sorting order: Haplotypes are sorted using a distance function that uses a central variant. Differences between haplotypes are penalized with weights that decrease for each successive variant away from the central variant. By default, the median variant in the window is used. By clicking on a variant in the display, you will get the option to always use that variant when it is in the current view.

-Haplotype coloring scheme: There are three ways that reference and alternate +Haplotype coloring scheme: There are four ways that reference and alternate alleles can be colored:

In all coloring modes, if some alleles in a haplotype are undefined, a pale yellowish color is used for those alleles.

Haplotype clustering leaf shape: Leaf clusters are collections of identical haplotypes. By default, they are drawn as open triangles <. They can also be displayed as open rectangles [.

VCF options

Haplotype sorting display height: This number represents the track height in pixels. If the number of pixels is fewer than the number of haplotypes (2 * the number of genotype columns), some horizontal pixel rows must represent multiple haplotypes; with differing haplotypes' colors combined according to the selected coloring scheme.

VCF options

Filtering out variants

Variants can be filtered out of the display according to several properties:

VCF options

When you have finished making your configuration changes, click the button to return to the annotation track display page.