Skip to content

Commit

Permalink
Merge pull request #11 from dpryan79/libBigWig-0.1.4
Browse files Browse the repository at this point in the history
Copy the current version of libBigWig-0.1.4, which allows Jbrowse's a…
  • Loading branch information
dpryan79 committed Feb 5, 2016
2 parents 62a61b3 + 8311a72 commit 06ddd52
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 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.3
#define LIBBIGWIG_VERSION 0.1.4

/*!
* The magic number of a bigWig file.
Expand Down
10 changes: 5 additions & 5 deletions libBigWig/bwWrite.c
Original file line number Diff line number Diff line change
Expand Up @@ -179,16 +179,16 @@ int bwWriteHdr(bigWigFile_t *bw) {
}
}

//Write the chromosome list as a stupid freaking tree (because let's TREE ALL THE THINGS!!!)
bw->hdr->ctOffset = ftell(fp);
if(writeChromList(fp, bw->cl)) return 7;
if(writeAtPos(&(bw->hdr->ctOffset), sizeof(uint64_t), 1, 0x8, fp)) return 8;

//Update summaryOffset and write an empty summary block
bw->hdr->summaryOffset = ftell(fp);
if(fwrite(p, sizeof(uint8_t), 40, fp) != 40) return 10;
if(writeAtPos(&(bw->hdr->summaryOffset), sizeof(uint64_t), 1, 0x2c, fp)) return 11;

//Write the chromosome list as a stupid freaking tree (because let's TREE ALL THE THINGS!!!)
bw->hdr->ctOffset = ftell(fp);
if(writeChromList(fp, bw->cl)) return 7;
if(writeAtPos(&(bw->hdr->ctOffset), sizeof(uint64_t), 1, 0x8, fp)) return 8;

//Update the dataOffset
bw->hdr->dataOffset = ftell(fp);
if(writeAtPos(&bw->hdr->dataOffset, sizeof(uint64_t), 1, 0x10, fp)) return 12;
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,12 @@
include_dirs = ['libBigWig', sysconfig.get_config_var("INCLUDEPY")])

setup(name = 'pyBigWig',
version = '0.2.4',
version = '0.2.5',
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.4",
download_url = "https://github.com/dpryan79/pyBigWig/tarball/0.2.5",
keywords = ["bioinformatics", "bigWig"],
classifier = ["Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
Expand Down

0 comments on commit 06ddd52

Please sign in to comment.