src/hg/hgc/hgc.c 1.1527

1.1527 2009/04/17 21:38:47 kent
Removing bedLoadNBin, which duplicated lots of code in bedLoadN for no good reason.
Index: src/hg/hgc/hgc.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/hgc/hgc.c,v
retrieving revision 1.1526
retrieving revision 1.1527
diff -b -B -U 4 -r1.1526 -r1.1527
--- src/hg/hgc/hgc.c	17 Apr 2009 19:25:26 -0000	1.1526
+++ src/hg/hgc/hgc.c	17 Apr 2009 21:38:47 -0000	1.1527
@@ -18129,8 +18129,9 @@
 struct dyString *itemUrl = newDyString(128), *d;
 char *old = "_";
 char *new = "";
 char *pat = "fold";
+int hasBin = 1;
 dupe = cloneString(tdb->type);
 wordCount = chopLine(dupe, words);
 /* get bed size */
 num = 0;
@@ -18139,9 +18140,9 @@
 /* get data for this item */
 sprintf(query, "select * from %s where name = '%s' and chromStart = %d", tdb->tableName, item, start);
 sr = sqlGetResult(conn, query);
 while ((row = sqlNextRow(sr)) != NULL)
-    bed = bedLoadNBin(row, num);
+    bed = bedLoadN(row+hasBin, num);
 
 genericHeader(tdb, item);
 /* convert chromosome co-ordinates to scaffold position and */
 /* make into item for URL */