Comparing version 1.0.13 to 1.0.14
@@ -0,1 +1,8 @@ | ||
<a name="1.0.14"></a> | ||
## [1.0.14](https://github.com/GMOD/bam-js/compare/v1.0.13...v1.0.14) (2019-01-04) | ||
- Add hasRefSeq for CSI indexes | ||
<a name="1.0.13"></a> | ||
@@ -2,0 +9,0 @@ ## [1.0.13](https://github.com/GMOD/bam-js/compare/v1.0.12...v1.0.13) (2018-12-25) |
@@ -428,2 +428,47 @@ 'use strict'; | ||
/** | ||
* @param {number} seqId | ||
* @returns {Promise} true if the index contains entries for | ||
* the given reference sequence ID, false otherwise | ||
*/ | ||
}, { | ||
key: 'hasRefSeq', | ||
value: function () { | ||
var _ref5 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee4(seqId) { | ||
return _regenerator2.default.wrap(function _callee4$(_context4) { | ||
while (1) { | ||
switch (_context4.prev = _context4.next) { | ||
case 0: | ||
_context4.next = 2; | ||
return this.parse(); | ||
case 2: | ||
_context4.t1 = seqId; | ||
_context4.t0 = _context4.sent.indices[_context4.t1]; | ||
if (_context4.t0) { | ||
_context4.next = 6; | ||
break; | ||
} | ||
_context4.t0 = {}; | ||
case 6: | ||
return _context4.abrupt('return', !!_context4.t0.binIndex); | ||
case 7: | ||
case 'end': | ||
return _context4.stop(); | ||
} | ||
} | ||
}, _callee4, this); | ||
})); | ||
function hasRefSeq(_x5) { | ||
return _ref5.apply(this, arguments); | ||
} | ||
return hasRefSeq; | ||
}() | ||
/** | ||
* calculate the list of bins that may overlap with region [beg,end) (zero-based half-open) | ||
@@ -430,0 +475,0 @@ * @returns {Array[number]} |
{ | ||
"name": "@gmod/bam", | ||
"version": "1.0.13", | ||
"version": "1.0.14", | ||
"description": "Parser for BAM and BAM index (bai) files", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
132601
2137