@jbrowse/plugin-sequence 1.5.2 → 1.5.6
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/LinearReferenceSequenceDisplay/model.d.ts +1 -1
- package/dist/TwoBitAdapter/TwoBitAdapter.d.ts +1 -1
- package/dist/plugin-sequence.cjs.development.js +22 -28
- 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 +22 -28
- package/dist/plugin-sequence.esm.js.map +1 -1
- package/package.json +2 -2
- 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
|
|
@@ -157,7 +157,7 @@ export declare function modelFactory(configSchema: AnyConfigurationSchemaType):
|
|
|
157
157
|
}[];
|
|
158
158
|
renderProps(): any;
|
|
159
159
|
} & {
|
|
160
|
-
renderSvg(opts: import("@jbrowse/plugin-linear-genome-view/
|
|
160
|
+
renderSvg(opts: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").ExportSvgOptions & {
|
|
161
161
|
overrideHeight: number;
|
|
162
162
|
}): Promise<JSX.Element>;
|
|
163
163
|
} & {
|
|
@@ -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
|
}
|
|
@@ -2554,7 +2548,7 @@ var _default$2 = /*#__PURE__*/function (_IndexedFasta) {
|
|
|
2554
2548
|
return _this;
|
|
2555
2549
|
}
|
|
2556
2550
|
|
|
2557
|
-
return _default;
|
|
2551
|
+
return _createClass(_default);
|
|
2558
2552
|
}(_default$1);
|
|
2559
2553
|
|
|
2560
2554
|
var BgzipFastaAdapter = {
|