Skip to content

Commit 06ddd52

Browse files
committed
Merge pull request #11 from dpryan79/libBigWig-0.1.4
Copy the current version of libBigWig-0.1.4, which allows Jbrowse's a…
2 parents 62a61b3 + 8311a72 commit 06ddd52

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
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.3
44+
#define LIBBIGWIG_VERSION 0.1.4
4545

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

libBigWig/bwWrite.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -179,16 +179,16 @@ int bwWriteHdr(bigWigFile_t *bw) {
179179
}
180180
}
181181

182-
//Write the chromosome list as a stupid freaking tree (because let's TREE ALL THE THINGS!!!)
183-
bw->hdr->ctOffset = ftell(fp);
184-
if(writeChromList(fp, bw->cl)) return 7;
185-
if(writeAtPos(&(bw->hdr->ctOffset), sizeof(uint64_t), 1, 0x8, fp)) return 8;
186-
187182
//Update summaryOffset and write an empty summary block
188183
bw->hdr->summaryOffset = ftell(fp);
189184
if(fwrite(p, sizeof(uint8_t), 40, fp) != 40) return 10;
190185
if(writeAtPos(&(bw->hdr->summaryOffset), sizeof(uint64_t), 1, 0x2c, fp)) return 11;
191186

187+
//Write the chromosome list as a stupid freaking tree (because let's TREE ALL THE THINGS!!!)
188+
bw->hdr->ctOffset = ftell(fp);
189+
if(writeChromList(fp, bw->cl)) return 7;
190+
if(writeAtPos(&(bw->hdr->ctOffset), sizeof(uint64_t), 1, 0x8, fp)) return 8;
191+
192192
//Update the dataOffset
193193
bw->hdr->dataOffset = ftell(fp);
194194
if(writeAtPos(&bw->hdr->dataOffset, sizeof(uint64_t), 1, 0x10, fp)) return 12;

setup.py

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

4141
setup(name = 'pyBigWig',
42-
version = '0.2.4',
42+
version = '0.2.5',
4343
description = 'A package for accessing bigWig files using libBigWig',
4444
author = "Devon P. Ryan",
4545
author_email = "[email protected]",
4646
url = "https://github.com/dpryan79/pyBigWig",
47-
download_url = "https://github.com/dpryan79/pyBigWig/tarball/0.2.4",
47+
download_url = "https://github.com/dpryan79/pyBigWig/tarball/0.2.5",
4848
keywords = ["bioinformatics", "bigWig"],
4949
classifier = ["Development Status :: 5 - Production/Stable",
5050
"Intended Audience :: Developers",

0 commit comments

Comments
 (0)