Index: src/lib/bwgCreate.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/lib/bwgCreate.c,v
retrieving revision 1.25
retrieving revision 1.26
diff -b -B -U 4 -r1.25 -r1.26
--- src/lib/bwgCreate.c	29 May 2010 22:28:44 -0000	1.25
+++ src/lib/bwgCreate.c	3 Jun 2010 23:36:04 -0000	1.26
@@ -1007,8 +1007,21 @@
 {
 struct lineFile *lf = lineFileOpen(fileName, TRUE);
 char *line;
 struct bwgSection *sectionList = NULL;
+
+/* remove initial browser and track lines */
+while (lineFileNextReal(lf, &line))
+    {
+    if (!(startsWith("browser", line) || startsWith("track", line) ))
+        {
+        verbose(2, "found line not browser or track: %s\n", line);
+        lineFileReuse(lf);
+        break;
+        }
+    verbose(2, "skipping %s\n", line);
+    }
+
 while (lineFileNextReal(lf, &line))
     {
     verbose(2, "processing %s\n", line);
     if (stringIn("chrom=", line))

