@jbrowse/plugin-variants 2.14.0 → 2.15.0
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.
|
@@ -40,7 +40,7 @@ class VcfAdapter extends BaseAdapter_1.BaseFeatureDataAdapter {
|
|
|
40
40
|
while (blockStart < buffer.length) {
|
|
41
41
|
const n = buffer.indexOf('\n', blockStart);
|
|
42
42
|
// could be a non-newline ended file, so slice to end of file if n===-1
|
|
43
|
-
const b = n === -1 ? buffer.
|
|
43
|
+
const b = n === -1 ? buffer.subarray(blockStart) : buffer.subarray(blockStart, n);
|
|
44
44
|
const line = ((decoder === null || decoder === void 0 ? void 0 : decoder.decode(b)) || b.toString()).trim();
|
|
45
45
|
if (line) {
|
|
46
46
|
if (line.startsWith('#')) {
|
|
@@ -23,7 +23,6 @@ class VcfTabixAdapter extends BaseAdapter_1.BaseFeatureDataAdapter {
|
|
|
23
23
|
csiFilehandle: isCSI ? (0, io_1.openLocation)(location, pm) : undefined,
|
|
24
24
|
tbiFilehandle: !isCSI ? (0, io_1.openLocation)(location, pm) : undefined,
|
|
25
25
|
chunkCacheSize: 50 * 2 ** 20,
|
|
26
|
-
chunkSizeLimit: 1000000000,
|
|
27
26
|
});
|
|
28
27
|
const header = await vcf.getHeader();
|
|
29
28
|
return {
|
|
@@ -35,7 +35,7 @@ class VcfAdapter extends BaseFeatureDataAdapter {
|
|
|
35
35
|
while (blockStart < buffer.length) {
|
|
36
36
|
const n = buffer.indexOf('\n', blockStart);
|
|
37
37
|
// could be a non-newline ended file, so slice to end of file if n===-1
|
|
38
|
-
const b = n === -1 ? buffer.
|
|
38
|
+
const b = n === -1 ? buffer.subarray(blockStart) : buffer.subarray(blockStart, n);
|
|
39
39
|
const line = ((decoder === null || decoder === void 0 ? void 0 : decoder.decode(b)) || b.toString()).trim();
|
|
40
40
|
if (line) {
|
|
41
41
|
if (line.startsWith('#')) {
|
|
@@ -18,7 +18,6 @@ export default class VcfTabixAdapter extends BaseFeatureDataAdapter {
|
|
|
18
18
|
csiFilehandle: isCSI ? openLocation(location, pm) : undefined,
|
|
19
19
|
tbiFilehandle: !isCSI ? openLocation(location, pm) : undefined,
|
|
20
20
|
chunkCacheSize: 50 * 2 ** 20,
|
|
21
|
-
chunkSizeLimit: 1000000000,
|
|
22
21
|
});
|
|
23
22
|
const header = await vcf.getHeader();
|
|
24
23
|
return {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jbrowse/plugin-variants",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.15.0",
|
|
4
4
|
"description": "JBrowse 2 variant adapters, tracks, etc.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"jbrowse",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"@gmod/bgzf-filehandle": "^1.4.3",
|
|
41
41
|
"@gmod/tabix": "^1.5.6",
|
|
42
42
|
"@gmod/vcf": "^5.0.9",
|
|
43
|
-
"@mui/icons-material": "^
|
|
43
|
+
"@mui/icons-material": "^6.0.0",
|
|
44
44
|
"@mui/x-data-grid": "^7.0.0",
|
|
45
45
|
"generic-filehandle": "^3.0.0"
|
|
46
46
|
},
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"@jbrowse/core": "^2.0.0",
|
|
49
49
|
"@jbrowse/plugin-circular-view": "^2.0.0",
|
|
50
50
|
"@jbrowse/plugin-linear-genome-view": "^2.0.0",
|
|
51
|
-
"@mui/material": "^
|
|
51
|
+
"@mui/material": "^6.0.0",
|
|
52
52
|
"mobx": "^6.0.0",
|
|
53
53
|
"mobx-react": "^9.0.0",
|
|
54
54
|
"mobx-state-tree": "^5.0.0",
|
|
@@ -62,5 +62,5 @@
|
|
|
62
62
|
"distModule": "esm/index.js",
|
|
63
63
|
"srcModule": "src/index.ts",
|
|
64
64
|
"module": "esm/index.js",
|
|
65
|
-
"gitHead": "
|
|
65
|
+
"gitHead": "87eeb1fbf8311dbf88d5e75b5a265f03beffdda8"
|
|
66
66
|
}
|