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/inc/vcfUi.h src/hg/inc/vcfUi.h index 8fac5e0..84f0848 100644 --- src/hg/inc/vcfUi.h +++ src/hg/inc/vcfUi.h @@ -41,16 +41,19 @@ #define VCF_EXCLUDE_FILTER_VAR "excludeFilterValues" #define VCF_MIN_ALLELE_FREQ_VAR "minFreq" #define VCF_DEFAULT_MIN_ALLELE_FREQ 0.0 void vcfCfgHaplotypeCenter(struct cart *cart, struct trackDb *tdb, char *track, boolean parentLevel, struct vcfFile *vcff, char *thisName, char *thisChrom, int thisPos, char *formName); /* If vcff has genotype data, show status and controls for choosing the center variant * for haplotype clustering/sorting in hgTracks. */ void vcfCfgUi(struct cart *cart, struct trackDb *tdb, char *name, char *title, boolean boxed); /* Complete track controls for VCF. */ +char *vcfHaplotypeOrSample(struct cart *cart); +/* Return "Sample" if the current organism is uniploid (like SARS-CoV-2), "Haplotype" otherwise. */ + #endif//def VCF_UI