Skip to content

Commit

Permalink
Switch to libBigWig 0.1.3, which fixes fixed-step files
Browse files Browse the repository at this point in the history
  • Loading branch information
dpryan79 committed Jan 12, 2016
1 parent cc53a12 commit e571384
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion libBigWig/bigWig.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
/*!
* The library version number
*/
#define LIBBIGWIG_VERSION 0.1.2
#define LIBBIGWIG_VERSION 0.1.3

/*!
* The magic number of a bigWig file.
Expand Down
4 changes: 2 additions & 2 deletions libBigWig/bwWrite.c
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ int bwAddIntervalSpanSteps(bigWigFile_t *fp, char *chrom, uint32_t start, uint32

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

for(i=0; i<n; i++) {
if(wb->l + 4 >= fp->hdr->bufSize) {
wb->end = wb->start + (wb->l>>2) + wb->step;
wb->end = wb->start + ((wb->l-24)>>2) * wb->step;
flushBuffer(fp);
wb->start = wb->end;
}
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@
include_dirs = ['libBigWig', sysconfig.get_config_var("INCLUDEPY")])

setup(name = 'pyBigWig',
version = '0.2.2',
version = '0.2.3',
description = 'A package for accessing bigWig files using libBigWig',
author = "Devon P. Ryan",
author_email = "[email protected]",
url = "https://github.com/dpryan79/pyBigWig",
download_url = "https://github.com/dpryan79/pyBigWig/tarball/0.2.2",
download_url = "https://github.com/dpryan79/pyBigWig/tarball/0.2.3",
keywords = ["bioinformatics", "bigWig"],
packages = find_packages(),
include_package_data=True,
Expand Down

0 comments on commit e571384

Please sign in to comment.