Skip to content

Commit e571384

Browse files
committed
Switch to libBigWig 0.1.3, which fixes fixed-step files
1 parent cc53a12 commit e571384

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

libBigWig/bigWig.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
/*!
4242
* The library version number
4343
*/
44-
#define LIBBIGWIG_VERSION 0.1.2
44+
#define LIBBIGWIG_VERSION 0.1.3
4545

4646
/*!
4747
* The magic number of a bigWig file.

libBigWig/bwWrite.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ int bwAddIntervalSpanSteps(bigWigFile_t *fp, char *chrom, uint32_t start, uint32
509509

510510
for(i=0; i<n; i++) {
511511
if(wb->l + 4 >= fp->hdr->bufSize) {
512-
wb->end = wb->start + (wb->l>>2) + step;
512+
wb->end = wb->start + ((wb->l-24)>>2) * step;
513513
flushBuffer(fp);
514514
wb->start = wb->end;
515515
}
@@ -532,7 +532,7 @@ int bwAppendIntervalSpanSteps(bigWigFile_t *fp, float *values, uint32_t n) {
532532

533533
for(i=0; i<n; i++) {
534534
if(wb->l + 4 >= fp->hdr->bufSize) {
535-
wb->end = wb->start + (wb->l>>2) + wb->step;
535+
wb->end = wb->start + ((wb->l-24)>>2) * wb->step;
536536
flushBuffer(fp);
537537
wb->start = wb->end;
538538
}

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@
3434
include_dirs = ['libBigWig', sysconfig.get_config_var("INCLUDEPY")])
3535

3636
setup(name = 'pyBigWig',
37-
version = '0.2.2',
37+
version = '0.2.3',
3838
description = 'A package for accessing bigWig files using libBigWig',
3939
author = "Devon P. Ryan",
4040
author_email = "[email protected]",
4141
url = "https://github.com/dpryan79/pyBigWig",
42-
download_url = "https://github.com/dpryan79/pyBigWig/tarball/0.2.2",
42+
download_url = "https://github.com/dpryan79/pyBigWig/tarball/0.2.3",
4343
keywords = ["bioinformatics", "bigWig"],
4444
packages = find_packages(),
4545
include_package_data=True,

0 commit comments

Comments
 (0)