src/hg/lib/bed.c 1.64
1.64 2009/04/17 21:38:49 kent
Removing bedLoadNBin, which duplicated lots of code in bedLoadN for no good reason.
Index: src/hg/lib/bed.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/lib/bed.c,v
retrieving revision 1.63
retrieving revision 1.64
diff -b -B -U 4 -r1.63 -r1.64
--- src/hg/lib/bed.c 18 Mar 2009 01:34:07 -0000 1.63
+++ src/hg/lib/bed.c 17 Apr 2009 21:38:49 -0000 1.64
@@ -451,51 +451,8 @@
return list;
}
-
-struct bed *bedLoadNBin(char *row[], int wordCount)
-/* Convert a row of strings to a bed. */
-{
-struct bed * bed;
-int count;
-
-AllocVar(bed);
-bed->chrom = cloneString(row[1]);
-bed->chromStart = sqlUnsigned(row[2]);
-bed->chromEnd = sqlUnsigned(row[3]);
-if (wordCount > 3)
- bed->name = cloneString(row[4]);
-if (wordCount > 4)
- bed->score = sqlSigned(row[5]);
-if (wordCount > 5)
- bed->strand[0] = row[6][0];
-if (wordCount > 6)
- bed->thickStart = sqlUnsigned(row[7]);
-else
- bed->thickStart = bed->chromStart;
-if (wordCount > 7)
- bed->thickEnd = sqlUnsigned(row[8]);
-else
- bed->thickEnd = bed->chromEnd;
-if (wordCount > 8)
- bed->itemRgb = itemRgbColumn(row[9]);
-if (wordCount > 9)
- bed->blockCount = sqlUnsigned(row[10]);
-if (wordCount > 10)
- sqlSignedDynamicArray(row[11], &bed->blockSizes, &count);
-if (wordCount > 11)
- sqlSignedDynamicArray(row[12], &bed->chromStarts, &count);
-if (wordCount > 12)
- bed->expCount = sqlUnsigned(row[13]);
-if (wordCount > 13)
- sqlSignedDynamicArray(row[14], &bed->expIds, &count);
-if (wordCount > 14)
- sqlFloatDynamicArray(row[15], &bed->expScores, &count);
-return bed;
-}
-
-
static void bedOutputN_Opt(struct bed *el, int wordCount, FILE *f,
char sep, char lastSep, boolean useItemRgb)
/* Write a bed of wordCount fields, optionally interpreting field nine
as R,G,B values. */