@jbrowse/plugin-comparative-adapters 2.12.0 → 2.12.2
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.
- package/dist/ChainAdapter/index.js +1 -1
- package/dist/ChainAdapter/util.d.ts +0 -1
- package/dist/ChainAdapter/util.js +1 -2
- package/dist/DeltaAdapter/index.js +1 -1
- package/dist/DeltaAdapter/util.d.ts +0 -1
- package/dist/DeltaAdapter/util.js +1 -2
- package/dist/MCScanAnchorsAdapter/index.js +1 -1
- package/dist/MCScanSimpleAnchorsAdapter/index.js +1 -1
- package/dist/MashMapAdapter/index.js +1 -1
- package/dist/PAFAdapter/index.js +1 -1
- package/dist/PAFAdapter/util.js +1 -2
- package/dist/PairwiseIndexedPAFAdapter/index.js +1 -1
- package/dist/util.d.ts +0 -1
- package/dist/util.js +8 -9
- package/esm/ChainAdapter/util.d.ts +0 -1
- package/esm/DeltaAdapter/util.d.ts +0 -1
- package/esm/util.d.ts +0 -1
- package/package.json +2 -2
|
@@ -26,6 +26,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
26
26
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.default = ChainAdapterF;
|
|
29
30
|
const AdapterType_1 = __importDefault(require("@jbrowse/core/pluggableElementTypes/AdapterType"));
|
|
30
31
|
const configSchema_1 = __importDefault(require("./configSchema"));
|
|
31
32
|
function ChainAdapterF(pluginManager) {
|
|
@@ -39,4 +40,3 @@ function ChainAdapterF(pluginManager) {
|
|
|
39
40
|
getAdapterClass: () => Promise.resolve().then(() => __importStar(require('./ChainAdapter'))).then(r => r.default),
|
|
40
41
|
}));
|
|
41
42
|
}
|
|
42
|
-
exports.default = ChainAdapterF;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.paf_chain2paf =
|
|
3
|
+
exports.paf_chain2paf = paf_chain2paf;
|
|
4
4
|
const decoder = typeof TextDecoder !== 'undefined' ? new TextDecoder('utf8') : undefined;
|
|
5
5
|
/* adapted from chain2paf by Andrea Guarracino, license reproduced below
|
|
6
6
|
*
|
|
@@ -130,4 +130,3 @@ function paf_chain2paf(buffer) {
|
|
|
130
130
|
}
|
|
131
131
|
return records;
|
|
132
132
|
}
|
|
133
|
-
exports.paf_chain2paf = paf_chain2paf;
|
|
@@ -26,6 +26,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
26
26
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.default = DeltaAdapterF;
|
|
29
30
|
const AdapterType_1 = __importDefault(require("@jbrowse/core/pluggableElementTypes/AdapterType"));
|
|
30
31
|
const configSchema_1 = __importDefault(require("./configSchema"));
|
|
31
32
|
function DeltaAdapterF(pluginManager) {
|
|
@@ -39,4 +40,3 @@ function DeltaAdapterF(pluginManager) {
|
|
|
39
40
|
getAdapterClass: () => Promise.resolve().then(() => __importStar(require('./DeltaAdapter'))).then(r => r.default),
|
|
40
41
|
}));
|
|
41
42
|
}
|
|
42
|
-
exports.default = DeltaAdapterF;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.paf_delta2paf =
|
|
3
|
+
exports.paf_delta2paf = paf_delta2paf;
|
|
4
4
|
const decoder = typeof TextDecoder !== 'undefined' ? new TextDecoder('utf8') : undefined;
|
|
5
5
|
/* paf2delta from paftools.js in the minimap2 repository, license reproduced below
|
|
6
6
|
*
|
|
@@ -148,4 +148,3 @@ function paf_delta2paf(buffer) {
|
|
|
148
148
|
}
|
|
149
149
|
return records;
|
|
150
150
|
}
|
|
151
|
-
exports.paf_delta2paf = paf_delta2paf;
|
|
@@ -26,6 +26,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
26
26
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.default = MCScanAnchorsAdapterF;
|
|
29
30
|
const AdapterType_1 = __importDefault(require("@jbrowse/core/pluggableElementTypes/AdapterType"));
|
|
30
31
|
const configSchema_1 = __importDefault(require("./configSchema"));
|
|
31
32
|
function MCScanAnchorsAdapterF(pluginManager) {
|
|
@@ -39,4 +40,3 @@ function MCScanAnchorsAdapterF(pluginManager) {
|
|
|
39
40
|
getAdapterClass: () => Promise.resolve().then(() => __importStar(require('./MCScanAnchorsAdapter'))).then(r => r.default),
|
|
40
41
|
}));
|
|
41
42
|
}
|
|
42
|
-
exports.default = MCScanAnchorsAdapterF;
|
|
@@ -26,6 +26,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
26
26
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.default = MCScanSimpleAnchorsAdapterF;
|
|
29
30
|
const AdapterType_1 = __importDefault(require("@jbrowse/core/pluggableElementTypes/AdapterType"));
|
|
30
31
|
const configSchema_1 = __importDefault(require("./configSchema"));
|
|
31
32
|
function MCScanSimpleAnchorsAdapterF(pluginManager) {
|
|
@@ -39,4 +40,3 @@ function MCScanSimpleAnchorsAdapterF(pluginManager) {
|
|
|
39
40
|
getAdapterClass: () => Promise.resolve().then(() => __importStar(require('./MCScanSimpleAnchorsAdapter'))).then(r => r.default),
|
|
40
41
|
}));
|
|
41
42
|
}
|
|
42
|
-
exports.default = MCScanSimpleAnchorsAdapterF;
|
|
@@ -26,6 +26,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
26
26
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.default = MashMapAdapterF;
|
|
29
30
|
const AdapterType_1 = __importDefault(require("@jbrowse/core/pluggableElementTypes/AdapterType"));
|
|
30
31
|
const configSchema_1 = __importDefault(require("./configSchema"));
|
|
31
32
|
function MashMapAdapterF(pluginManager) {
|
|
@@ -39,4 +40,3 @@ function MashMapAdapterF(pluginManager) {
|
|
|
39
40
|
getAdapterClass: () => Promise.resolve().then(() => __importStar(require('./MashMapAdapter'))).then(r => r.default),
|
|
40
41
|
}));
|
|
41
42
|
}
|
|
42
|
-
exports.default = MashMapAdapterF;
|
package/dist/PAFAdapter/index.js
CHANGED
|
@@ -26,6 +26,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
26
26
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.default = PAFAdapterF;
|
|
29
30
|
const AdapterType_1 = __importDefault(require("@jbrowse/core/pluggableElementTypes/AdapterType"));
|
|
30
31
|
const configSchema_1 = __importDefault(require("./configSchema"));
|
|
31
32
|
function PAFAdapterF(pluginManager) {
|
|
@@ -39,4 +40,3 @@ function PAFAdapterF(pluginManager) {
|
|
|
39
40
|
getAdapterClass: () => Promise.resolve().then(() => __importStar(require('./PAFAdapter'))).then(r => r.default),
|
|
40
41
|
}));
|
|
41
42
|
}
|
|
42
|
-
exports.default = PAFAdapterF;
|
package/dist/PAFAdapter/util.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getWeightedMeans =
|
|
3
|
+
exports.getWeightedMeans = getWeightedMeans;
|
|
4
4
|
const util_1 = require("../util");
|
|
5
5
|
// based on "weighted mean" method from https://github.com/tpoorten/dotPlotly
|
|
6
6
|
// License reproduced here
|
|
@@ -70,7 +70,6 @@ function getWeightedMeans(ret) {
|
|
|
70
70
|
}
|
|
71
71
|
return ret;
|
|
72
72
|
}
|
|
73
|
-
exports.getWeightedMeans = getWeightedMeans;
|
|
74
73
|
// https://gist.github.com/stekhn/a12ed417e91f90ecec14bcfa4c2ae16a
|
|
75
74
|
function weightedMean(tuples) {
|
|
76
75
|
// eslint-disable-next-line unicorn/no-array-reduce
|
|
@@ -26,6 +26,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
26
26
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.default = PairwiseIndexedPAFAdapterF;
|
|
29
30
|
const AdapterType_1 = __importDefault(require("@jbrowse/core/pluggableElementTypes/AdapterType"));
|
|
30
31
|
const configSchema_1 = __importDefault(require("./configSchema"));
|
|
31
32
|
function PairwiseIndexedPAFAdapterF(pluginManager) {
|
|
@@ -39,4 +40,3 @@ function PairwiseIndexedPAFAdapterF(pluginManager) {
|
|
|
39
40
|
getAdapterClass: () => Promise.resolve().then(() => __importStar(require('./PairwiseIndexedPAFAdapter'))).then(r => r.default),
|
|
40
41
|
}));
|
|
41
42
|
}
|
|
42
|
-
exports.default = PairwiseIndexedPAFAdapterF;
|
package/dist/util.d.ts
CHANGED
package/dist/util.js
CHANGED
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.isGzip = isGzip;
|
|
4
|
+
exports.parseBed = parseBed;
|
|
5
|
+
exports.readFile = readFile;
|
|
6
|
+
exports.zip = zip;
|
|
7
|
+
exports.parseLineByLine = parseLineByLine;
|
|
8
|
+
exports.parsePAFLine = parsePAFLine;
|
|
9
|
+
exports.flipCigar = flipCigar;
|
|
10
|
+
exports.swapIndelCigar = swapIndelCigar;
|
|
4
11
|
const bgzf_filehandle_1 = require("@gmod/bgzf-filehandle");
|
|
5
12
|
function isGzip(buf) {
|
|
6
13
|
return buf[0] === 31 && buf[1] === 139 && buf[2] === 8;
|
|
7
14
|
}
|
|
8
|
-
exports.isGzip = isGzip;
|
|
9
15
|
function parseBed(text) {
|
|
10
16
|
return new Map(text
|
|
11
17
|
.split(/\n|\r\n|\r/)
|
|
@@ -25,16 +31,13 @@ function parseBed(text) {
|
|
|
25
31
|
];
|
|
26
32
|
}));
|
|
27
33
|
}
|
|
28
|
-
exports.parseBed = parseBed;
|
|
29
34
|
async function readFile(file, opts) {
|
|
30
35
|
const buffer = (await file.readFile(opts));
|
|
31
36
|
return new TextDecoder('utf8', { fatal: true }).decode(isGzip(buffer) ? await (0, bgzf_filehandle_1.unzip)(buffer) : buffer);
|
|
32
37
|
}
|
|
33
|
-
exports.readFile = readFile;
|
|
34
38
|
function zip(a, b) {
|
|
35
39
|
return a.map((e, i) => [e, b[i]]);
|
|
36
40
|
}
|
|
37
|
-
exports.zip = zip;
|
|
38
41
|
const decoder = typeof TextDecoder !== 'undefined' ? new TextDecoder('utf8') : undefined;
|
|
39
42
|
function parseLineByLine(buffer, cb) {
|
|
40
43
|
let blockStart = 0;
|
|
@@ -53,7 +56,6 @@ function parseLineByLine(buffer, cb) {
|
|
|
53
56
|
}
|
|
54
57
|
return entries;
|
|
55
58
|
}
|
|
56
|
-
exports.parseLineByLine = parseLineByLine;
|
|
57
59
|
function parsePAFLine(line) {
|
|
58
60
|
const [qname, , qstart, qend, strand, tname, , tstart, tend, numMatches, blockLen, mappingQual, ...fields] = line.split('\t');
|
|
59
61
|
const rest = Object.fromEntries(fields.map(field => {
|
|
@@ -78,7 +80,6 @@ function parsePAFLine(line) {
|
|
|
78
80
|
},
|
|
79
81
|
};
|
|
80
82
|
}
|
|
81
|
-
exports.parsePAFLine = parsePAFLine;
|
|
82
83
|
function flipCigar(cigar) {
|
|
83
84
|
const arr = [];
|
|
84
85
|
for (let i = cigar.length - 2; i >= 0; i -= 2) {
|
|
@@ -96,8 +97,6 @@ function flipCigar(cigar) {
|
|
|
96
97
|
}
|
|
97
98
|
return arr;
|
|
98
99
|
}
|
|
99
|
-
exports.flipCigar = flipCigar;
|
|
100
100
|
function swapIndelCigar(cigar) {
|
|
101
101
|
return cigar.replaceAll('D', 'K').replaceAll('I', 'D').replaceAll('K', 'I');
|
|
102
102
|
}
|
|
103
|
-
exports.swapIndelCigar = swapIndelCigar;
|
package/esm/util.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jbrowse/plugin-comparative-adapters",
|
|
3
|
-
"version": "2.12.
|
|
3
|
+
"version": "2.12.2",
|
|
4
4
|
"description": "JBrowse 2 comparative adapters",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"jbrowse",
|
|
@@ -59,5 +59,5 @@
|
|
|
59
59
|
"publishConfig": {
|
|
60
60
|
"access": "public"
|
|
61
61
|
},
|
|
62
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "1ec66736ce048a1637f52b7a7ef2eb02d956b771"
|
|
63
63
|
}
|