80130381d2c180f429661643c0d83bd598791210 braney Thu Jun 10 20:13:29 2010 +0000 skip browser and track lines at the begining of bedGraphs and wigs when creating bigWigs (added function in linefile to do this) diff --git src/lib/linefile.c src/lib/linefile.c index ae42a72..90839bc 100644 --- src/lib/linefile.c +++ src/lib/linefile.c @@ -13,7 +13,7 @@ #include "pipeline.h" #include <signal.h> -static char const rcsid[] = "$Id: linefile.c,v 1.60 2009/06/23 23:39:10 kent Exp $"; +static char const rcsid[] = "$Id: linefile.c,v 1.61 2010/06/10 20:13:29 braney Exp $"; char *getFileNameFromHdrSig(char *m) /* Check if header has signature of supported compression stream, @@ -922,3 +922,19 @@ return(body); } /* lineFileSlurpHttpBody */ +void lineFileRemoveInitialCustomTrackLines(struct lineFile *lf) +/* remove initial browser and track lines */ +{ +char *line; +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); + } +} +