2ddc6960dfafe56039fe6ef3797daa46187dc1f4
kate
  Fri Nov 1 17:47:26 2013 -0700
Add link to Motif panel for help page.  refs #9092
diff --git src/hg/hgc/regMotif.c src/hg/hgc/regMotif.c
index f409335..ef31276 100644
--- src/hg/hgc/regMotif.c
+++ src/hg/hgc/regMotif.c
@@ -102,39 +102,43 @@
 }
 
 
 void motifMultipleHitsSection(struct dnaSeq **seqs, int count, struct dnaMotif *motif)
 /* Print out section about motif, possibly with mutliple occurrences. */
 {
 // Detect inconsistent motif/pwm tables and suppress confusing display
 if (motif != NULL)
     {
     if (motif->columnCount != seqs[0]->size)
         {
         warn("Motif seq length doesn't match PWM\n");
         return;
         }
     }
+
+#define MOTIF_HELP_PAGE "../goldenPath/help/hgRegMotifHelp.html"
 webNewSection("Motif:");
 printf("<PRE>\n");
 printf("<table>\n");
 if (motif != NULL)
     {
     struct tempName pngTn;
     dnaMotifMakeProbabalistic(motif);
     makeTempName(&pngTn, "logo", ".png");
     dnaMotifToLogoPng(motif, 47, 140, NULL, "../trash", pngTn.forCgi);
+    printf("<tr><td></td><td colspan='%d'align=right><a href=\"%s\" target=_blank>Motif display help</a></td></tr>", 
+        motif->columnCount, MOTIF_HELP_PAGE);
     printf("<tr><td></td><td colspan='%d'>", motif->columnCount);
     printf("<IMG SRC=\"%s\" BORDER=1>", pngTn.forHtml);
     printf("</td><td></td></tr>\n");
     }
 if (count > 0)
     {
     int i;
     for (i = 0; i < count; i++)
         {
         struct dnaSeq *seq = seqs[i];
         printf("<tr><td></td>");
         touppers(seq->dna);
         printDnaCells(seq->dna, seq->size);
         if (count == 1)
             printf("<td>this occurrence</td></tr>\n");