diff --git a/libBigWig/bigWig.h b/libBigWig/bigWig.h index 9880869..c6f0466 100644 --- a/libBigWig/bigWig.h +++ b/libBigWig/bigWig.h @@ -41,7 +41,7 @@ /*! * The library version number */ -#define LIBBIGWIG_VERSION 0.1.5 +#define LIBBIGWIG_VERSION 0.1.6 /*! * The magic number of a bigWig file. diff --git a/libBigWig/bwRead.c b/libBigWig/bwRead.c index 9f5ae2b..eb65353 100644 --- a/libBigWig/bwRead.c +++ b/libBigWig/bwRead.c @@ -207,7 +207,7 @@ static uint64_t readChromNonLeaf(bigWigFile_t *bw, chromList_t *cl, uint32_t key if(bwRead((void*) &nVals, sizeof(uint16_t), 1, bw) != 1) return -1; //These aren't actually used for anything, we just skip to the next block... - offset = nVals * (keySize + 8) + bw->URL->filePos + bw->URL->bufPos; + offset = nVals * (keySize + 8) + bwTell(bw); if(bwSetPos(bw, offset)) return -1; return readChromBlock(bw, cl, keySize); diff --git a/setup.py b/setup.py index 31dcbff..8e90be8 100755 --- a/setup.py +++ b/setup.py @@ -39,12 +39,12 @@ include_dirs = ['libBigWig', sysconfig.get_config_var("INCLUDEPY")]) setup(name = 'pyBigWig', - version = '0.2.6', + version = '0.2.7', description = 'A package for accessing bigWig files using libBigWig', author = "Devon P. Ryan", author_email = "ryan@ie-freiburg.mpg.de", url = "https://github.com/dpryan79/pyBigWig", - download_url = "https://github.com/dpryan79/pyBigWig/tarball/0.2.5", + download_url = "https://github.com/dpryan79/pyBigWig/tarball/0.2.7", keywords = ["bioinformatics", "bigWig"], classifier = ["Development Status :: 5 - Production/Stable", "Intended Audience :: Developers",