5af25d5af09cf586acbcf1c8a54d175deede25e7 braney Thu Jun 23 15:07:49 2016 -0700 some tweaks in response to code review with Jonathan. diff --git src/inc/bedTabix.h src/inc/bedTabix.h index 64febb8..e96e630 100644 --- src/inc/bedTabix.h +++ src/inc/bedTabix.h @@ -1,24 +1,27 @@ #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 bedTabixFile *bedTabixFileOpen(char *fileOrUrl, char *chrom, int start, int end); +/* Attempt to open bedTabix file. errAbort on failure. */ + 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).*/ +/* Read in all beds in range.*/ void bedTabixFileClose(struct bedTabixFile **btf); #endif //BEDTABIX_H