b08adb87ffe9706696cf47ea9356c05ab998ab5c
braney
  Mon Feb 22 11:29:25 2021 -0800
don't put up the query sequence for blat custom track which might have
multiple sequences

diff --git src/hg/hgc/hgc.c src/hg/hgc/hgc.c
index 7ab09d3..0be5bb97 100644
--- src/hg/hgc/hgc.c
+++ src/hg/hgc/hgc.c
@@ -3119,31 +3119,31 @@
 boolean firstTime = TRUE;
 for (bb = bbList; bb != NULL; bb = bb->next)
     {
     bbiCachedChromLookup(bbi, bb->chromId, lastChromId, chromName, sizeof(chromName));
 
     lastChromId=bb->chromId;
     bigBedIntervalToRow(bb, chromName, startBuf, endBuf, bedRow, 4);
     if (showEvery || sameString(bedRow[3], item))
 	{
         char *cdsStr, *seq;
         struct psl *psl= pslFromBigPsl(chromName, bb, seqTypeField, &seq, &cdsStr);
         slAddHead(&pslList, psl);
 
         // we're assuming that if there are multiple psl's with the same id that
         // they are the same query sequence so we only put out one set of sequences
-        if (firstTime  && !isEmpty(seq))    // if there is a query sequence
+        if (differentString(item, "PrintAllSequences") && firstTime && !isEmpty(seq))    // if there is a query sequence
             {
             firstTime = FALSE;
             printf("<H3>Links to sequence:</H3>\n");
             printf("<UL>\n");
 
             if (!isEmpty(cdsStr))  // if we have CDS 
                 {
                 puts("<LI>\n");
                 hgcAnchorSomewhere("htcTranslatedBigPsl", item, "translate", seqName);
                 printf("Translated Amino Acid Sequence</A> from Query Sequence\n");
                 puts("</LI>\n");
                 }
 
             puts("<LI>\n");
             hgcAnchorSomewhere("htcBigPslSequence", item, tdb->track, seqName);