@jbrowse/plugin-sequence 2.2.1 → 2.3.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.
- package/dist/BgzipFastaAdapter/index.js +1 -3
- package/dist/BgzipFastaAdapter/index.js.map +1 -1
- package/dist/ChromSizesAdapter/index.js +1 -3
- package/dist/ChromSizesAdapter/index.js.map +1 -1
- package/dist/IndexedFastaAdapter/IndexedFastaAdapter.d.ts +1 -1
- package/dist/IndexedFastaAdapter/IndexedFastaAdapter.js +1 -1
- package/dist/IndexedFastaAdapter/index.js +1 -3
- package/dist/IndexedFastaAdapter/index.js.map +1 -1
- package/dist/LinearReferenceSequenceDisplay/index.js +4 -2
- package/dist/LinearReferenceSequenceDisplay/index.js.map +1 -1
- package/dist/LinearReferenceSequenceDisplay/model.d.ts +1 -1
- package/dist/ReferenceSequenceTrack/index.js +1 -0
- package/dist/ReferenceSequenceTrack/index.js.map +1 -1
- package/dist/SequenceSearchAdapter/SequenceSearchAdapter.js +2 -2
- package/dist/SequenceSearchAdapter/SequenceSearchAdapter.js.map +1 -1
- package/dist/SequenceSearchAdapter/index.js +1 -3
- package/dist/SequenceSearchAdapter/index.js.map +1 -1
- package/dist/TwoBitAdapter/TwoBitAdapter.d.ts +1 -1
- package/dist/TwoBitAdapter/TwoBitAdapter.js +1 -1
- package/dist/TwoBitAdapter/index.js +1 -3
- package/dist/TwoBitAdapter/index.js.map +1 -1
- package/esm/BgzipFastaAdapter/index.js +1 -3
- package/esm/BgzipFastaAdapter/index.js.map +1 -1
- package/esm/ChromSizesAdapter/index.js +1 -3
- package/esm/ChromSizesAdapter/index.js.map +1 -1
- package/esm/IndexedFastaAdapter/IndexedFastaAdapter.d.ts +1 -1
- package/esm/IndexedFastaAdapter/IndexedFastaAdapter.js +1 -1
- package/esm/IndexedFastaAdapter/index.js +1 -3
- package/esm/IndexedFastaAdapter/index.js.map +1 -1
- package/esm/LinearReferenceSequenceDisplay/index.js +4 -2
- package/esm/LinearReferenceSequenceDisplay/index.js.map +1 -1
- package/esm/LinearReferenceSequenceDisplay/model.d.ts +1 -1
- package/esm/ReferenceSequenceTrack/index.js +1 -0
- package/esm/ReferenceSequenceTrack/index.js.map +1 -1
- package/esm/SequenceSearchAdapter/SequenceSearchAdapter.js +2 -2
- package/esm/SequenceSearchAdapter/SequenceSearchAdapter.js.map +1 -1
- package/esm/SequenceSearchAdapter/index.js +1 -3
- package/esm/SequenceSearchAdapter/index.js.map +1 -1
- package/esm/TwoBitAdapter/TwoBitAdapter.d.ts +1 -1
- package/esm/TwoBitAdapter/TwoBitAdapter.js +1 -1
- package/esm/TwoBitAdapter/index.js +1 -3
- package/esm/TwoBitAdapter/index.js.map +1 -1
- package/package.json +3 -4
- package/src/BgzipFastaAdapter/index.ts +1 -3
- package/src/ChromSizesAdapter/index.ts +1 -3
- package/src/DivSequenceRenderer/components/DivSequenceRendering.test.js +0 -2
- package/src/IndexedFastaAdapter/IndexedFastaAdapter.ts +1 -1
- package/src/IndexedFastaAdapter/index.ts +1 -3
- package/src/LinearReferenceSequenceDisplay/index.ts +4 -2
- package/src/ReferenceSequenceTrack/index.ts +1 -0
- package/src/SequenceSearchAdapter/SequenceSearchAdapter.ts +2 -2
- package/src/SequenceSearchAdapter/index.ts +1 -3
- package/src/TwoBitAdapter/TwoBitAdapter.ts +1 -1
- package/src/TwoBitAdapter/index.ts +1 -3
|
@@ -31,12 +31,10 @@ const configSchema_1 = __importDefault(require("./configSchema"));
|
|
|
31
31
|
exports.default = (pluginManager) => {
|
|
32
32
|
pluginManager.addAdapterType(() => new AdapterType_1.default({
|
|
33
33
|
name: 'BgzipFastaAdapter',
|
|
34
|
+
displayName: 'Bgzip-indexed FASTA adapter',
|
|
34
35
|
configSchema: configSchema_1.default,
|
|
35
36
|
adapterMetadata: {
|
|
36
|
-
category: null,
|
|
37
37
|
hiddenFromGUI: true,
|
|
38
|
-
displayName: null,
|
|
39
|
-
description: null,
|
|
40
38
|
},
|
|
41
39
|
getAdapterClass: () => Promise.resolve().then(() => __importStar(require('./BgzipFastaAdapter'))).then(r => r.default),
|
|
42
40
|
}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/BgzipFastaAdapter/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,kGAAyE;AAEzE,kEAAyC;AAEzC,kBAAe,CAAC,aAA4B,EAAE,EAAE;IAC9C,aAAa,CAAC,cAAc,CAC1B,GAAG,EAAE,CACH,IAAI,qBAAW,CAAC;QACd,IAAI,EAAE,mBAAmB;QACzB,YAAY,EAAZ,sBAAY;QACZ,eAAe,EAAE;YACf,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/BgzipFastaAdapter/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,kGAAyE;AAEzE,kEAAyC;AAEzC,kBAAe,CAAC,aAA4B,EAAE,EAAE;IAC9C,aAAa,CAAC,cAAc,CAC1B,GAAG,EAAE,CACH,IAAI,qBAAW,CAAC;QACd,IAAI,EAAE,mBAAmB;QACzB,WAAW,EAAE,6BAA6B;QAC1C,YAAY,EAAZ,sBAAY;QACZ,eAAe,EAAE;YACf,aAAa,EAAE,IAAI;SACpB;QACD,eAAe,EAAE,GAAG,EAAE,CACpB,kDAAO,qBAAqB,IAAE,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC;KACrD,CAAC,CACL,CAAA;AACH,CAAC,CAAA"}
|
|
@@ -31,12 +31,10 @@ const configSchema_1 = __importDefault(require("./configSchema"));
|
|
|
31
31
|
exports.default = (pluginManager) => {
|
|
32
32
|
pluginManager.addAdapterType(() => new AdapterType_1.default({
|
|
33
33
|
name: 'ChromSizesAdapter',
|
|
34
|
+
displayName: 'Chrom sizes adapter',
|
|
34
35
|
configSchema: configSchema_1.default,
|
|
35
36
|
adapterMetadata: {
|
|
36
|
-
category: null,
|
|
37
37
|
hiddenFromGUI: true,
|
|
38
|
-
displayName: null,
|
|
39
|
-
description: null,
|
|
40
38
|
},
|
|
41
39
|
getAdapterClass: () => Promise.resolve().then(() => __importStar(require('./ChromSizesAdapter'))).then(r => r.default),
|
|
42
40
|
}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/ChromSizesAdapter/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,kGAAyE;AAEzE,kEAAyC;AAEzC,kBAAe,CAAC,aAA4B,EAAE,EAAE;IAC9C,aAAa,CAAC,cAAc,CAC1B,GAAG,EAAE,CACH,IAAI,qBAAW,CAAC;QACd,IAAI,EAAE,mBAAmB;QACzB,YAAY,EAAZ,sBAAY;QACZ,eAAe,EAAE;YACf,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/ChromSizesAdapter/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,kGAAyE;AAEzE,kEAAyC;AAEzC,kBAAe,CAAC,aAA4B,EAAE,EAAE;IAC9C,aAAa,CAAC,cAAc,CAC1B,GAAG,EAAE,CACH,IAAI,qBAAW,CAAC;QACd,IAAI,EAAE,mBAAmB;QACzB,WAAW,EAAE,qBAAqB;QAClC,YAAY,EAAZ,sBAAY;QACZ,eAAe,EAAE;YACf,aAAa,EAAE,IAAI;SACpB;QACD,eAAe,EAAE,GAAG,EAAE,CACpB,kDAAO,qBAAqB,IAAE,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC;KACrD,CAAC,CACL,CAAA;AACH,CAAC,CAAA"}
|
|
@@ -23,7 +23,7 @@ export default class extends BaseSequenceAdapter {
|
|
|
23
23
|
getFeatures(region: NoAssemblyRegion, opts?: BaseOptions): import("rxjs").Observable<Feature>;
|
|
24
24
|
/**
|
|
25
25
|
* called to provide a hint that data tied to a certain region
|
|
26
|
-
* will not be needed for the
|
|
26
|
+
* will not be needed for the foreseeable future and can be purged
|
|
27
27
|
* from caches, etc
|
|
28
28
|
*/
|
|
29
29
|
freeResources(): void;
|
|
@@ -92,7 +92,7 @@ class default_1 extends BaseAdapter_1.BaseSequenceAdapter {
|
|
|
92
92
|
}
|
|
93
93
|
/**
|
|
94
94
|
* called to provide a hint that data tied to a certain region
|
|
95
|
-
* will not be needed for the
|
|
95
|
+
* will not be needed for the foreseeable future and can be purged
|
|
96
96
|
* from caches, etc
|
|
97
97
|
*/
|
|
98
98
|
freeResources( /* { region } */) { }
|
|
@@ -31,12 +31,10 @@ const configSchema_1 = __importDefault(require("./configSchema"));
|
|
|
31
31
|
exports.default = (pluginManager) => {
|
|
32
32
|
pluginManager.addAdapterType(() => new AdapterType_1.default({
|
|
33
33
|
name: 'IndexedFastaAdapter',
|
|
34
|
+
displayName: 'Indexed FASTA adapter',
|
|
34
35
|
configSchema: configSchema_1.default,
|
|
35
36
|
adapterMetadata: {
|
|
36
|
-
category: null,
|
|
37
37
|
hiddenFromGUI: true,
|
|
38
|
-
displayName: null,
|
|
39
|
-
description: null,
|
|
40
38
|
},
|
|
41
39
|
getAdapterClass: () => Promise.resolve().then(() => __importStar(require('./IndexedFastaAdapter'))).then(r => r.default),
|
|
42
40
|
}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/IndexedFastaAdapter/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,kGAAyE;AAEzE,kEAAyC;AAEzC,kBAAe,CAAC,aAA4B,EAAE,EAAE;IAC9C,aAAa,CAAC,cAAc,CAC1B,GAAG,EAAE,CACH,IAAI,qBAAW,CAAC;QACd,IAAI,EAAE,qBAAqB;QAC3B,YAAY,EAAZ,sBAAY;QACZ,eAAe,EAAE;YACf,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/IndexedFastaAdapter/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,kGAAyE;AAEzE,kEAAyC;AAEzC,kBAAe,CAAC,aAA4B,EAAE,EAAE;IAC9C,aAAa,CAAC,cAAc,CAC1B,GAAG,EAAE,CACH,IAAI,qBAAW,CAAC;QACd,IAAI,EAAE,qBAAqB;QAC3B,WAAW,EAAE,uBAAuB;QACpC,YAAY,EAAZ,sBAAY;QACZ,eAAe,EAAE;YACf,aAAa,EAAE,IAAI;SACpB;QACD,eAAe,EAAE,GAAG,EAAE,CACpB,kDAAO,uBAAuB,IAAE,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC;KACvD,CAAC,CACL,CAAA;AACH,CAAC,CAAA"}
|
|
@@ -1,19 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const pluggableElementTypes_1 = require("@jbrowse/core/pluggableElementTypes");
|
|
3
4
|
const plugin_linear_genome_view_1 = require("@jbrowse/plugin-linear-genome-view");
|
|
4
5
|
const configSchema_1 = require("./configSchema");
|
|
5
6
|
const model_1 = require("./model");
|
|
6
7
|
exports.default = (pluginManager) => {
|
|
7
8
|
pluginManager.addDisplayType(() => {
|
|
8
9
|
const stateModel = (0, model_1.modelFactory)(configSchema_1.configSchema);
|
|
9
|
-
return {
|
|
10
|
+
return new pluggableElementTypes_1.DisplayType({
|
|
10
11
|
name: 'LinearReferenceSequenceDisplay',
|
|
11
12
|
configSchema: configSchema_1.configSchema,
|
|
12
13
|
stateModel,
|
|
14
|
+
displayName: 'Reference sequence display',
|
|
13
15
|
trackType: 'ReferenceSequenceTrack',
|
|
14
16
|
viewType: 'LinearGenomeView',
|
|
15
17
|
ReactComponent: plugin_linear_genome_view_1.BaseLinearDisplayComponent,
|
|
16
|
-
};
|
|
18
|
+
});
|
|
17
19
|
});
|
|
18
20
|
};
|
|
19
21
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/LinearReferenceSequenceDisplay/index.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/LinearReferenceSequenceDisplay/index.ts"],"names":[],"mappings":";;AAAA,+EAAiE;AAEjE,kFAA+E;AAE/E,iDAA6C;AAC7C,mCAAsC;AAEtC,kBAAe,CAAC,aAA4B,EAAE,EAAE;IAC9C,aAAa,CAAC,cAAc,CAAC,GAAG,EAAE;QAChC,MAAM,UAAU,GAAG,IAAA,oBAAY,EAAC,2BAAY,CAAC,CAAA;QAC7C,OAAO,IAAI,mCAAW,CAAC;YACrB,IAAI,EAAE,gCAAgC;YACtC,YAAY,EAAZ,2BAAY;YACZ,UAAU;YACV,WAAW,EAAE,4BAA4B;YACzC,SAAS,EAAE,wBAAwB;YACnC,QAAQ,EAAE,kBAAkB;YAC5B,cAAc,EAAE,sDAA0B;SAC3C,CAAC,CAAA;IACJ,CAAC,CAAC,CAAA;AACJ,CAAC,CAAA"}
|
|
@@ -115,10 +115,10 @@ export declare function modelFactory(configSchema: AnyConfigurationSchemaType):
|
|
|
115
115
|
reload(): void;
|
|
116
116
|
} & {
|
|
117
117
|
currBpPerPx: number;
|
|
118
|
+
scrollTop: number;
|
|
118
119
|
message: string;
|
|
119
120
|
featureIdUnderMouse: string | undefined;
|
|
120
121
|
contextMenuFeature: import("@jbrowse/core/util").Feature | undefined;
|
|
121
|
-
scrollTop: number;
|
|
122
122
|
estimatedRegionStatsP: Promise<import("@jbrowse/core/data_adapters/BaseAdapter").Stats> | undefined;
|
|
123
123
|
estimatedRegionStats: import("@jbrowse/core/data_adapters/BaseAdapter").Stats | undefined;
|
|
124
124
|
} & {
|
|
@@ -11,6 +11,7 @@ exports.default = (pluginManager) => {
|
|
|
11
11
|
const configSchema = (0, configSchema_1.createReferenceSeqTrackConfig)(pluginManager);
|
|
12
12
|
return new TrackType_1.default({
|
|
13
13
|
name: 'ReferenceSequenceTrack',
|
|
14
|
+
displayName: 'Reference sequence track',
|
|
14
15
|
configSchema,
|
|
15
16
|
stateModel: (0, models_1.createBaseTrackModel)(pluginManager, 'ReferenceSequenceTrack', configSchema),
|
|
16
17
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/ReferenceSequenceTrack/index.ts"],"names":[],"mappings":";;;;;AAEA,8FAAqE;AACrE,uEAAiF;AACjF,iDAA8D;AAE9D,kBAAe,CAAC,aAA4B,EAAE,EAAE;IAC9C,aAAa,CAAC,YAAY,CAAC,GAAG,EAAE;QAC9B,MAAM,YAAY,GAAG,IAAA,4CAA6B,EAAC,aAAa,CAAC,CAAA;QAEjE,OAAO,IAAI,mBAAS,CAAC;YACnB,IAAI,EAAE,wBAAwB;YAC9B,YAAY;YACZ,UAAU,EAAE,IAAA,6BAAoB,EAC9B,aAAa,EACb,wBAAwB,EACxB,YAAY,CACb;SACF,CAAC,CAAA;IACJ,CAAC,CAAC,CAAA;AACJ,CAAC,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/ReferenceSequenceTrack/index.ts"],"names":[],"mappings":";;;;;AAEA,8FAAqE;AACrE,uEAAiF;AACjF,iDAA8D;AAE9D,kBAAe,CAAC,aAA4B,EAAE,EAAE;IAC9C,aAAa,CAAC,YAAY,CAAC,GAAG,EAAE;QAC9B,MAAM,YAAY,GAAG,IAAA,4CAA6B,EAAC,aAAa,CAAC,CAAA;QAEjE,OAAO,IAAI,mBAAS,CAAC;YACnB,IAAI,EAAE,wBAAwB;YAC9B,WAAW,EAAE,0BAA0B;YACvC,YAAY;YACZ,UAAU,EAAE,IAAA,6BAAoB,EAC9B,aAAa,EACb,wBAAwB,EACxB,YAAY,CACb;SACF,CAAC,CAAA;IACJ,CAAC,CAAC,CAAA;AACJ,CAAC,CAAA"}
|
|
@@ -37,12 +37,12 @@ class default_1 extends BaseAdapter_1.BaseFeatureDataAdapter {
|
|
|
37
37
|
const feats = await ret.pipe((0, operators_1.toArray)()).toPromise();
|
|
38
38
|
const residues = ((_a = feats[0]) === null || _a === void 0 ? void 0 : _a.get('seq')) || '';
|
|
39
39
|
const search = this.getConf('search');
|
|
40
|
-
const
|
|
40
|
+
const searchForward = this.getConf('searchForward');
|
|
41
41
|
const searchReverse = this.getConf('searchReverse');
|
|
42
42
|
const caseInsensitive = this.getConf('caseInsensitive');
|
|
43
43
|
const re = new RegExp(search, 'g' + (caseInsensitive ? 'i' : ''));
|
|
44
44
|
if (search) {
|
|
45
|
-
if (
|
|
45
|
+
if (searchForward) {
|
|
46
46
|
const matches = residues.matchAll(re);
|
|
47
47
|
for (const match of matches) {
|
|
48
48
|
const s = queryStart + (match.index || 0);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SequenceSearchAdapter.js","sourceRoot":"","sources":["../../src/SequenceSearchAdapter/SequenceSearchAdapter.ts"],"names":[],"mappings":";;AAAA,yEAGgD;AAChD,kDAA0D;AAC1D,6CAM2B;AAC3B,8CAAwC;AAExC,eAAqB,SAAQ,oCAAsB;IAC1C,KAAK,CAAC,SAAS;;QACpB,MAAM,OAAO,GAAG,MAAM,CAAA,MAAA,IAAI,CAAC,aAAa,qDAAG,IAAI,CAAC,OAAO,CAAC,iBAAiB,CAAC,CAAC,CAAA,CAAA;QAC3E,IAAI,CAAC,OAAO,EAAE;YACZ,MAAM,IAAI,KAAK,CAAC,0BAA0B,CAAC,CAAA;SAC5C;QACD,OAAO,OAAO,CAAC,WAAqC,CAAA;IACtD,CAAC;IAEM,KAAK,CAAC,WAAW;QACtB,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,SAAS,EAAE,CAAA;QACtC,OAAO,OAAO,CAAC,WAAW,EAAE,CAAA;IAC9B,CAAC;IAEM,WAAW,CAAC,KAAa,EAAE,IAAiB;QACjD,OAAO,IAAA,uBAAgB,EAAU,KAAK,EA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MAAM,CAAC,GAAG,QAAQ,GAAG,CAAC,KAAK,CAAC,KAAK,IAAI,CAAC,CAAC,CAAA;wBACvC,IAAI,IAAA,qBAAc,EAAC,CAAC,EAAE,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,KAAK,EAAE,KAAK,CAAC,GAAG,CAAC,EAAE;4BAChE,QAAQ,CAAC,IAAI,CACX,IAAI,oBAAa,CAAC;gCAChB,QAAQ,EAAE,GAAG,IAAI,CAAC,EAAE,UAAU,CAAC,IAAI;gCACnC,OAAO,EAAE,KAAK,CAAC,OAAO;gCACtB,KAAK,EAAE,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM;gCAC1B,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC;gCACd,GAAG,EAAE,CAAC;gCACN,MAAM,EAAE,CAAC,CAAC;6BACX,CAAC,CACH,CAAA;yBACF;qBACF;iBACF;aACF;YAED,QAAQ,CAAC,QAAQ,EAAE,CAAA;QACrB,CAAC,CAAC,CAAA;IACJ,CAAC;IAEM,aAAa,KAAI,CAAC;CAC1B;AAxFD,4BAwFC"}
|
|
@@ -31,11 +31,9 @@ const configSchema_1 = __importDefault(require("./configSchema"));
|
|
|
31
31
|
exports.default = (pluginManager) => {
|
|
32
32
|
pluginManager.addAdapterType(() => new AdapterType_1.default({
|
|
33
33
|
name: 'SequenceSearchAdapter',
|
|
34
|
+
displayName: 'Sequence search adapter',
|
|
34
35
|
adapterMetadata: {
|
|
35
|
-
category: null,
|
|
36
36
|
hiddenFromGUI: true,
|
|
37
|
-
displayName: null,
|
|
38
|
-
description: null,
|
|
39
37
|
},
|
|
40
38
|
configSchema: configSchema_1.default,
|
|
41
39
|
getAdapterClass: () => Promise.resolve().then(() => __importStar(require('./SequenceSearchAdapter'))).then(r => r.default),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/SequenceSearchAdapter/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,kGAAyE;AAEzE,kEAAyC;AAEzC,kBAAe,CAAC,aAA4B,EAAE,EAAE;IAC9C,aAAa,CAAC,cAAc,CAC1B,GAAG,EAAE,CACH,IAAI,qBAAW,CAAC;QACd,IAAI,EAAE,uBAAuB;QAC7B,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/SequenceSearchAdapter/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,kGAAyE;AAEzE,kEAAyC;AAEzC,kBAAe,CAAC,aAA4B,EAAE,EAAE;IAC9C,aAAa,CAAC,cAAc,CAC1B,GAAG,EAAE,CACH,IAAI,qBAAW,CAAC;QACd,IAAI,EAAE,uBAAuB;QAC7B,WAAW,EAAE,yBAAyB;QACtC,eAAe,EAAE;YACf,aAAa,EAAE,IAAI;SACpB;QACD,YAAY,EAAZ,sBAAY;QACZ,eAAe,EAAE,GAAG,EAAE,CACpB,kDAAO,yBAAyB,IAAE,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC;KACzD,CAAC,CACL,CAAA;AACH,CAAC,CAAA"}
|
|
@@ -19,7 +19,7 @@ export default class TwoBitAdapter extends BaseSequenceAdapter {
|
|
|
19
19
|
getFeatures({ refName, start, end }: NoAssemblyRegion): import("rxjs").Observable<Feature>;
|
|
20
20
|
/**
|
|
21
21
|
* called to provide a hint that data tied to a certain region
|
|
22
|
-
* will not be needed for the
|
|
22
|
+
* will not be needed for the foreseeable future and can be purged
|
|
23
23
|
* from caches, etc
|
|
24
24
|
*/
|
|
25
25
|
freeResources(): void;
|
|
@@ -76,7 +76,7 @@ class TwoBitAdapter extends BaseAdapter_1.BaseSequenceAdapter {
|
|
|
76
76
|
}
|
|
77
77
|
/**
|
|
78
78
|
* called to provide a hint that data tied to a certain region
|
|
79
|
-
* will not be needed for the
|
|
79
|
+
* will not be needed for the foreseeable future and can be purged
|
|
80
80
|
* from caches, etc
|
|
81
81
|
*/
|
|
82
82
|
freeResources( /* { region } */) { }
|
|
@@ -31,12 +31,10 @@ const configSchema_1 = __importDefault(require("./configSchema"));
|
|
|
31
31
|
exports.default = (pluginManager) => {
|
|
32
32
|
pluginManager.addAdapterType(() => new AdapterType_1.default({
|
|
33
33
|
name: 'TwoBitAdapter',
|
|
34
|
+
displayName: 'TwoBit adapter',
|
|
34
35
|
configSchema: configSchema_1.default,
|
|
35
36
|
adapterMetadata: {
|
|
36
|
-
category: null,
|
|
37
37
|
hiddenFromGUI: true,
|
|
38
|
-
displayName: null,
|
|
39
|
-
description: null,
|
|
40
38
|
},
|
|
41
39
|
getAdapterClass: () => Promise.resolve().then(() => __importStar(require('./TwoBitAdapter'))).then(r => r.default),
|
|
42
40
|
}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/TwoBitAdapter/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,kGAAyE;AAEzE,kEAAyC;AAEzC,kBAAe,CAAC,aAA4B,EAAE,EAAE;IAC9C,aAAa,CAAC,cAAc,CAC1B,GAAG,EAAE,CACH,IAAI,qBAAW,CAAC;QACd,IAAI,EAAE,eAAe;QACrB,YAAY,EAAZ,sBAAY;QACZ,eAAe,EAAE;YACf,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/TwoBitAdapter/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,kGAAyE;AAEzE,kEAAyC;AAEzC,kBAAe,CAAC,aAA4B,EAAE,EAAE;IAC9C,aAAa,CAAC,cAAc,CAC1B,GAAG,EAAE,CACH,IAAI,qBAAW,CAAC;QACd,IAAI,EAAE,eAAe;QACrB,WAAW,EAAE,gBAAgB;QAC7B,YAAY,EAAZ,sBAAY;QACZ,eAAe,EAAE;YACf,aAAa,EAAE,IAAI;SACpB;QACD,eAAe,EAAE,GAAG,EAAE,CAAC,kDAAO,iBAAiB,IAAE,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC;KACtE,CAAC,CACL,CAAA;AACH,CAAC,CAAA"}
|
|
@@ -3,12 +3,10 @@ import configSchema from './configSchema';
|
|
|
3
3
|
export default (pluginManager) => {
|
|
4
4
|
pluginManager.addAdapterType(() => new AdapterType({
|
|
5
5
|
name: 'BgzipFastaAdapter',
|
|
6
|
+
displayName: 'Bgzip-indexed FASTA adapter',
|
|
6
7
|
configSchema,
|
|
7
8
|
adapterMetadata: {
|
|
8
|
-
category: null,
|
|
9
9
|
hiddenFromGUI: true,
|
|
10
|
-
displayName: null,
|
|
11
|
-
description: null,
|
|
12
10
|
},
|
|
13
11
|
getAdapterClass: () => import('./BgzipFastaAdapter').then(r => r.default),
|
|
14
12
|
}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/BgzipFastaAdapter/index.ts"],"names":[],"mappings":"AACA,OAAO,WAAW,MAAM,iDAAiD,CAAA;AAEzE,OAAO,YAAY,MAAM,gBAAgB,CAAA;AAEzC,eAAe,CAAC,aAA4B,EAAE,EAAE;IAC9C,aAAa,CAAC,cAAc,CAC1B,GAAG,EAAE,CACH,IAAI,WAAW,CAAC;QACd,IAAI,EAAE,mBAAmB;QACzB,YAAY;QACZ,eAAe,EAAE;YACf,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/BgzipFastaAdapter/index.ts"],"names":[],"mappings":"AACA,OAAO,WAAW,MAAM,iDAAiD,CAAA;AAEzE,OAAO,YAAY,MAAM,gBAAgB,CAAA;AAEzC,eAAe,CAAC,aAA4B,EAAE,EAAE;IAC9C,aAAa,CAAC,cAAc,CAC1B,GAAG,EAAE,CACH,IAAI,WAAW,CAAC;QACd,IAAI,EAAE,mBAAmB;QACzB,WAAW,EAAE,6BAA6B;QAC1C,YAAY;QACZ,eAAe,EAAE;YACf,aAAa,EAAE,IAAI;SACpB;QACD,eAAe,EAAE,GAAG,EAAE,CACpB,MAAM,CAAC,qBAAqB,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC;KACrD,CAAC,CACL,CAAA;AACH,CAAC,CAAA"}
|
|
@@ -3,12 +3,10 @@ import configSchema from './configSchema';
|
|
|
3
3
|
export default (pluginManager) => {
|
|
4
4
|
pluginManager.addAdapterType(() => new AdapterType({
|
|
5
5
|
name: 'ChromSizesAdapter',
|
|
6
|
+
displayName: 'Chrom sizes adapter',
|
|
6
7
|
configSchema,
|
|
7
8
|
adapterMetadata: {
|
|
8
|
-
category: null,
|
|
9
9
|
hiddenFromGUI: true,
|
|
10
|
-
displayName: null,
|
|
11
|
-
description: null,
|
|
12
10
|
},
|
|
13
11
|
getAdapterClass: () => import('./ChromSizesAdapter').then(r => r.default),
|
|
14
12
|
}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/ChromSizesAdapter/index.ts"],"names":[],"mappings":"AACA,OAAO,WAAW,MAAM,iDAAiD,CAAA;AAEzE,OAAO,YAAY,MAAM,gBAAgB,CAAA;AAEzC,eAAe,CAAC,aAA4B,EAAE,EAAE;IAC9C,aAAa,CAAC,cAAc,CAC1B,GAAG,EAAE,CACH,IAAI,WAAW,CAAC;QACd,IAAI,EAAE,mBAAmB;QACzB,YAAY;QACZ,eAAe,EAAE;YACf,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/ChromSizesAdapter/index.ts"],"names":[],"mappings":"AACA,OAAO,WAAW,MAAM,iDAAiD,CAAA;AAEzE,OAAO,YAAY,MAAM,gBAAgB,CAAA;AAEzC,eAAe,CAAC,aAA4B,EAAE,EAAE;IAC9C,aAAa,CAAC,cAAc,CAC1B,GAAG,EAAE,CACH,IAAI,WAAW,CAAC;QACd,IAAI,EAAE,mBAAmB;QACzB,WAAW,EAAE,qBAAqB;QAClC,YAAY;QACZ,eAAe,EAAE;YACf,aAAa,EAAE,IAAI;SACpB;QACD,eAAe,EAAE,GAAG,EAAE,CACpB,MAAM,CAAC,qBAAqB,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC;KACrD,CAAC,CACL,CAAA;AACH,CAAC,CAAA"}
|
|
@@ -23,7 +23,7 @@ export default class extends BaseSequenceAdapter {
|
|
|
23
23
|
getFeatures(region: NoAssemblyRegion, opts?: BaseOptions): import("rxjs").Observable<Feature>;
|
|
24
24
|
/**
|
|
25
25
|
* called to provide a hint that data tied to a certain region
|
|
26
|
-
* will not be needed for the
|
|
26
|
+
* will not be needed for the foreseeable future and can be purged
|
|
27
27
|
* from caches, etc
|
|
28
28
|
*/
|
|
29
29
|
freeResources(): void;
|
|
@@ -87,7 +87,7 @@ export default class extends BaseSequenceAdapter {
|
|
|
87
87
|
}
|
|
88
88
|
/**
|
|
89
89
|
* called to provide a hint that data tied to a certain region
|
|
90
|
-
* will not be needed for the
|
|
90
|
+
* will not be needed for the foreseeable future and can be purged
|
|
91
91
|
* from caches, etc
|
|
92
92
|
*/
|
|
93
93
|
freeResources( /* { region } */) { }
|
|
@@ -3,12 +3,10 @@ import configSchema from './configSchema';
|
|
|
3
3
|
export default (pluginManager) => {
|
|
4
4
|
pluginManager.addAdapterType(() => new AdapterType({
|
|
5
5
|
name: 'IndexedFastaAdapter',
|
|
6
|
+
displayName: 'Indexed FASTA adapter',
|
|
6
7
|
configSchema,
|
|
7
8
|
adapterMetadata: {
|
|
8
|
-
category: null,
|
|
9
9
|
hiddenFromGUI: true,
|
|
10
|
-
displayName: null,
|
|
11
|
-
description: null,
|
|
12
10
|
},
|
|
13
11
|
getAdapterClass: () => import('./IndexedFastaAdapter').then(r => r.default),
|
|
14
12
|
}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/IndexedFastaAdapter/index.ts"],"names":[],"mappings":"AACA,OAAO,WAAW,MAAM,iDAAiD,CAAA;AAEzE,OAAO,YAAY,MAAM,gBAAgB,CAAA;AAEzC,eAAe,CAAC,aAA4B,EAAE,EAAE;IAC9C,aAAa,CAAC,cAAc,CAC1B,GAAG,EAAE,CACH,IAAI,WAAW,CAAC;QACd,IAAI,EAAE,qBAAqB;QAC3B,YAAY;QACZ,eAAe,EAAE;YACf,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/IndexedFastaAdapter/index.ts"],"names":[],"mappings":"AACA,OAAO,WAAW,MAAM,iDAAiD,CAAA;AAEzE,OAAO,YAAY,MAAM,gBAAgB,CAAA;AAEzC,eAAe,CAAC,aAA4B,EAAE,EAAE;IAC9C,aAAa,CAAC,cAAc,CAC1B,GAAG,EAAE,CACH,IAAI,WAAW,CAAC;QACd,IAAI,EAAE,qBAAqB;QAC3B,WAAW,EAAE,uBAAuB;QACpC,YAAY;QACZ,eAAe,EAAE;YACf,aAAa,EAAE,IAAI;SACpB;QACD,eAAe,EAAE,GAAG,EAAE,CACpB,MAAM,CAAC,uBAAuB,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC;KACvD,CAAC,CACL,CAAA;AACH,CAAC,CAAA"}
|
|
@@ -1,17 +1,19 @@
|
|
|
1
|
+
import { DisplayType } from '@jbrowse/core/pluggableElementTypes';
|
|
1
2
|
import { BaseLinearDisplayComponent } from '@jbrowse/plugin-linear-genome-view';
|
|
2
3
|
import { configSchema } from './configSchema';
|
|
3
4
|
import { modelFactory } from './model';
|
|
4
5
|
export default (pluginManager) => {
|
|
5
6
|
pluginManager.addDisplayType(() => {
|
|
6
7
|
const stateModel = modelFactory(configSchema);
|
|
7
|
-
return {
|
|
8
|
+
return new DisplayType({
|
|
8
9
|
name: 'LinearReferenceSequenceDisplay',
|
|
9
10
|
configSchema,
|
|
10
11
|
stateModel,
|
|
12
|
+
displayName: 'Reference sequence display',
|
|
11
13
|
trackType: 'ReferenceSequenceTrack',
|
|
12
14
|
viewType: 'LinearGenomeView',
|
|
13
15
|
ReactComponent: BaseLinearDisplayComponent,
|
|
14
|
-
};
|
|
16
|
+
});
|
|
15
17
|
});
|
|
16
18
|
};
|
|
17
19
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/LinearReferenceSequenceDisplay/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/LinearReferenceSequenceDisplay/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,qCAAqC,CAAA;AAEjE,OAAO,EAAE,0BAA0B,EAAE,MAAM,oCAAoC,CAAA;AAE/E,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAEtC,eAAe,CAAC,aAA4B,EAAE,EAAE;IAC9C,aAAa,CAAC,cAAc,CAAC,GAAG,EAAE;QAChC,MAAM,UAAU,GAAG,YAAY,CAAC,YAAY,CAAC,CAAA;QAC7C,OAAO,IAAI,WAAW,CAAC;YACrB,IAAI,EAAE,gCAAgC;YACtC,YAAY;YACZ,UAAU;YACV,WAAW,EAAE,4BAA4B;YACzC,SAAS,EAAE,wBAAwB;YACnC,QAAQ,EAAE,kBAAkB;YAC5B,cAAc,EAAE,0BAA0B;SAC3C,CAAC,CAAA;IACJ,CAAC,CAAC,CAAA;AACJ,CAAC,CAAA"}
|
|
@@ -115,10 +115,10 @@ export declare function modelFactory(configSchema: AnyConfigurationSchemaType):
|
|
|
115
115
|
reload(): void;
|
|
116
116
|
} & {
|
|
117
117
|
currBpPerPx: number;
|
|
118
|
+
scrollTop: number;
|
|
118
119
|
message: string;
|
|
119
120
|
featureIdUnderMouse: string | undefined;
|
|
120
121
|
contextMenuFeature: import("@jbrowse/core/util").Feature | undefined;
|
|
121
|
-
scrollTop: number;
|
|
122
122
|
estimatedRegionStatsP: Promise<import("@jbrowse/core/data_adapters/BaseAdapter").Stats> | undefined;
|
|
123
123
|
estimatedRegionStats: import("@jbrowse/core/data_adapters/BaseAdapter").Stats | undefined;
|
|
124
124
|
} & {
|
|
@@ -6,6 +6,7 @@ export default (pluginManager) => {
|
|
|
6
6
|
const configSchema = createReferenceSeqTrackConfig(pluginManager);
|
|
7
7
|
return new TrackType({
|
|
8
8
|
name: 'ReferenceSequenceTrack',
|
|
9
|
+
displayName: 'Reference sequence track',
|
|
9
10
|
configSchema,
|
|
10
11
|
stateModel: createBaseTrackModel(pluginManager, 'ReferenceSequenceTrack', configSchema),
|
|
11
12
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/ReferenceSequenceTrack/index.ts"],"names":[],"mappings":"AAEA,OAAO,SAAS,MAAM,+CAA+C,CAAA;AACrE,OAAO,EAAE,oBAAoB,EAAE,MAAM,4CAA4C,CAAA;AACjF,OAAO,EAAE,6BAA6B,EAAE,MAAM,gBAAgB,CAAA;AAE9D,eAAe,CAAC,aAA4B,EAAE,EAAE;IAC9C,aAAa,CAAC,YAAY,CAAC,GAAG,EAAE;QAC9B,MAAM,YAAY,GAAG,6BAA6B,CAAC,aAAa,CAAC,CAAA;QAEjE,OAAO,IAAI,SAAS,CAAC;YACnB,IAAI,EAAE,wBAAwB;YAC9B,YAAY;YACZ,UAAU,EAAE,oBAAoB,CAC9B,aAAa,EACb,wBAAwB,EACxB,YAAY,CACb;SACF,CAAC,CAAA;IACJ,CAAC,CAAC,CAAA;AACJ,CAAC,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/ReferenceSequenceTrack/index.ts"],"names":[],"mappings":"AAEA,OAAO,SAAS,MAAM,+CAA+C,CAAA;AACrE,OAAO,EAAE,oBAAoB,EAAE,MAAM,4CAA4C,CAAA;AACjF,OAAO,EAAE,6BAA6B,EAAE,MAAM,gBAAgB,CAAA;AAE9D,eAAe,CAAC,aAA4B,EAAE,EAAE;IAC9C,aAAa,CAAC,YAAY,CAAC,GAAG,EAAE;QAC9B,MAAM,YAAY,GAAG,6BAA6B,CAAC,aAAa,CAAC,CAAA;QAEjE,OAAO,IAAI,SAAS,CAAC;YACnB,IAAI,EAAE,wBAAwB;YAC9B,WAAW,EAAE,0BAA0B;YACvC,YAAY;YACZ,UAAU,EAAE,oBAAoB,CAC9B,aAAa,EACb,wBAAwB,EACxB,YAAY,CACb;SACF,CAAC,CAAA;IACJ,CAAC,CAAC,CAAA;AACJ,CAAC,CAAA"}
|
|
@@ -35,12 +35,12 @@ export default class extends BaseFeatureDataAdapter {
|
|
|
35
35
|
const feats = await ret.pipe(toArray()).toPromise();
|
|
36
36
|
const residues = ((_a = feats[0]) === null || _a === void 0 ? void 0 : _a.get('seq')) || '';
|
|
37
37
|
const search = this.getConf('search');
|
|
38
|
-
const
|
|
38
|
+
const searchForward = this.getConf('searchForward');
|
|
39
39
|
const searchReverse = this.getConf('searchReverse');
|
|
40
40
|
const caseInsensitive = this.getConf('caseInsensitive');
|
|
41
41
|
const re = new RegExp(search, 'g' + (caseInsensitive ? 'i' : ''));
|
|
42
42
|
if (search) {
|
|
43
|
-
if (
|
|
43
|
+
if (searchForward) {
|
|
44
44
|
const matches = residues.matchAll(re);
|
|
45
45
|
for (const match of matches) {
|
|
46
46
|
const s = queryStart + (match.index || 0);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SequenceSearchAdapter.js","sourceRoot":"","sources":["../../src/SequenceSearchAdapter/SequenceSearchAdapter.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,sBAAsB,GAEvB,MAAM,yCAAyC,CAAA;AAChD,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAA;AAC1D,OAAO,EACL,aAAa,EAGb,MAAM,EACN,cAAc,GACf,MAAM,o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d,GAAG,EAAE,CAAC;gCACN,MAAM,EAAE,CAAC,CAAC;6BACX,CAAC,CACH,CAAA;yBACF;qBACF;iBACF;aACF;YAED,QAAQ,CAAC,QAAQ,EAAE,CAAA;QACrB,CAAC,CAAC,CAAA;IACJ,CAAC;IAEM,aAAa,KAAI,CAAC;CAC1B"}
|
|
@@ -3,11 +3,9 @@ import configSchema from './configSchema';
|
|
|
3
3
|
export default (pluginManager) => {
|
|
4
4
|
pluginManager.addAdapterType(() => new AdapterType({
|
|
5
5
|
name: 'SequenceSearchAdapter',
|
|
6
|
+
displayName: 'Sequence search adapter',
|
|
6
7
|
adapterMetadata: {
|
|
7
|
-
category: null,
|
|
8
8
|
hiddenFromGUI: true,
|
|
9
|
-
displayName: null,
|
|
10
|
-
description: null,
|
|
11
9
|
},
|
|
12
10
|
configSchema,
|
|
13
11
|
getAdapterClass: () => import('./SequenceSearchAdapter').then(r => r.default),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/SequenceSearchAdapter/index.ts"],"names":[],"mappings":"AACA,OAAO,WAAW,MAAM,iDAAiD,CAAA;AAEzE,OAAO,YAAY,MAAM,gBAAgB,CAAA;AAEzC,eAAe,CAAC,aAA4B,EAAE,EAAE;IAC9C,aAAa,CAAC,cAAc,CAC1B,GAAG,EAAE,CACH,IAAI,WAAW,CAAC;QACd,IAAI,EAAE,uBAAuB;QAC7B,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/SequenceSearchAdapter/index.ts"],"names":[],"mappings":"AACA,OAAO,WAAW,MAAM,iDAAiD,CAAA;AAEzE,OAAO,YAAY,MAAM,gBAAgB,CAAA;AAEzC,eAAe,CAAC,aAA4B,EAAE,EAAE;IAC9C,aAAa,CAAC,cAAc,CAC1B,GAAG,EAAE,CACH,IAAI,WAAW,CAAC;QACd,IAAI,EAAE,uBAAuB;QAC7B,WAAW,EAAE,yBAAyB;QACtC,eAAe,EAAE;YACf,aAAa,EAAE,IAAI;SACpB;QACD,YAAY;QACZ,eAAe,EAAE,GAAG,EAAE,CACpB,MAAM,CAAC,yBAAyB,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC;KACzD,CAAC,CACL,CAAA;AACH,CAAC,CAAA"}
|
|
@@ -19,7 +19,7 @@ export default class TwoBitAdapter extends BaseSequenceAdapter {
|
|
|
19
19
|
getFeatures({ refName, start, end }: NoAssemblyRegion): import("rxjs").Observable<Feature>;
|
|
20
20
|
/**
|
|
21
21
|
* called to provide a hint that data tied to a certain region
|
|
22
|
-
* will not be needed for the
|
|
22
|
+
* will not be needed for the foreseeable future and can be purged
|
|
23
23
|
* from caches, etc
|
|
24
24
|
*/
|
|
25
25
|
freeResources(): void;
|
|
@@ -71,7 +71,7 @@ export default class TwoBitAdapter extends BaseSequenceAdapter {
|
|
|
71
71
|
}
|
|
72
72
|
/**
|
|
73
73
|
* called to provide a hint that data tied to a certain region
|
|
74
|
-
* will not be needed for the
|
|
74
|
+
* will not be needed for the foreseeable future and can be purged
|
|
75
75
|
* from caches, etc
|
|
76
76
|
*/
|
|
77
77
|
freeResources( /* { region } */) { }
|
|
@@ -3,12 +3,10 @@ import configSchema from './configSchema';
|
|
|
3
3
|
export default (pluginManager) => {
|
|
4
4
|
pluginManager.addAdapterType(() => new AdapterType({
|
|
5
5
|
name: 'TwoBitAdapter',
|
|
6
|
+
displayName: 'TwoBit adapter',
|
|
6
7
|
configSchema,
|
|
7
8
|
adapterMetadata: {
|
|
8
|
-
category: null,
|
|
9
9
|
hiddenFromGUI: true,
|
|
10
|
-
displayName: null,
|
|
11
|
-
description: null,
|
|
12
10
|
},
|
|
13
11
|
getAdapterClass: () => import('./TwoBitAdapter').then(r => r.default),
|
|
14
12
|
}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/TwoBitAdapter/index.ts"],"names":[],"mappings":"AACA,OAAO,WAAW,MAAM,iDAAiD,CAAA;AAEzE,OAAO,YAAY,MAAM,gBAAgB,CAAA;AAEzC,eAAe,CAAC,aAA4B,EAAE,EAAE;IAC9C,aAAa,CAAC,cAAc,CAC1B,GAAG,EAAE,CACH,IAAI,WAAW,CAAC;QACd,IAAI,EAAE,eAAe;QACrB,YAAY;QACZ,eAAe,EAAE;YACf,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/TwoBitAdapter/index.ts"],"names":[],"mappings":"AACA,OAAO,WAAW,MAAM,iDAAiD,CAAA;AAEzE,OAAO,YAAY,MAAM,gBAAgB,CAAA;AAEzC,eAAe,CAAC,aAA4B,EAAE,EAAE;IAC9C,aAAa,CAAC,cAAc,CAC1B,GAAG,EAAE,CACH,IAAI,WAAW,CAAC;QACd,IAAI,EAAE,eAAe;QACrB,WAAW,EAAE,gBAAgB;QAC7B,YAAY;QACZ,eAAe,EAAE;YACf,aAAa,EAAE,IAAI;SACpB;QACD,eAAe,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC;KACtE,CAAC,CACL,CAAA;AACH,CAAC,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jbrowse/plugin-sequence",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.3.0",
|
|
4
4
|
"description": "JBrowse 2 sequence adapters, tracks, etc.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"jbrowse",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"build": "npm-run-all build:*",
|
|
28
28
|
"test": "cd ../..; jest plugins/sequence",
|
|
29
29
|
"prepublishOnly": "yarn test",
|
|
30
|
-
"prepack": "yarn build
|
|
30
|
+
"prepack": "yarn build && yarn useDist",
|
|
31
31
|
"postpack": "yarn useSrc",
|
|
32
32
|
"useDist": "node ../../scripts/useDist.js",
|
|
33
33
|
"useSrc": "node ../../scripts/useSrc.js",
|
|
@@ -49,7 +49,6 @@
|
|
|
49
49
|
"mobx": "^6.0.0",
|
|
50
50
|
"mobx-react": "^7.0.0",
|
|
51
51
|
"mobx-state-tree": "^5.0.0",
|
|
52
|
-
"prop-types": "^15.0.0",
|
|
53
52
|
"react": ">=16.8.0",
|
|
54
53
|
"rxjs": "^6.0.0"
|
|
55
54
|
},
|
|
@@ -59,5 +58,5 @@
|
|
|
59
58
|
"distModule": "esm/index.js",
|
|
60
59
|
"srcModule": "src/index.ts",
|
|
61
60
|
"module": "esm/index.js",
|
|
62
|
-
"gitHead": "
|
|
61
|
+
"gitHead": "a85b280a8af4d1a11e81ab42913f5f6049e6e580"
|
|
63
62
|
}
|
|
@@ -8,12 +8,10 @@ export default (pluginManager: PluginManager) => {
|
|
|
8
8
|
() =>
|
|
9
9
|
new AdapterType({
|
|
10
10
|
name: 'BgzipFastaAdapter',
|
|
11
|
+
displayName: 'Bgzip-indexed FASTA adapter',
|
|
11
12
|
configSchema,
|
|
12
13
|
adapterMetadata: {
|
|
13
|
-
category: null,
|
|
14
14
|
hiddenFromGUI: true,
|
|
15
|
-
displayName: null,
|
|
16
|
-
description: null,
|
|
17
15
|
},
|
|
18
16
|
getAdapterClass: () =>
|
|
19
17
|
import('./BgzipFastaAdapter').then(r => r.default),
|
|
@@ -8,12 +8,10 @@ export default (pluginManager: PluginManager) => {
|
|
|
8
8
|
() =>
|
|
9
9
|
new AdapterType({
|
|
10
10
|
name: 'ChromSizesAdapter',
|
|
11
|
+
displayName: 'Chrom sizes adapter',
|
|
11
12
|
configSchema,
|
|
12
13
|
adapterMetadata: {
|
|
13
|
-
category: null,
|
|
14
14
|
hiddenFromGUI: true,
|
|
15
|
-
displayName: null,
|
|
16
|
-
description: null,
|
|
17
15
|
},
|
|
18
16
|
getAdapterClass: () =>
|
|
19
17
|
import('./ChromSizesAdapter').then(r => r.default),
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
|
-
import ReactPropTypes from 'prop-types'
|
|
3
2
|
import { render } from '@testing-library/react'
|
|
4
3
|
import { createJBrowseTheme } from '@jbrowse/core/ui'
|
|
5
4
|
import PrecomputedLayout from '@jbrowse/core/util/layouts/PrecomputedLayout'
|
|
@@ -37,7 +36,6 @@ class ErrorCatcher extends React.Component {
|
|
|
37
36
|
return children
|
|
38
37
|
}
|
|
39
38
|
}
|
|
40
|
-
ErrorCatcher.propTypes = { children: ReactPropTypes.node.isRequired }
|
|
41
39
|
|
|
42
40
|
describe('<DivSequenceRendering />', () => {
|
|
43
41
|
// This just keeps our testing logs clean by not displaying `console.error`s
|
|
@@ -106,7 +106,7 @@ export default class extends BaseSequenceAdapter {
|
|
|
106
106
|
|
|
107
107
|
/**
|
|
108
108
|
* called to provide a hint that data tied to a certain region
|
|
109
|
-
* will not be needed for the
|
|
109
|
+
* will not be needed for the foreseeable future and can be purged
|
|
110
110
|
* from caches, etc
|
|
111
111
|
*/
|
|
112
112
|
public freeResources(/* { region } */): void {}
|
|
@@ -8,12 +8,10 @@ export default (pluginManager: PluginManager) => {
|
|
|
8
8
|
() =>
|
|
9
9
|
new AdapterType({
|
|
10
10
|
name: 'IndexedFastaAdapter',
|
|
11
|
+
displayName: 'Indexed FASTA adapter',
|
|
11
12
|
configSchema,
|
|
12
13
|
adapterMetadata: {
|
|
13
|
-
category: null,
|
|
14
14
|
hiddenFromGUI: true,
|
|
15
|
-
displayName: null,
|
|
16
|
-
description: null,
|
|
17
15
|
},
|
|
18
16
|
getAdapterClass: () =>
|
|
19
17
|
import('./IndexedFastaAdapter').then(r => r.default),
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { DisplayType } from '@jbrowse/core/pluggableElementTypes'
|
|
1
2
|
import PluginManager from '@jbrowse/core/PluginManager'
|
|
2
3
|
import { BaseLinearDisplayComponent } from '@jbrowse/plugin-linear-genome-view'
|
|
3
4
|
|
|
@@ -7,13 +8,14 @@ import { modelFactory } from './model'
|
|
|
7
8
|
export default (pluginManager: PluginManager) => {
|
|
8
9
|
pluginManager.addDisplayType(() => {
|
|
9
10
|
const stateModel = modelFactory(configSchema)
|
|
10
|
-
return {
|
|
11
|
+
return new DisplayType({
|
|
11
12
|
name: 'LinearReferenceSequenceDisplay',
|
|
12
13
|
configSchema,
|
|
13
14
|
stateModel,
|
|
15
|
+
displayName: 'Reference sequence display',
|
|
14
16
|
trackType: 'ReferenceSequenceTrack',
|
|
15
17
|
viewType: 'LinearGenomeView',
|
|
16
18
|
ReactComponent: BaseLinearDisplayComponent,
|
|
17
|
-
}
|
|
19
|
+
})
|
|
18
20
|
})
|
|
19
21
|
}
|
|
@@ -50,13 +50,13 @@ export default class extends BaseFeatureDataAdapter {
|
|
|
50
50
|
const feats = await ret.pipe(toArray()).toPromise()
|
|
51
51
|
const residues: string = feats[0]?.get('seq') || ''
|
|
52
52
|
const search = this.getConf('search')
|
|
53
|
-
const
|
|
53
|
+
const searchForward = this.getConf('searchForward')
|
|
54
54
|
const searchReverse = this.getConf('searchReverse')
|
|
55
55
|
const caseInsensitive = this.getConf('caseInsensitive')
|
|
56
56
|
const re = new RegExp(search, 'g' + (caseInsensitive ? 'i' : ''))
|
|
57
57
|
|
|
58
58
|
if (search) {
|
|
59
|
-
if (
|
|
59
|
+
if (searchForward) {
|
|
60
60
|
const matches = residues.matchAll(re)
|
|
61
61
|
for (const match of matches) {
|
|
62
62
|
const s = queryStart + (match.index || 0)
|
|
@@ -8,11 +8,9 @@ export default (pluginManager: PluginManager) => {
|
|
|
8
8
|
() =>
|
|
9
9
|
new AdapterType({
|
|
10
10
|
name: 'SequenceSearchAdapter',
|
|
11
|
+
displayName: 'Sequence search adapter',
|
|
11
12
|
adapterMetadata: {
|
|
12
|
-
category: null,
|
|
13
13
|
hiddenFromGUI: true,
|
|
14
|
-
displayName: null,
|
|
15
|
-
description: null,
|
|
16
14
|
},
|
|
17
15
|
configSchema,
|
|
18
16
|
getAdapterClass: () =>
|
|
@@ -101,7 +101,7 @@ export default class TwoBitAdapter extends BaseSequenceAdapter {
|
|
|
101
101
|
|
|
102
102
|
/**
|
|
103
103
|
* called to provide a hint that data tied to a certain region
|
|
104
|
-
* will not be needed for the
|
|
104
|
+
* will not be needed for the foreseeable future and can be purged
|
|
105
105
|
* from caches, etc
|
|
106
106
|
*/
|
|
107
107
|
public freeResources(/* { region } */): void {}
|
|
@@ -8,12 +8,10 @@ export default (pluginManager: PluginManager) => {
|
|
|
8
8
|
() =>
|
|
9
9
|
new AdapterType({
|
|
10
10
|
name: 'TwoBitAdapter',
|
|
11
|
+
displayName: 'TwoBit adapter',
|
|
11
12
|
configSchema,
|
|
12
13
|
adapterMetadata: {
|
|
13
|
-
category: null,
|
|
14
14
|
hiddenFromGUI: true,
|
|
15
|
-
displayName: null,
|
|
16
|
-
description: null,
|
|
17
15
|
},
|
|
18
16
|
getAdapterClass: () => import('./TwoBitAdapter').then(r => r.default),
|
|
19
17
|
}),
|