Skip to content
inflate BGZF
JavaScript C++ Python
Branch: master
Clone or download
Pull request Compare This branch is 2 commits ahead of MatthewRalston:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
test
.gitignore
.npmignore
README.md
binding.gyp
index.js
npm-shrinkwrap.json
package.json
yarn.lock

README.md

Note code taken from Shin Suzuki's bgzf package. All credit to him.

BGZF

inflates BGZF written in C++

installation

$ npm install bgzf

usage

var bgzf = require("ve-bgzf");
var bam = require("fs").readFileSync("/path/to/bamfile.bam");
var result = bgzf.inflate(bam);
var inflated = result[0]; // inflated buffer
var d_offsets = result[1]; // offsets of each BGZF
var i_offsets = result[2]; // offsets of each BGZF in the inflated buffer
var remainder = result[3]; // unparsed buffer (rightmost side of the given buffer)
You can’t perform that action at this time.