Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@gmod/bbi

Package Overview
Dependencies
Maintainers
5
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gmod/bbi - npm Package Compare versions

Comparing version 1.0.26 to 1.0.27

9

CHANGELOG.md

@@ -0,1 +1,10 @@

## [1.0.27](https://github.com/GMOD/bbi-js/compare/v1.0.26...v1.0.27) (2020-01-10)
- Reduce number of requests needed on initial header
- Add definedFieldCount to the returned Header
Thanks to @skinner for both of these contributions!
## [1.0.26](https://github.com/GMOD/bbi-js/compare/v1.0.25...v1.0.26) (2019-11-10)

@@ -2,0 +11,0 @@

1

dist/bbi.d.ts

@@ -31,2 +31,3 @@ import { GenericFilehandle } from 'generic-filehandle';

unzoomedDataOffset: number;
definedFieldCount: number;
uncompressBufSize: number;

@@ -33,0 +34,0 @@ chromTreeOffset: number;

269

dist/bbi.js

@@ -162,3 +162,3 @@ "use strict";

_regenerator.default.mark(function _callee(abortSignal) {
var isBigEndian, header, chroms;
var header, chroms;
return _regenerator.default.wrap(function _callee$(_context) {

@@ -169,21 +169,14 @@ while (1) {

_context.next = 2;
return this._isBigEndian(abortSignal);
return this._getMainHeader(abortSignal);
case 2:
isBigEndian = _context.sent;
header = _context.sent;
_context.next = 5;
return this._getMainHeader(abortSignal);
return this._readChromTree(header, abortSignal);
case 5:
header = _context.sent;
_context.next = 8;
return this._readChromTree(abortSignal);
case 8:
chroms = _context.sent;
return _context.abrupt("return", _objectSpread({}, header, {}, chroms, {
isBigEndian: isBigEndian
}));
return _context.abrupt("return", _objectSpread({}, header, {}, chroms));
case 10:
case 7:
case "end":

@@ -209,5 +202,6 @@ return _context.stop();

var requestSize,
ret,
_ref,
buffer,
isBigEndian,
ret,
header,

@@ -222,10 +216,3 @@ tail,

requestSize = _args2.length > 1 && _args2[1] !== undefined ? _args2[1] : 2000;
_context2.t0 = getParsers;
_context2.next = 4;
return this._isBigEndian();
case 4:
_context2.t1 = _context2.sent;
ret = (0, _context2.t0)(_context2.t1);
_context2.next = 8;
_context2.next = 3;
return this.bbi.read(Buffer.alloc(requestSize), 0, requestSize, 0, {

@@ -235,5 +222,7 @@ signal: abortSignal

case 8:
case 3:
_ref = _context2.sent;
buffer = _ref.buffer;
isBigEndian = this._isBigEndian(buffer);
ret = getParsers(isBigEndian);
header = ret.headerParser.parse(buffer).result;

@@ -243,3 +232,3 @@ header.fileType = header.magic === BIG_BED_MAGIC ? 'bigbed' : 'bigwig';

if (!(header.asOffset > requestSize || header.totalSummaryOffset > requestSize)) {
_context2.next = 14;
_context2.next = 11;
break;

@@ -250,3 +239,3 @@ }

case 14:
case 11:
if (header.asOffset) {

@@ -257,3 +246,3 @@ header.autoSql = buffer.slice(header.asOffset, buffer.indexOf(0, header.asOffset)).toString('utf8');

if (!(header.totalSummaryOffset > requestSize)) {
_context2.next = 17;
_context2.next = 14;
break;

@@ -264,3 +253,3 @@ }

case 17:
case 14:
if (header.totalSummaryOffset) {

@@ -271,5 +260,7 @@ tail = buffer.slice(header.totalSummaryOffset);

return _context2.abrupt("return", header);
return _context2.abrupt("return", _objectSpread({}, header, {
isBigEndian: isBigEndian
}));
case 19:
case 16:
case "end":

@@ -290,56 +281,17 @@ return _context2.stop();

key: "_isBigEndian",
value: function () {
var _isBigEndian2 = (0, _asyncToGenerator2.default)(
/*#__PURE__*/
_regenerator.default.mark(function _callee3(abortSignal) {
var _ref2, buffer, ret;
value: function _isBigEndian(buffer) {
var ret = buffer.readInt32LE(0);
return _regenerator.default.wrap(function _callee3$(_context3) {
while (1) {
switch (_context3.prev = _context3.next) {
case 0:
_context3.next = 2;
return this.bbi.read(Buffer.allocUnsafe(4), 0, 4, 0, {
signal: abortSignal
});
if (ret === BIG_WIG_MAGIC || ret === BIG_BED_MAGIC) {
return false;
}
case 2:
_ref2 = _context3.sent;
buffer = _ref2.buffer;
ret = buffer.readInt32LE(0);
ret = buffer.readInt32BE(0);
if (!(ret === BIG_WIG_MAGIC || ret === BIG_BED_MAGIC)) {
_context3.next = 7;
break;
}
return _context3.abrupt("return", false);
case 7:
ret = buffer.readInt32BE(0);
if (!(ret === BIG_WIG_MAGIC || ret === BIG_BED_MAGIC)) {
_context3.next = 10;
break;
}
return _context3.abrupt("return", true);
case 10:
throw new Error('not a BigWig/BigBed file');
case 11:
case "end":
return _context3.stop();
}
}
}, _callee3, this);
}));
function _isBigEndian(_x3) {
return _isBigEndian2.apply(this, arguments);
if (ret === BIG_WIG_MAGIC || ret === BIG_BED_MAGIC) {
return true;
}
return _isBigEndian;
}() // todo: add progress if long running
throw new Error('not a BigWig/BigBed file');
} // todo: add progress if long running

@@ -351,21 +303,12 @@ }, {

/*#__PURE__*/
_regenerator.default.mark(function _callee5(abortSignal) {
_regenerator.default.mark(function _callee4(header, abortSignal) {
var _this = this;
var header, isBE, le, refsByNumber, refsByName, chromTreeOffset, unzoomedDataOffset, _ref3, data, p, keySize, leafNodeParser, nonleafNodeParser, rootNodeOffset, bptReadNode;
var isBE, le, refsByNumber, refsByName, chromTreeOffset, unzoomedDataOffset, _ref2, data, p, keySize, leafNodeParser, nonleafNodeParser, rootNodeOffset, bptReadNode;
return _regenerator.default.wrap(function _callee5$(_context5) {
return _regenerator.default.wrap(function _callee4$(_context4) {
while (1) {
switch (_context5.prev = _context5.next) {
switch (_context4.prev = _context4.next) {
case 0:
_context5.next = 2;
return this._getMainHeader(abortSignal);
case 2:
header = _context5.sent;
_context5.next = 5;
return this._isBigEndian(abortSignal);
case 5:
isBE = _context5.sent;
isBE = header.isBigEndian;
le = isBE ? 'big' : 'little';

@@ -381,3 +324,3 @@ refsByNumber = [];

_context5.next = 14;
_context4.next = 9;
return this.bbi.read(Buffer.alloc(unzoomedDataOffset - chromTreeOffset), 0, unzoomedDataOffset - chromTreeOffset, chromTreeOffset, {

@@ -387,5 +330,5 @@ signal: abortSignal

case 14:
_ref3 = _context5.sent;
data = _ref3.buffer;
case 9:
_ref2 = _context4.sent;
data = _ref2.buffer;
p = getParsers(isBE);

@@ -403,10 +346,10 @@ keySize = p.chromTreeParser.parse(data).result.keySize;

function () {
var _ref4 = (0, _asyncToGenerator2.default)(
var _ref3 = (0, _asyncToGenerator2.default)(
/*#__PURE__*/
_regenerator.default.mark(function _callee4(currentOffset) {
_regenerator.default.mark(function _callee3(currentOffset) {
var offset, ret, _ret$result, isLeafNode, cnt, n, leafRet, _leafRet$result, _key, refId, refSize, refRec, nextNodes, _n, nonleafRet, childOffset;
return _regenerator.default.wrap(function _callee4$(_context4) {
return _regenerator.default.wrap(function _callee3$(_context3) {
while (1) {
switch (_context4.prev = _context4.next) {
switch (_context3.prev = _context3.next) {
case 0:

@@ -416,3 +359,3 @@ offset = currentOffset;

if (!(offset >= data.length)) {
_context4.next = 3;
_context3.next = 3;
break;

@@ -427,3 +370,3 @@ }

offset += ret.offset;
_context4.next = 8;
_context3.next = 8;
return (0, _util.abortBreakPoint)(abortSignal);

@@ -433,3 +376,3 @@

if (!isLeafNode) {
_context4.next = 12;
_context3.next = 12;
break;

@@ -451,3 +394,3 @@ }

_context4.next = 16;
_context3.next = 16;
break;

@@ -467,3 +410,3 @@

_context4.next = 16;
_context3.next = 16;
return Promise.all(nextNodes);

@@ -473,18 +416,18 @@

case "end":
return _context4.stop();
return _context3.stop();
}
}
}, _callee4);
}, _callee3);
}));
return function bptReadNode(_x5) {
return _ref4.apply(this, arguments);
return _ref3.apply(this, arguments);
};
}();
_context5.next = 24;
_context4.next = 19;
return bptReadNode(rootNodeOffset);
case 24:
return _context5.abrupt("return", {
case 19:
return _context4.abrupt("return", {
refsByName: refsByName,

@@ -494,11 +437,11 @@ refsByNumber: refsByNumber

case 25:
case 20:
case "end":
return _context5.stop();
return _context4.stop();
}
}
}, _callee5, this);
}, _callee4, this);
}));
function _readChromTree(_x4) {
function _readChromTree(_x3, _x4) {
return _readChromTree2.apply(this, arguments);

@@ -519,30 +462,30 @@ }

/*#__PURE__*/
_regenerator.default.mark(function _callee6(abortSignal) {
var _ref5, unzoomedIndexOffset, zoomLevels, refsByName, uncompressBufSize, isBigEndian, fileType, nzl, cirLen;
_regenerator.default.mark(function _callee5(abortSignal) {
var _ref4, unzoomedIndexOffset, zoomLevels, refsByName, uncompressBufSize, isBigEndian, fileType, nzl, cirLen;
return _regenerator.default.wrap(function _callee6$(_context6) {
return _regenerator.default.wrap(function _callee5$(_context5) {
while (1) {
switch (_context6.prev = _context6.next) {
switch (_context5.prev = _context5.next) {
case 0:
_context6.next = 2;
_context5.next = 2;
return this.getHeader(abortSignal);
case 2:
_ref5 = _context6.sent;
unzoomedIndexOffset = _ref5.unzoomedIndexOffset;
zoomLevels = _ref5.zoomLevels;
refsByName = _ref5.refsByName;
uncompressBufSize = _ref5.uncompressBufSize;
isBigEndian = _ref5.isBigEndian;
fileType = _ref5.fileType;
_ref4 = _context5.sent;
unzoomedIndexOffset = _ref4.unzoomedIndexOffset;
zoomLevels = _ref4.zoomLevels;
refsByName = _ref4.refsByName;
uncompressBufSize = _ref4.uncompressBufSize;
isBigEndian = _ref4.isBigEndian;
fileType = _ref4.fileType;
nzl = zoomLevels[0];
cirLen = nzl ? nzl.dataOffset - unzoomedIndexOffset : 4000;
return _context6.abrupt("return", new _blockView.BlockView(this.bbi, refsByName, unzoomedIndexOffset, cirLen, isBigEndian, uncompressBufSize > 0, fileType));
return _context5.abrupt("return", new _blockView.BlockView(this.bbi, refsByName, unzoomedIndexOffset, cirLen, isBigEndian, uncompressBufSize > 0, fileType));
case 12:
case "end":
return _context6.stop();
return _context5.stop();
}
}
}, _callee6, this);
}, _callee5, this);
}));

@@ -574,15 +517,15 @@

/*#__PURE__*/
_regenerator.default.mark(function _callee7(refName, start, end) {
_regenerator.default.mark(function _callee6(refName, start, end) {
var opts,
chrName,
view,
_args7 = arguments;
return _regenerator.default.wrap(function _callee7$(_context7) {
_args6 = arguments;
return _regenerator.default.wrap(function _callee6$(_context6) {
while (1) {
switch (_context7.prev = _context7.next) {
switch (_context6.prev = _context6.next) {
case 0:
opts = _args7.length > 3 && _args7[3] !== undefined ? _args7[3] : {
opts = _args6.length > 3 && _args6[3] !== undefined ? _args6[3] : {
scale: 1
};
_context7.next = 3;
_context6.next = 3;
return this.getHeader(opts.signal);

@@ -594,12 +537,12 @@

if (!opts.basesPerSpan) {
_context7.next = 10;
_context6.next = 10;
break;
}
_context7.next = 7;
_context6.next = 7;
return this.getView(1 / opts.basesPerSpan, opts.signal);
case 7:
view = _context7.sent;
_context7.next = 19;
view = _context6.sent;
_context6.next = 19;
break;

@@ -609,24 +552,24 @@

if (!opts.scale) {
_context7.next = 16;
_context6.next = 16;
break;
}
_context7.next = 13;
_context6.next = 13;
return this.getView(opts.scale, opts.signal);
case 13:
view = _context7.sent;
_context7.next = 19;
view = _context6.sent;
_context6.next = 19;
break;
case 16:
_context7.next = 18;
_context6.next = 18;
return this.getView(1, opts.signal);
case 18:
view = _context7.sent;
view = _context6.sent;
case 19:
if (view) {
_context7.next = 21;
_context6.next = 21;
break;

@@ -638,3 +581,3 @@ }

case 21:
return _context7.abrupt("return", new _rxjs.Observable(function (observer) {
return _context6.abrupt("return", new _rxjs.Observable(function (observer) {
view.readWigData(chrName, start, end, observer, opts);

@@ -645,6 +588,6 @@ }));

case "end":
return _context7.stop();
return _context6.stop();
}
}
}, _callee7, this);
}, _callee6, this);
}));

@@ -663,20 +606,20 @@

/*#__PURE__*/
_regenerator.default.mark(function _callee8(refName, start, end) {
_regenerator.default.mark(function _callee7(refName, start, end) {
var opts,
ob,
ret,
_args8 = arguments;
return _regenerator.default.wrap(function _callee8$(_context8) {
_args7 = arguments;
return _regenerator.default.wrap(function _callee7$(_context7) {
while (1) {
switch (_context8.prev = _context8.next) {
switch (_context7.prev = _context7.next) {
case 0:
opts = _args8.length > 3 && _args8[3] !== undefined ? _args8[3] : {
opts = _args7.length > 3 && _args7[3] !== undefined ? _args7[3] : {
scale: 1
};
_context8.next = 3;
_context7.next = 3;
return this.getFeatureStream(refName, start, end, opts);
case 3:
ob = _context8.sent;
_context8.next = 6;
ob = _context7.sent;
_context7.next = 6;
return ob.pipe((0, _operators.reduce)(function (acc, curr) {

@@ -687,11 +630,11 @@ return acc.concat(curr);

case 6:
ret = _context8.sent;
return _context8.abrupt("return", ret || []);
ret = _context7.sent;
return _context7.abrupt("return", ret || []);
case 8:
case "end":
return _context8.stop();
return _context7.stop();
}
}
}, _callee8, this);
}, _callee7, this);
}));

@@ -710,2 +653,2 @@

exports.BBI = BBI;
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9iYmkudHMiXSwibmFtZXMiOlsiQklHX1dJR19NQUdJQyIsIkJJR19CRURfTUFHSUMiLCJBYm9ydEF3YXJlQ2FjaGUiLCJNYXAiLCJmbiIsImNhY2hlIiwiYWJvcnRhYmxlTWVtb2l6ZUZuIiwic2lnbmFsIiwiaGFzIiwiZm5SZXR1cm4iLCJzZXQiLCJjYXRjaCIsImFib3J0ZWQiLCJkZWxldGUiLCJnZXQiLCJlIiwiY29kZSIsIm5hbWUiLCJnZXRQYXJzZXJzIiwiaXNCRSIsImxlIiwiaGVhZGVyUGFyc2VyIiwiUGFyc2VyIiwiZW5kaWFuZXNzIiwiaW50MzIiLCJ1aW50MTYiLCJ1aW50NjQiLCJ1aW50MzIiLCJhcnJheSIsImxlbmd0aCIsInR5cGUiLCJ0b3RhbFN1bW1hcnlQYXJzZXIiLCJkb3VibGUiLCJjaHJvbVRyZWVQYXJzZXIiLCJpc0xlYWZOb2RlIiwidWludDgiLCJza2lwIiwiQkJJIiwib3B0aW9ucyIsImZpbGVoYW5kbGUiLCJyZW5hbWVSZWZTZXFzIiwicGF0aCIsInVybCIsInMiLCJoZWFkZXJDYWNoZSIsImJiaSIsIlJlbW90ZUZpbGUiLCJMb2NhbEZpbGUiLCJFcnJvciIsImdldEhlYWRlciIsImFib3J0YWJsZU1lbW9pemUiLCJfZ2V0SGVhZGVyIiwiYmluZ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iBQcm9taXNlPEZlYXR1cmVbXT4ge1xuICAgIGNvbnN0IG9iID0gYXdhaXQgdGhpcy5nZXRGZWF0dXJlU3RyZWFtKHJlZk5hbWUsIHN0YXJ0LCBlbmQsIG9wdHMpXG4gICAgY29uc3QgcmV0ID0gYXdhaXQgb2IucGlwZShyZWR1Y2UoKGFjYzogRmVhdHVyZVtdLCBjdXJyOiBGZWF0dXJlW10pOiBGZWF0dXJlW10gPT4gYWNjLmNvbmNhdChjdXJyKSkpLnRvUHJvbWlzZSgpXG4gICAgcmV0dXJuIHJldCB8fCBbXVxuICB9XG59XG4iXX0=
{
"name": "@gmod/bbi",
"version": "1.0.26",
"version": "1.0.27",
"description": "Parser for BigWig/BigBed files",

@@ -5,0 +5,0 @@ "license": "MIT",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc