@gmod/bam 1.1.8 → 1.1.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/README.md +2 -3
  3. package/dist/bai.d.ts +2 -0
  4. package/dist/bai.js +300 -548
  5. package/dist/bai.js.map +1 -0
  6. package/dist/bamFile.d.ts +4 -6
  7. package/dist/bamFile.js +675 -1203
  8. package/dist/bamFile.js.map +1 -0
  9. package/dist/chunk.js +34 -69
  10. package/dist/chunk.js.map +1 -0
  11. package/dist/constants.js +27 -35
  12. package/dist/constants.js.map +1 -0
  13. package/dist/csi.js +317 -515
  14. package/dist/csi.js.map +1 -0
  15. package/dist/errors.js +64 -120
  16. package/dist/errors.js.map +1 -0
  17. package/dist/htsget.js +275 -396
  18. package/dist/htsget.js.map +1 -0
  19. package/dist/index.js +16 -54
  20. package/dist/index.js.map +1 -0
  21. package/dist/indexFile.d.ts +1 -2
  22. package/dist/indexFile.js +77 -163
  23. package/dist/indexFile.js.map +1 -0
  24. package/dist/record.js +496 -707
  25. package/dist/record.js.map +1 -0
  26. package/dist/sam.js +16 -49
  27. package/dist/sam.js.map +1 -0
  28. package/dist/util.d.ts +0 -1
  29. package/dist/util.js +115 -126
  30. package/dist/util.js.map +1 -0
  31. package/dist/virtualOffset.js +44 -77
  32. package/dist/virtualOffset.js.map +1 -0
  33. package/esm/bai.d.ts +26 -0
  34. package/esm/bai.js +191 -0
  35. package/esm/bai.js.map +1 -0
  36. package/esm/bamFile.d.ts +77 -0
  37. package/esm/bamFile.js +388 -0
  38. package/esm/bamFile.js.map +1 -0
  39. package/esm/chunk.d.ts +18 -0
  40. package/esm/chunk.js +33 -0
  41. package/esm/chunk.js.map +1 -0
  42. package/esm/constants.d.ts +15 -0
  43. package/esm/constants.js +27 -0
  44. package/esm/constants.js.map +1 -0
  45. package/esm/csi.d.ts +35 -0
  46. package/esm/csi.js +209 -0
  47. package/esm/csi.js.map +1 -0
  48. package/esm/errors.d.ts +23 -0
  49. package/esm/errors.js +24 -0
  50. package/esm/errors.js.map +1 -0
  51. package/esm/htsget.d.ts +33 -0
  52. package/esm/htsget.js +100 -0
  53. package/esm/htsget.js.map +1 -0
  54. package/esm/index.d.ts +6 -0
  55. package/esm/index.js +7 -0
  56. package/esm/index.js.map +1 -0
  57. package/esm/indexFile.d.ts +27 -0
  58. package/esm/indexFile.js +27 -0
  59. package/esm/indexFile.js.map +1 -0
  60. package/esm/record.d.ts +88 -0
  61. package/esm/record.js +534 -0
  62. package/esm/record.js.map +1 -0
  63. package/esm/sam.d.ts +7 -0
  64. package/esm/sam.js +16 -0
  65. package/esm/sam.js.map +1 -0
  66. package/esm/util.d.ts +35 -0
  67. package/esm/util.js +92 -0
  68. package/esm/util.js.map +1 -0
  69. package/esm/virtualOffset.d.ts +10 -0
  70. package/esm/virtualOffset.js +37 -0
  71. package/esm/virtualOffset.js.map +1 -0
  72. package/package.json +21 -29
  73. package/dist/declare.d.js +0 -2
package/esm/sam.d.ts ADDED
@@ -0,0 +1,7 @@
1
+ export declare function parseHeaderText(text: string): {
2
+ tag: string;
3
+ data: {
4
+ tag: string;
5
+ value: string;
6
+ }[];
7
+ }[];
package/esm/sam.js ADDED
@@ -0,0 +1,16 @@
1
+ export function parseHeaderText(text) {
2
+ const lines = text.split(/\r?\n/);
3
+ const data = [];
4
+ lines.forEach(line => {
5
+ const [tag, ...fields] = line.split(/\t/);
6
+ const parsedFields = fields.map(f => {
7
+ const [fieldTag, value] = f.split(':', 2);
8
+ return { tag: fieldTag, value };
9
+ });
10
+ if (tag) {
11
+ data.push({ tag: tag.substr(1), data: parsedFields });
12
+ }
13
+ });
14
+ return data;
15
+ }
16
+ //# sourceMappingURL=sam.js.map
package/esm/sam.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sam.js","sourceRoot":"","sources":["../src/sam.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,eAAe,CAAC,IAAY;IAC1C,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAA;IACjC,MAAM,IAAI,GAA8D,EAAE,CAAA;IAC1E,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE;QACnB,MAAM,CAAC,GAAG,EAAE,GAAG,MAAM,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAA;QACzC,MAAM,YAAY,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE;YAClC,MAAM,CAAC,QAAQ,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,CAAC,CAAA;YACzC,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAA;QACjC,CAAC,CAAC,CAAA;QACF,IAAI,GAAG,EAAE;YACP,IAAI,CAAC,IAAI,CAAC,EAAE,GAAG,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC,CAAA;SACtD;IACH,CAAC,CAAC,CAAA;IACF,OAAO,IAAI,CAAA;AACb,CAAC"}
package/esm/util.d.ts ADDED
@@ -0,0 +1,35 @@
1
+ import Chunk from './chunk';
2
+ import VirtualOffset from './virtualOffset';
3
+ export declare function timeout(ms: number): Promise<unknown>;
4
+ export declare function longToNumber(long: Long): number;
5
+ /**
6
+ * Properly check if the given AbortSignal is aborted.
7
+ * Per the standard, if the signal reads as aborted,
8
+ * this function throws either a DOMException AbortError, or a regular error
9
+ * with a `code` attribute set to `ERR_ABORTED`.
10
+ *
11
+ * For convenience, passing `undefined` is a no-op
12
+ *
13
+ * @param {AbortSignal} [signal] an AbortSignal, or anything with an `aborted` attribute
14
+ * @returns nothing
15
+ */
16
+ export declare function checkAbortSignal(signal?: AbortSignal): void;
17
+ /**
18
+ * Skips to the next tick, then runs `checkAbortSignal`.
19
+ * Await this to inside an otherwise synchronous loop to
20
+ * provide a place to break when an abort signal is received.
21
+ * @param {AbortSignal} signal
22
+ */
23
+ export declare function abortBreakPoint(signal?: AbortSignal): Promise<void>;
24
+ export declare function canMergeBlocks(chunk1: Chunk, chunk2: Chunk): boolean;
25
+ export interface BamOpts {
26
+ viewAsPairs?: boolean;
27
+ pairAcrossChr?: boolean;
28
+ maxInsertSize?: number;
29
+ signal?: AbortSignal;
30
+ }
31
+ export interface BaseOpts {
32
+ signal?: AbortSignal;
33
+ }
34
+ export declare function makeOpts(obj?: AbortSignal | BaseOpts): BaseOpts;
35
+ export declare function optimizeChunks(chunks: Chunk[], lowest: VirtualOffset): Chunk[];
package/esm/util.js ADDED
@@ -0,0 +1,92 @@
1
+ export function timeout(ms) {
2
+ return new Promise(resolve => setTimeout(resolve, ms));
3
+ }
4
+ export function longToNumber(long) {
5
+ if (long.greaterThan(Number.MAX_SAFE_INTEGER) ||
6
+ long.lessThan(Number.MIN_SAFE_INTEGER)) {
7
+ throw new Error('integer overflow');
8
+ }
9
+ return long.toNumber();
10
+ }
11
+ /**
12
+ * Properly check if the given AbortSignal is aborted.
13
+ * Per the standard, if the signal reads as aborted,
14
+ * this function throws either a DOMException AbortError, or a regular error
15
+ * with a `code` attribute set to `ERR_ABORTED`.
16
+ *
17
+ * For convenience, passing `undefined` is a no-op
18
+ *
19
+ * @param {AbortSignal} [signal] an AbortSignal, or anything with an `aborted` attribute
20
+ * @returns nothing
21
+ */
22
+ export function checkAbortSignal(signal) {
23
+ if (!signal) {
24
+ return;
25
+ }
26
+ if (signal.aborted) {
27
+ // console.log('bam aborted!')
28
+ if (typeof DOMException !== 'undefined') {
29
+ throw new DOMException('aborted', 'AbortError');
30
+ }
31
+ else {
32
+ const e = new Error('aborted');
33
+ //@ts-ignore
34
+ e.code = 'ERR_ABORTED';
35
+ throw e;
36
+ }
37
+ }
38
+ }
39
+ /**
40
+ * Skips to the next tick, then runs `checkAbortSignal`.
41
+ * Await this to inside an otherwise synchronous loop to
42
+ * provide a place to break when an abort signal is received.
43
+ * @param {AbortSignal} signal
44
+ */
45
+ export async function abortBreakPoint(signal) {
46
+ await Promise.resolve();
47
+ checkAbortSignal(signal);
48
+ }
49
+ export function canMergeBlocks(chunk1, chunk2) {
50
+ return (chunk2.minv.blockPosition - chunk1.maxv.blockPosition < 65000 &&
51
+ chunk2.maxv.blockPosition - chunk1.minv.blockPosition < 5000000);
52
+ }
53
+ export function makeOpts(obj = {}) {
54
+ return 'aborted' in obj ? { signal: obj } : obj;
55
+ }
56
+ export function optimizeChunks(chunks, lowest) {
57
+ const mergedChunks = [];
58
+ let lastChunk = null;
59
+ if (chunks.length === 0) {
60
+ return chunks;
61
+ }
62
+ chunks.sort((c0, c1) => {
63
+ const dif = c0.minv.blockPosition - c1.minv.blockPosition;
64
+ if (dif !== 0) {
65
+ return dif;
66
+ }
67
+ else {
68
+ return c0.minv.dataPosition - c1.minv.dataPosition;
69
+ }
70
+ });
71
+ chunks.forEach(chunk => {
72
+ if (!lowest || chunk.maxv.compareTo(lowest) > 0) {
73
+ if (lastChunk === null) {
74
+ mergedChunks.push(chunk);
75
+ lastChunk = chunk;
76
+ }
77
+ else {
78
+ if (canMergeBlocks(lastChunk, chunk)) {
79
+ if (chunk.maxv.compareTo(lastChunk.maxv) > 0) {
80
+ lastChunk.maxv = chunk.maxv;
81
+ }
82
+ }
83
+ else {
84
+ mergedChunks.push(chunk);
85
+ lastChunk = chunk;
86
+ }
87
+ }
88
+ }
89
+ });
90
+ return mergedChunks;
91
+ }
92
+ //# sourceMappingURL=util.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"util.js","sourceRoot":"","sources":["../src/util.ts"],"names":[],"mappings":"AAGA,MAAM,UAAU,OAAO,CAAC,EAAU;IAChC,OAAO,IAAI,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC,UAAU,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,CAAA;AACxD,CAAC;AAED,MAAM,UAAU,YAAY,CAAC,IAAU;IACrC,IACE,IAAI,CAAC,WAAW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{
3
+ blockPosition: number;
4
+ dataPosition: number;
5
+ constructor(blockPosition: number, dataPosition: number);
6
+ toString(): string;
7
+ compareTo(b: VirtualOffset): number;
8
+ static min(...args: VirtualOffset[]): VirtualOffset;
9
+ }
10
+ export declare function fromBytes(bytes: Buffer, offset?: number, bigendian?: boolean): VirtualOffset;
@@ -0,0 +1,37 @@
1
+ export default class VirtualOffset {
2
+ constructor(blockPosition, dataPosition) {
3
+ this.blockPosition = blockPosition; // < offset of the compressed data block
4
+ this.dataPosition = dataPosition; // < offset into the uncompressed data
5
+ }
6
+ toString() {
7
+ return `${this.blockPosition}:${this.dataPosition}`;
8
+ }
9
+ compareTo(b) {
10
+ return (this.blockPosition - b.blockPosition || this.dataPosition - b.dataPosition);
11
+ }
12
+ static min(...args) {
13
+ let min;
14
+ let i = 0;
15
+ for (; !min; i += 1) {
16
+ min = args[i];
17
+ }
18
+ for (; i < args.length; i += 1) {
19
+ if (min.compareTo(args[i]) > 0) {
20
+ min = args[i];
21
+ }
22
+ }
23
+ return min;
24
+ }
25
+ }
26
+ export function fromBytes(bytes, offset = 0, bigendian = false) {
27
+ if (bigendian) {
28
+ throw new Error('big-endian virtual file offsets not implemented');
29
+ }
30
+ return new VirtualOffset(bytes[offset + 7] * 0x10000000000 +
31
+ bytes[offset + 6] * 0x100000000 +
32
+ bytes[offset + 5] * 0x1000000 +
33
+ bytes[offset + 4] * 0x10000 +
34
+ bytes[offset + 3] * 0x100 +
35
+ bytes[offset + 2], (bytes[offset + 1] << 8) | bytes[offset]);
36
+ }
37
+ //# sourceMappingURL=virtualOffset.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"virtualOffset.js","sourceRoot":"","sources":["../src/virtualOffset.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,OAAO,aAAa;IAGhC,YAAY,aAAqB,EAAE,YAAoB;QACrD,IAAI,CAAC,aAAa,GAAG,aAAa,CAAA,CAAC,wCAAwC;QAC3E,IAAI,CAAC,YAAY,GAAG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MAAM,GAAG,CAAC,CAAC,EACnB,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,GAAG,KAAK,CAAC,MAAM,CAAC,CACzC,CAAA;AACH,CAAC"}
package/package.json CHANGED
@@ -1,10 +1,11 @@
1
1
  {
2
2
  "name": "@gmod/bam",
3
- "version": "1.1.8",
3
+ "version": "1.1.9",
4
4
  "description": "Parser for BAM and BAM index (bai) files",
5
5
  "license": "MIT",
6
6
  "repository": "GMOD/bam-js",
7
7
  "main": "dist/index.js",
8
+ "module": "esm/index.js",
8
9
  "author": {
9
10
  "name": "Colin Diesh",
10
11
  "email": "colin.diesh@gmail.com",
@@ -14,24 +15,22 @@
14
15
  "node": ">=6"
15
16
  },
16
17
  "files": [
17
- "dist"
18
+ "dist",
19
+ "esm"
18
20
  ],
19
21
  "scripts": {
20
22
  "test": "jest",
21
23
  "coverage": "npm test -- --coverage",
22
24
  "lint": "eslint --report-unused-disable-directives --max-warnings 0 --ext .js,.ts src test",
23
- "clean": "rimraf dist",
25
+ "clean": "rimraf dist esm",
26
+ "build:esm": "tsc --target es2018 --outDir esm",
27
+ "build:es5": "tsc --target es5 --outDir dist",
28
+ "build": "npm run build:esm && npm run build:es5",
24
29
  "prebuild": "npm run clean && npm run lint",
25
- "build:types": "tsc --emitDeclarationOnly",
26
- "build:js": "babel src --out-dir dist --extensions \".ts,.tsx\" --source-maps inline",
27
- "build": "npm run build:types && npm run build:js",
28
30
  "preversion": "npm run lint && npm test && npm run build",
29
31
  "version": "standard-changelog && git add CHANGELOG.md",
30
32
  "postversion": "git push --follow-tags"
31
33
  },
32
- "jest": {
33
- "testEnvironment": "node"
34
- },
35
34
  "keywords": [
36
35
  "bionode",
37
36
  "biojs",
@@ -39,7 +38,6 @@
39
38
  "genomics"
40
39
  ],
41
40
  "dependencies": {
42
- "@babel/runtime-corejs3": "^7.5.5",
43
41
  "@gmod/bgzf-filehandle": "^1.3.3",
44
42
  "abortable-promise-cache": "^1.4.0",
45
43
  "buffer-crc32": "^0.2.13",
@@ -52,30 +50,24 @@
52
50
  "range-parser": "^1.2.1"
53
51
  },
54
52
  "devDependencies": {
55
- "@babel/cli": "^7.2.3",
56
- "@babel/core": "^7.3.3",
57
- "@babel/plugin-proposal-class-properties": "^7.5.5",
58
- "@babel/plugin-transform-runtime": "^7.2.0",
59
- "@babel/preset-env": "^7.3.1",
60
- "@babel/preset-typescript": "^7.6.0",
61
53
  "@types/buffer-crc32": "^0.2.0",
54
+ "@types/jest": "^27.0.2",
62
55
  "@types/long": "^4.0.0",
63
56
  "@types/node": "^12.7.8",
64
57
  "@types/range-parser": "^1.2.3",
65
- "@typescript-eslint/eslint-plugin": "^2.3.1",
66
- "@typescript-eslint/parser": "^2.3.1",
67
- "babel-jest": "^24.1.0",
68
- "eslint": "^5.12.0",
69
- "eslint-config-airbnb-base": "^13.1.0",
70
- "eslint-config-prettier": "^4.1.0",
71
- "eslint-plugin-import": "^2.10.0",
72
- "eslint-plugin-jest": "^22.17.0",
73
- "eslint-plugin-prettier": "^3.0.1",
74
- "jest": "^24.3.1",
75
- "prettier": "^1.11.1",
76
- "rimraf": "^2.6.2",
58
+ "@typescript-eslint/eslint-plugin": "^5.7.0",
59
+ "@typescript-eslint/parser": "^5.7.0",
60
+ "eslint": "^7.0.0",
61
+ "eslint-config-airbnb-base": "^15.0.0",
62
+ "eslint-config-prettier": "^8.3.0",
63
+ "eslint-plugin-import": "^2.25.3",
64
+ "eslint-plugin-prettier": "^4.0.0",
65
+ "jest": "^27.3.1",
66
+ "prettier": "^2.4.1",
67
+ "rimraf": "^3.0.2",
77
68
  "standard-changelog": "^1.0.0",
78
- "typescript": "^3.6.3"
69
+ "ts-jest": "^27.0.7",
70
+ "typescript": "^4.4.4"
79
71
  },
80
72
  "publishConfig": {
81
73
  "access": "public"
package/dist/declare.d.js DELETED
@@ -1,2 +0,0 @@
1
- "use strict";
2
- //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbXX0=