8f064cfff5b905949513f7b410f1bcd85d52100b
chmalee
  Tue Aug 4 12:22:33 2020 -0700
Add info icon and text for trio de novo color, refs #25983

diff --git src/hg/lib/vcfUi.c src/hg/lib/vcfUi.c
index 9d63153..83066d9 100644
--- src/hg/lib/vcfUi.c
+++ src/hg/lib/vcfUi.c
@@ -617,37 +617,40 @@
 safef(varName, sizeof(varName), "%s.%s", name, VCF_PHASED_COLORBY_VAR);
 cgiMakeRadioButton(varName, VCF_PHASED_COLORBY_DEFAULT, sameString(colorBy, VCF_PHASED_COLORBY_DEFAULT));
 printf("No color<br>");
 char *geneTrack = cartOrTdbString(cart, tdb, "geneTrack", NULL);
 if (isNotEmpty(geneTrack))
     {
     cgiMakeRadioButton(varName, VCF_PHASED_COLORBY_FUNCTION, sameString(colorBy, VCF_PHASED_COLORBY_FUNCTION));
     printf("predicted functional affect: ");
     printf("reference alleles invisible, alternate alleles in "
            "<span style='color:red'>red</span> for non-synonymous, "
            "<span style='color:green'>green</span> for synonymous, "
            "<span style='color:blue'>blue</span> for UTR/noncoding, "
            "black otherwise<BR>\n");
     }
 cgiMakeRadioButton(varName, VCF_PHASED_COLORBY_DE_NOVO, sameString(colorBy, VCF_PHASED_COLORBY_DE_NOVO));
-printf("predicted de novo child mutations <span style='color:red'>red</span><br>");
+printf("predicted de novo child mutations <span style='color:red'>red</span>");
+char *deNovoInfoText = "Check this box to color child variants red if they are unique to the child";
+printInfoIcon(deNovoInfoText);
+printf("<br>");
 cgiMakeRadioButton(varName, VCF_PHASED_COLORBY_MENDEL_DIFF, sameString(colorBy, VCF_PHASED_COLORBY_MENDEL_DIFF));
 printf("child variants that are inconsistent with phasing <span style='color:red'>red</span>");
-char *infoText = "Check this box to color child variants red if they do not agree with the implied "
+char *phasedInfoText = "Check this box to color child variants red if they do not agree with the implied "
     "parental transmitted allele at this location. This configuration is only available when parent "
     "haplotypes are displayed.";
-printInfoIcon(infoText);
+printInfoIcon(phasedInfoText);
 }
 
 void vcfCfgUi(struct cart *cart, struct trackDb *tdb, char *name, char *title, boolean boxed)
 /* VCF: Variant Call Format.  redmine #3710 */
 {
 boxed = cfgBeginBoxAndTitle(tdb, boxed, title);
 printf("<TABLE%s><TR><TD>", boxed ? " width='100%'" : "");
 struct vcfFile *vcff = vcfHopefullyOpenHeader(cart, tdb);
 if (vcff != NULL)
     {
     boolean parentLevel = isNameAtParentLevel(tdb, name);
     boolean doVcfFilterUi = cartOrTdbBoolean(cart, tdb, VCF_DO_FILTER_UI, TRUE);
     boolean doVcfQualUi = cartOrTdbBoolean(cart, tdb, VCF_DO_QUAL_UI, TRUE);
     boolean doVcfMafUi = cartOrTdbBoolean(cart, tdb, VCF_DO_MAF_UI, TRUE);
     if (vcff->genotypeCount > 1 && !sameString(tdb->type, "vcfPhasedTrio"))