a914d9bdef4d00a82f03f03c0176cf8c14eb7421
max
  Wed Jul 29 06:32:49 2015 -0700
allowing empty name fields in bigBed. refs #15780

diff --git src/hg/hgc/bigBedClick.c src/hg/hgc/bigBedClick.c
index c55e384..ce35956 100644
--- src/hg/hgc/bigBedClick.c
+++ src/hg/hgc/bigBedClick.c
@@ -64,32 +64,32 @@
 char *scoreFilter = cartOrTdbString(cart, tdb, "scoreFilter", NULL);
 int minScore = 0;
 if (scoreFilter)
     minScore = atoi(scoreFilter);
 
 /* Find particular item in list - matching start, and item if possible. */
 boolean found = FALSE;
 boolean firstTime = TRUE;
 struct bigBedInterval *bb;
 for (bb = bbList; bb != NULL; bb = bb->next)
     {
     if (!(bb->start == start && bb->end == end))
 	continue;
     if (bedSize > 3)
 	{
-	char *name = cloneFirstWordByTab(bb->rest);
-	boolean match = sameString(name, item);
+	char *name = cloneFirstWordByDelimiterNoSkip(bb->rest, '\t');
+	boolean match = (isEmpty(name) && isEmpty(item)) || sameString(name, item);
 	freez(&name);
 	if (!match)
 	    continue;
 	}
 
     found = TRUE;
     if (firstTime)
 	printf("<BR>\n");
     int seq1Seq2Fields = 0;
     // check for seq1 and seq2 in columns 7+8 (eg, pairedTagAlign)
     boolean seq1Seq2 = sameOk(trackDbSetting(tdb, BASE_COLOR_USE_SEQUENCE), "seq1Seq2");
     if (seq1Seq2 && bedSize == 6)
 	seq1Seq2Fields = 2;
     char *fields[bedSize+seq1Seq2Fields];
     char startBuf[16], endBuf[16];