94672ce4f2953546899086d417a191e04aa9bf2f kent Wed Feb 27 09:55:10 2013 -0800 Adding chromId to bigBedInterval structure for item name based queries. Removing unused ppBed structure. diff --git src/inc/bigBed.h src/inc/bigBed.h index 8aee277..b0702f0 100644 --- src/inc/bigBed.h +++ src/inc/bigBed.h @@ -6,41 +6,31 @@ #ifndef BIGBED_H #define BIGBED_H #include "asParse.h" #ifndef BBIFILE #include "bbiFile.h" #endif struct bigBedInterval /* A partially parsed out bed record plus some extra fields. */ { struct bigBedInterval *next; /* Next in list. */ bits32 start, end; /* Range inside chromosome - half open zero based. */ char *rest; /* Rest of line. May be NULL*/ - }; - -struct ppBed -/* A partially parsed out bed record plus some extra fields. */ - { - struct ppBed *next; /* Next in list. */ - char *chrom; /* Chromosome name (not allocated here) */ - bits32 start, end; /* Range inside chromosome - half open zero based. */ - char *rest; /* The rest of the bed. */ - bits64 fileOffset; /* File offset. */ - bits32 chromId; /* Chromosome ID. */ + bits32 chromId; /* ID of chromosome. */ }; struct bbiFile *bigBedFileOpen(char *fileName); /* Open up big bed file. Free this up with bbiFileClose. */ #define bigBedFileClose(a) bbiFileClose(a) struct bigBedInterval *bigBedIntervalQuery(struct bbiFile *bbi, char *chrom, bits32 start, bits32 end, int maxItems, struct lm *lm); /* Get data for interval. Return list allocated out of lm. Set maxItems to maximum * number of items to return, or to 0 for all items. */ int bigBedIntervalToRow(struct bigBedInterval *interval, char *chrom, char *startBuf, char *endBuf, char **row, int rowSize); /* Convert bigBedInterval into an array of chars equivalent to what you'd get by