@jbrowse/plugin-sequence 1.5.1 → 1.5.5
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/IndexedFastaAdapter/IndexedFastaAdapter.d.ts +3 -3
- package/dist/TwoBitAdapter/TwoBitAdapter.d.ts +1 -1
- package/dist/plugin-sequence.cjs.development.js +34 -32
- package/dist/plugin-sequence.cjs.development.js.map +1 -1
- package/dist/plugin-sequence.cjs.production.min.js +1 -1
- package/dist/plugin-sequence.cjs.production.min.js.map +1 -1
- package/dist/plugin-sequence.esm.js +34 -32
- package/dist/plugin-sequence.esm.js.map +1 -1
- package/package.json +5 -5
- package/src/ChromSizesAdapter/ChromSizesAdapter.ts +1 -1
- package/src/IndexedFastaAdapter/IndexedFastaAdapter.ts +1 -1
- package/src/TwoBitAdapter/TwoBitAdapter.ts +3 -7
- package/src/declare.d.ts +0 -2
|
@@ -6,14 +6,14 @@ import { AnyConfigurationModel } from '@jbrowse/core/configuration/configuration
|
|
|
6
6
|
import PluginManager from '@jbrowse/core/PluginManager';
|
|
7
7
|
import { getSubAdapterType } from '@jbrowse/core/data_adapters/dataAdapterCache';
|
|
8
8
|
export default class extends BaseFeatureDataAdapter implements SequenceAdapter {
|
|
9
|
-
protected fasta:
|
|
9
|
+
protected fasta: IndexedFasta;
|
|
10
10
|
private seqCache;
|
|
11
11
|
constructor(config: AnyConfigurationModel, getSubAdapter?: getSubAdapterType, pluginManager?: PluginManager);
|
|
12
|
-
getRefNames(opts?: BaseOptions):
|
|
12
|
+
getRefNames(opts?: BaseOptions): Promise<string[]>;
|
|
13
13
|
getRegions(opts?: BaseOptions): Promise<{
|
|
14
14
|
refName: string;
|
|
15
15
|
start: number;
|
|
16
|
-
end:
|
|
16
|
+
end: number;
|
|
17
17
|
}[]>;
|
|
18
18
|
/**
|
|
19
19
|
* Fetch features for a certain region
|
|
@@ -9,7 +9,7 @@ export default class TwoBitAdapter extends BaseFeatureDataAdapter implements Seq
|
|
|
9
9
|
protected chromSizesData: Promise<Record<string, number> | undefined>;
|
|
10
10
|
private initChromSizes;
|
|
11
11
|
constructor(config: AnyConfigurationModel, getSubAdapter?: getSubAdapterType, pluginManager?: PluginManager);
|
|
12
|
-
getRefNames(): Promise<
|
|
12
|
+
getRefNames(): Promise<string[]>;
|
|
13
13
|
getRegions(): Promise<NoAssemblyRegion[]>;
|
|
14
14
|
/**
|
|
15
15
|
* Fetch features for a certain region
|
|
@@ -33,14 +33,9 @@ function ownKeys(object, enumerableOnly) {
|
|
|
33
33
|
|
|
34
34
|
if (Object.getOwnPropertySymbols) {
|
|
35
35
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
40
|
-
});
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
keys.push.apply(keys, symbols);
|
|
36
|
+
enumerableOnly && (symbols = symbols.filter(function (sym) {
|
|
37
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
38
|
+
})), keys.push.apply(keys, symbols);
|
|
44
39
|
}
|
|
45
40
|
|
|
46
41
|
return keys;
|
|
@@ -48,19 +43,12 @@ function ownKeys(object, enumerableOnly) {
|
|
|
48
43
|
|
|
49
44
|
function _objectSpread2(target) {
|
|
50
45
|
for (var i = 1; i < arguments.length; i++) {
|
|
51
|
-
var source = arguments[i]
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
} else if (Object.getOwnPropertyDescriptors) {
|
|
58
|
-
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
59
|
-
} else {
|
|
60
|
-
ownKeys(Object(source)).forEach(function (key) {
|
|
61
|
-
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
62
|
-
});
|
|
63
|
-
}
|
|
46
|
+
var source = null != arguments[i] ? arguments[i] : {};
|
|
47
|
+
i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
|
|
48
|
+
_defineProperty(target, key, source[key]);
|
|
49
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
|
|
50
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
51
|
+
});
|
|
64
52
|
}
|
|
65
53
|
|
|
66
54
|
return target;
|
|
@@ -121,6 +109,9 @@ function _defineProperties(target, props) {
|
|
|
121
109
|
function _createClass(Constructor, protoProps, staticProps) {
|
|
122
110
|
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
123
111
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
112
|
+
Object.defineProperty(Constructor, "prototype", {
|
|
113
|
+
writable: false
|
|
114
|
+
});
|
|
124
115
|
return Constructor;
|
|
125
116
|
}
|
|
126
117
|
|
|
@@ -144,12 +135,15 @@ function _inherits(subClass, superClass) {
|
|
|
144
135
|
throw new TypeError("Super expression must either be null or a function");
|
|
145
136
|
}
|
|
146
137
|
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
138
|
+
Object.defineProperty(subClass, "prototype", {
|
|
139
|
+
value: Object.create(superClass && superClass.prototype, {
|
|
140
|
+
constructor: {
|
|
141
|
+
value: subClass,
|
|
142
|
+
writable: true,
|
|
143
|
+
configurable: true
|
|
144
|
+
}
|
|
145
|
+
}),
|
|
146
|
+
writable: false
|
|
153
147
|
});
|
|
154
148
|
if (superClass) _setPrototypeOf(subClass, superClass);
|
|
155
149
|
}
|
|
@@ -1941,7 +1935,9 @@ var default_1 = /*#__PURE__*/function (_BaseFeatureDataAdapt) {
|
|
|
1941
1935
|
|
|
1942
1936
|
}, {
|
|
1943
1937
|
key: "freeResources",
|
|
1944
|
-
value: function
|
|
1938
|
+
value: function
|
|
1939
|
+
/* { region } */
|
|
1940
|
+
freeResources() {}
|
|
1945
1941
|
}]);
|
|
1946
1942
|
|
|
1947
1943
|
return default_1;
|
|
@@ -2186,7 +2182,9 @@ var TwoBitAdapter = /*#__PURE__*/function (_BaseFeatureDataAdapt) {
|
|
|
2186
2182
|
|
|
2187
2183
|
}, {
|
|
2188
2184
|
key: "freeResources",
|
|
2189
|
-
value: function
|
|
2185
|
+
value: function
|
|
2186
|
+
/* { region } */
|
|
2187
|
+
freeResources() {}
|
|
2190
2188
|
}]);
|
|
2191
2189
|
|
|
2192
2190
|
return TwoBitAdapter;
|
|
@@ -2313,7 +2311,9 @@ var _default = /*#__PURE__*/function (_BaseAdapter) {
|
|
|
2313
2311
|
}
|
|
2314
2312
|
}, {
|
|
2315
2313
|
key: "freeResources",
|
|
2316
|
-
value: function
|
|
2314
|
+
value: function
|
|
2315
|
+
/* { region } */
|
|
2316
|
+
freeResources() {}
|
|
2317
2317
|
}]);
|
|
2318
2318
|
|
|
2319
2319
|
return _default;
|
|
@@ -2499,7 +2499,9 @@ var _default$1 = /*#__PURE__*/function (_BaseFeatureDataAdapt) {
|
|
|
2499
2499
|
|
|
2500
2500
|
}, {
|
|
2501
2501
|
key: "freeResources",
|
|
2502
|
-
value: function
|
|
2502
|
+
value: function
|
|
2503
|
+
/* { region } */
|
|
2504
|
+
freeResources() {}
|
|
2503
2505
|
}]);
|
|
2504
2506
|
|
|
2505
2507
|
return _default;
|
|
@@ -2546,7 +2548,7 @@ var _default$2 = /*#__PURE__*/function (_IndexedFasta) {
|
|
|
2546
2548
|
return _this;
|
|
2547
2549
|
}
|
|
2548
2550
|
|
|
2549
|
-
return _default;
|
|
2551
|
+
return _createClass(_default);
|
|
2550
2552
|
}(_default$1);
|
|
2551
2553
|
|
|
2552
2554
|
var BgzipFastaAdapter = {
|