002e82f03f1d3549a5b452c26ff776b5a8f0b4ba
hiram
  Thu Apr 11 11:30:23 2013 -0700
limit custom track submissions to 1,000 tracks, and add references to Track Hub and Big Wig help when limits prevent custom tracks refs #10599
diff --git src/hg/lib/wigAsciiToBinary.c src/hg/lib/wigAsciiToBinary.c
index 81b9fab..914abc5 100644
--- src/hg/lib/wigAsciiToBinary.c
+++ src/hg/lib/wigAsciiToBinary.c
@@ -362,32 +362,31 @@
 overallLowerLimit = wigEncodeStartingLowerLimit;
 overallUpperLimit = wigEncodeStartingUpperLimit;
 binout = mustOpen(wibFile,"w");	/*	binary data file	*/
 wigout = mustOpen(wigFile,"w");	/*	table row definition file */
 #if defined(DEBUG)	/*	dbg	*/
 chmod(wibFile, 0666);
 chmod(wigFile, 0666);
 #endif
 lf = lineFileOpen(wigAscii, TRUE);	/*	input file	*/
 while (lineFileNext(lf, &line, NULL))
     {
     boolean readingFrameSlipped;
 
     ++lineCount;
     if ((wibSizeLimit > 0) && (wibSize >= wibSizeLimit))
-        errAbort("data size limit of %lld data values has been exceeded; you must use bigWig files for large datasets<BR><A HREF=\"/goldenPath/help/bigWig.html\">(bigWig help)</A>", wibSizeLimit);
-
+        errAbort("data size limit of %lld data values has been exceeded.  This data can be efficiently displayed with the <A HREF='/goldenPath/help/bigWig.html' TARGET=_blank>bigWig file format</A> in a custom track, or in a <A HREF='/goldenPath/help/hgTrackHubHelp.html' TARGET=_blank>Track Hub</A> for multiple large datasets.", wibSizeLimit);
     line = skipLeadingSpaces(line);
     /*	ignore blank or comment lines	*/
     if ((line == (char *)NULL) || (line[0] == '\0') || (line[0] == '#'))
 	continue;		/*	!!! go to next line of input */
 
     wordCount = chopByWhite(line, words, ArraySize(words));
 
     if (sameWord("track",words[0]))
 	{
 	/* Allow (and ignore) one track line, but no more. */
 	++trackCount;
 	if (trackCount > 1)
 	    errAbort("Multiple tracks seen, second at line %d of %s, can only handle one.",
 	    	lf->lineIx, lf->fileName);
 	continue;