c6a3bbe14bed11668f0131bd1597c24f79d7f3dd
angie
  Tue Oct 28 11:59:55 2014 -0700
Allow start==end in hgTables' user-defined regions BED (valid for insertions).fixes #14238

diff --git src/hg/hgTables/userRegions.c src/hg/hgTables/userRegions.c
index dae9734..f93c456 100644
--- src/hg/hgTables/userRegions.c
+++ src/hg/hgTables/userRegions.c
@@ -51,33 +51,33 @@
 
 static boolean illegalCoordinate(char *chrom, int start, int end)
 /* verify start and end are legal for this chrom */
 {
 int maxEnd = hChromSize(database, chrom);
 if (start < 0)
     {
     warn("chromStart (%d) less than zero", start);
     return TRUE;
     }
 if (end > maxEnd)
     {
     warn("chromEnd (%d) greater than chrom length (%s:%d)", end, chrom, maxEnd);
     return TRUE;
     }
-if (start >= end)
+if (start > end)
     {
-    warn("chromStart (%d) must be less than chromEnd (%s:%d)", start, chrom, end);
+    warn("chromStart (%d) greater than chromEnd (%s:%d)", start, chrom, end);
     return TRUE;
     }
 return FALSE;
 }
 
 static struct bed *parseRegionInput(char *inputString)
 /* scan the user region definition, turn into a bed list */
 {
 int itemCount = 0;
 struct bed *bedList = NULL;
 struct bed *bedEl;
 int wordCount;
 char *words[5];
 struct lineFile *lf;