src/inc/bigWig.h 1.12
1.12 2009/11/10 05:45:47 kent
Making bigWigSummary functions take a bbiFile rather than a fileName.
Index: src/inc/bigWig.h
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/inc/bigWig.h,v
retrieving revision 1.11
retrieving revision 1.12
diff -b -B -U 4 -r1.11 -r1.12
--- src/inc/bigWig.h 17 Jun 2009 15:19:00 -0000 1.11
+++ src/inc/bigWig.h 10 Nov 2009 05:45:47 -0000 1.12
@@ -36,8 +36,10 @@
struct bbiFile *bigWigFileOpen(char *fileName);
/* Open up big wig file. Free this up with bbiFileClose */
+#define bigWigFileClose(a) bbiFileClose(a)
+
struct bbiInterval *bigWigIntervalQuery(struct bbiFile *bwf, char *chrom, bits32 start, bits32 end,
struct lm *lm);
/* Get data for interval. Return list allocated out of lm. */
@@ -45,22 +47,22 @@
FILE *out);
/* Print out info on bigWig parts that intersect chrom:start-end. Set maxCount to 0 if you
* don't care how many are printed. Returns number printed. */
-boolean bigWigSummaryArray(char *fileName, char *chrom, bits32 start, bits32 end,
+boolean bigWigSummaryArray(struct bbiFile *bwf, char *chrom, bits32 start, bits32 end,
enum bbiSummaryType summaryType, int summarySize, double *summaryValues);
/* Fill in summaryValues with data from indicated chromosome range in bigWig file.
* Be sure to initialize summaryValues to a default value, which will not be touched
* for regions without data in file. (Generally you want the default value to either
* be 0.0 or nan(0) depending on the application.) Returns FALSE if no data
* at that position. */
-boolean bigWigSummaryArrayExtended(char *fileName, char *chrom, bits32 start, bits32 end,
+boolean bigWigSummaryArrayExtended(struct bbiFile *bwf, char *chrom, bits32 start, bits32 end,
int summarySize, struct bbiSummaryElement *summary);
/* Get extended summary information for summarySize evenely spaced elements into
* the summary array. */
-double bigWigSingleSummary(char *fileName, char *chrom, int start, int end,
+double bigWigSingleSummary(struct bbiFile *bwf, char *chrom, int start, int end,
enum bbiSummaryType summaryType, double defaultVal);
/* Return the summarized single value for a range. */
#endif /* BIGWIG_H */