src/hg/hgTracks/bedTrack.c 1.9

1.9 2009/05/22 19:26:08 mikep
get rid of colon between +/- strands and split on space, by popular demand
Index: src/hg/hgTracks/bedTrack.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/hgTracks/bedTrack.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -b -B -U 4 -r1.8 -r1.9
--- src/hg/hgTracks/bedTrack.c	22 May 2009 10:11:16 -0000	1.8
+++ src/hg/hgTracks/bedTrack.c	22 May 2009 19:26:08 -0000	1.9
@@ -699,10 +699,10 @@
 
 char *colors = cloneString(trackDbSetting(tg->tdb, "colorByStrand"));
 if (!colors)
     errAbort("colorByStrand setting missing (in %s)", tg->mapName);
-if (chopByChar(colors, ':', words, sizeof(words)) != 2)
-    errAbort("invalid colorByStrand setting %s (expecting pair of RGB values r,g,b:r,g,b)", colors);
+if (chopByWhite(colors, words, sizeof(words)) != 2)
+    errAbort("invalid colorByStrand setting %s (expecting pair of RGB values r,g,b r,g,b)", colors);
 if (lf->orientation == 1)
     parseColor(words[0], &r, &g, &b);
 else if (lf->orientation == -1) 
     parseColor(words[1], &r, &g, &b);