f2e106b897f58f772d3a25713bb3ede142ae4bd5 braney Mon Jun 13 15:58:12 2016 -0700 add next/prev item navigation to longTabix support diff --git src/inc/bedTabix.h src/inc/bedTabix.h index 9b14416..64febb8 100644 --- src/inc/bedTabix.h +++ src/inc/bedTabix.h @@ -1,20 +1,24 @@ #ifndef BEDTABIX_H #define BEDTABIX_H #include "linefile.h" struct bedTabixFile { struct lineFile *lf; }; struct asObject *longTabixAsObj(); struct bedTabixFile *bedTabixFileMayOpen(char *fileOrUrl, char *chrom, int start, int end); /* Open a bed file that has been compressed and indexed by tabix */ +struct bed *bedTabixReadFirstBed(struct bedTabixFile *btf, char *chrom, int start, int end, struct bed * (*loadBed)()); +/* Read in first bed in range (for next item).*/ + struct bed *bedTabixReadBeds(struct bedTabixFile *btf, char *chromName, int winStart, int winEnd, struct bed * (*loadBed)()); +/* Read in first bed in range (for next item).*/ void bedTabixFileClose(struct bedTabixFile **btf); #endif //BEDTABIX_H