e8405a958dae40b261b2eadcd59a20edc64761f1
angie
Wed May 13 15:25:04 2020 -0700
VCF details and track controls: use "sample" instead of "haplotype" when displaying SARS-CoV-2 data because viruses are not diploid. refs #25409
Also don't display "leaf cluster" shape option, which applies only to the center-weighted haplotype clustering, unless that method is selected.
diff --git src/hg/hgc/vcfClick.c src/hg/hgc/vcfClick.c
index 3238233..d5f2435 100644
--- src/hg/hgc/vcfClick.c
+++ src/hg/hgc/vcfClick.c
@@ -486,44 +486,42 @@
printf("dbSNP: ");
printDbSnpRsUrl(rec->name, "%s", rec->name);
puts("
");
}
else if (regexMatch(rec->name, "^[en]ss?v[0-9]+$"))
{
printf("dbVar: ");
printf("%s
\n", rec->name, rec->name);
}
printCustomUrl(tdb, rec->name, TRUE);
boolean hapClustEnabled = cartOrTdbBoolean(cart, tdb, VCF_HAP_ENABLED_VAR, TRUE);
if (hapClustEnabled && rec->file != NULL && rec->file->genotypeCount > 1)
{
char *hapMethod = cartOrTdbString(cart, tdb, VCF_HAP_METHOD_VAR, VCF_DEFAULT_HAP_METHOD);
+ char *hapOrSample = vcfHaplotypeOrSample(cart);
if (sameString(hapMethod, VCF_HAP_METHOD_CENTER_WEIGHTED))
{
static char *formName = "vcfCfgHapCenter";
printf("