src/inc/metaWig.h 1.3
1.3 2010/06/03 17:09:12 kent
Removing parameter to metaWigOpen.
Index: src/inc/metaWig.h
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/inc/metaWig.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -b -B -U 1000000 -r1.2 -r1.3
--- src/inc/metaWig.h 3 Jun 2010 16:57:51 -0000 1.2
+++ src/inc/metaWig.h 3 Jun 2010 17:09:12 -0000 1.3
@@ -1,43 +1,44 @@
/* Interface class so that wigs and bigWigs look similar */
#ifndef METAWIG_H
#define METAWIG_H
#ifndef BBIFILE_H
#include "bbiFile.h"
#endif
enum metaWigType
{
mwtSections,
mwtBigWig,
};
struct metaWig
/* Interface class so that wigs and bigWigs look similar */
{
struct metaWig *next;
enum metaWigType type;
/* For type mwtSections */
- struct bwgSection *sectionList;
+ struct bwgSection *sectionList; /* List of all sections. */
struct hash *chromHash; /* Hash value is first section in that chrom */
+ struct lm *lm; /* Where sectionList is allocated. */
/* For type mwtBigWig */
struct bbiFile *bwf;
};
-struct metaWig *metaWigOpen(char *fileName, struct lm *lm);
+struct metaWig *metaWigOpen(char *fileName);
/* Wrap self around file. Read all of it if it's wig, just header if bigWig. */
void metaWigClose(struct metaWig **pMw);
/* Close up metaWig file */
struct slName *metaWigChromList(struct metaWig *mw);
/* Return list of chromosomes covered in wig. */
struct bbiInterval *metaIntervalsForChrom(struct metaWig *mw, char *chrom, struct lm *lm);
/* Get sorted list of all intervals with data on chromosome. */
#endif /* METAWIG_H */