src/hg/lib/wigAsciiToBinary.c 1.33

1.33 2009/09/30 22:11:03 tdreszer
Reverting Hiram's changes temporarily, since ENCODE pipeline is now failing validation left and right
Index: src/hg/lib/wigAsciiToBinary.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/lib/wigAsciiToBinary.c,v
retrieving revision 1.32
retrieving revision 1.33
diff -b -B -U 4 -r1.32 -r1.33
--- src/hg/lib/wigAsciiToBinary.c	30 Sep 2009 20:29:18 -0000	1.32
+++ src/hg/lib/wigAsciiToBinary.c	30 Sep 2009 22:11:03 -0000	1.33
@@ -563,29 +563,12 @@
     /* see if this is the first time through, establish chromStart 	*/
     if (validLines == 1)
 	{
 	chromStart = Offset;
-	verbose(2, "initial chromStart: %llu\n", chromStart);
-	if ((Offset > 0) && prevChromName && sameWord(prevChromName,chromName)
-		&& (Offset <= previousOffset))
-	    {
-	    if (noOverlap)
-		errAbort("chrom positions not in numerical order "
-		    "or\n\toverlapping data at line %lu.\n\t"
-		    "previous position: %llu >= %llu <-current",
-			lineCount, BASE_1(previousOffset), BASE_1(Offset));
-	    else
-		warn("WARNING: chrom positions not in numerical order "
-		    "or\n\toverlapping data at line %lu.\n\t"
-		    "previous position: %llu >= %llu <-current",
-			lineCount, BASE_1(previousOffset), BASE_1(Offset));
-	    }
+	verbose(2, "first offset: %llu\n", chromStart);
 	}
     else if ((validLines > 1) && (Offset <= previousOffset))
-	errAbort("chrom positions not in numerical order "
-	    "or\n\toverlapping data at line %lu.\n\t"
-		"previous position: %llu >= %llu <-current",
-		    lineCount, BASE_1(previousOffset), BASE_1(Offset));
+	errAbort("chrom positions not in numerical order at line %lu. previous: %llu > %llu <-current (offset)", lineCount, BASE_1(previousOffset), BASE_1(Offset));
 
     /* if we are working on a zoom level and the data is not exactly
      * spaced according to the span, then we need to put each value
      * in its own row in order to keep positioning correct for these