@jbrowse/plugin-legacy-jbrowse 1.7.9 → 2.0.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/JBrowse1Connection/configSchema.js +18 -28
- package/dist/JBrowse1Connection/configSchema.js.map +1 -0
- package/dist/JBrowse1Connection/index.js +10 -22
- package/dist/JBrowse1Connection/index.js.map +1 -0
- package/dist/JBrowse1Connection/jb1ConfigLoad.js +387 -501
- package/dist/JBrowse1Connection/jb1ConfigLoad.js.map +1 -0
- package/dist/JBrowse1Connection/jb1ConfigParse.js +414 -435
- package/dist/JBrowse1Connection/jb1ConfigParse.js.map +1 -0
- package/dist/JBrowse1Connection/jb1ToJb2.js +405 -546
- package/dist/JBrowse1Connection/jb1ToJb2.js.map +1 -0
- package/dist/JBrowse1Connection/model.js +49 -57
- package/dist/JBrowse1Connection/model.js.map +1 -0
- package/dist/JBrowse1Connection/types.js +2 -4
- package/dist/JBrowse1Connection/types.js.map +1 -0
- package/dist/JBrowse1Connection/util.js +123 -130
- package/dist/JBrowse1Connection/util.js.map +1 -0
- package/dist/JBrowse1TextSeachAdapter/HttpMap.js +181 -326
- package/dist/JBrowse1TextSeachAdapter/HttpMap.js.map +1 -0
- package/dist/JBrowse1TextSeachAdapter/JBrowse1TextSearchAdapter.js +164 -185
- package/dist/JBrowse1TextSeachAdapter/JBrowse1TextSearchAdapter.js.map +1 -0
- package/dist/JBrowse1TextSeachAdapter/configSchema.js +20 -33
- package/dist/JBrowse1TextSeachAdapter/configSchema.js.map +1 -0
- package/dist/JBrowse1TextSeachAdapter/index.js +10 -22
- package/dist/JBrowse1TextSeachAdapter/index.js.map +1 -0
- package/dist/NCListAdapter/NCListAdapter.js +164 -224
- package/dist/NCListAdapter/NCListAdapter.js.map +1 -0
- package/dist/NCListAdapter/NCListFeature.js +68 -125
- package/dist/NCListAdapter/NCListFeature.js.map +1 -0
- package/dist/NCListAdapter/configSchema.js +17 -26
- package/dist/NCListAdapter/configSchema.js.map +1 -0
- package/dist/NCListAdapter/index.js +8 -14
- package/dist/NCListAdapter/index.js.map +1 -0
- package/dist/index.js +97 -116
- package/dist/index.js.map +1 -0
- package/esm/JBrowse1Connection/configSchema.d.ts +2 -0
- package/esm/JBrowse1Connection/configSchema.js +18 -0
- package/esm/JBrowse1Connection/configSchema.js.map +1 -0
- package/esm/JBrowse1Connection/index.d.ts +2 -0
- package/esm/JBrowse1Connection/index.js +3 -0
- package/esm/JBrowse1Connection/index.js.map +1 -0
- package/esm/JBrowse1Connection/jb1ConfigLoad.d.ts +36 -0
- package/esm/JBrowse1Connection/jb1ConfigLoad.js +281 -0
- package/esm/JBrowse1Connection/jb1ConfigLoad.js.map +1 -0
- package/esm/JBrowse1Connection/jb1ConfigParse.d.ts +11 -0
- package/esm/JBrowse1Connection/jb1ConfigParse.js +377 -0
- package/esm/JBrowse1Connection/jb1ConfigParse.js.map +1 -0
- package/esm/JBrowse1Connection/jb1ToJb2.d.ts +49 -0
- package/esm/JBrowse1Connection/jb1ToJb2.js +424 -0
- package/esm/JBrowse1Connection/jb1ToJb2.js.map +1 -0
- package/esm/JBrowse1Connection/model.d.ts +15 -0
- package/esm/JBrowse1Connection/model.js +44 -0
- package/esm/JBrowse1Connection/model.js.map +1 -0
- package/esm/JBrowse1Connection/types.d.ts +91 -0
- package/esm/JBrowse1Connection/types.js +2 -0
- package/esm/JBrowse1Connection/types.js.map +1 -0
- package/esm/JBrowse1Connection/util.d.ts +26 -0
- package/esm/JBrowse1Connection/util.js +136 -0
- package/esm/JBrowse1Connection/util.js.map +1 -0
- package/esm/JBrowse1TextSeachAdapter/HttpMap.d.ts +39 -0
- package/esm/JBrowse1TextSeachAdapter/HttpMap.js +89 -0
- package/esm/JBrowse1TextSeachAdapter/HttpMap.js.map +1 -0
- package/esm/JBrowse1TextSeachAdapter/JBrowse1TextSearchAdapter.d.ts +33 -0
- package/esm/JBrowse1TextSeachAdapter/JBrowse1TextSearchAdapter.js +67 -0
- package/esm/JBrowse1TextSeachAdapter/JBrowse1TextSearchAdapter.js.map +1 -0
- package/esm/JBrowse1TextSeachAdapter/configSchema.d.ts +2 -0
- package/esm/JBrowse1TextSeachAdapter/configSchema.js +20 -0
- package/esm/JBrowse1TextSeachAdapter/configSchema.js.map +1 -0
- package/esm/JBrowse1TextSeachAdapter/index.d.ts +2 -0
- package/esm/JBrowse1TextSeachAdapter/index.js +3 -0
- package/esm/JBrowse1TextSeachAdapter/index.js.map +1 -0
- package/esm/NCListAdapter/NCListAdapter.d.ts +31 -0
- package/esm/NCListAdapter/NCListAdapter.js +62 -0
- package/esm/NCListAdapter/NCListAdapter.js.map +1 -0
- package/esm/NCListAdapter/NCListFeature.d.ts +31 -0
- package/esm/NCListAdapter/NCListFeature.js +78 -0
- package/esm/NCListAdapter/NCListFeature.js.map +1 -0
- package/esm/NCListAdapter/configSchema.d.ts +2 -0
- package/esm/NCListAdapter/configSchema.js +16 -0
- package/esm/NCListAdapter/configSchema.js.map +1 -0
- package/esm/NCListAdapter/index.d.ts +1 -0
- package/esm/NCListAdapter/index.js +2 -0
- package/esm/NCListAdapter/index.js.map +1 -0
- package/esm/index.d.ts +6 -0
- package/esm/index.js +50 -0
- package/esm/index.js.map +1 -0
- package/package.json +15 -6
- package/dist/JBrowse1TextSeachAdapter/HttpMap.test.js +0 -118
- package/dist/JBrowse1TextSeachAdapter/JBrowse1TextSearchAdapter.test.js +0 -98
- package/dist/NCListAdapter/NCListAdapter.test.js +0 -108
- package/dist/declare.d.js +0 -1
- package/dist/index.test.js +0 -44
|
@@ -1,191 +1,170 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
var
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
+
extendStatics(d, b);
|
|
13
|
+
function __() { this.constructor = d; }
|
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
+
};
|
|
16
|
+
})();
|
|
17
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
18
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
19
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
20
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
21
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
22
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
23
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
24
|
+
});
|
|
25
|
+
};
|
|
26
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
27
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
28
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
29
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
30
|
+
function step(op) {
|
|
31
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
32
|
+
while (_) try {
|
|
33
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
34
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
35
|
+
switch (op[0]) {
|
|
36
|
+
case 0: case 1: t = op; break;
|
|
37
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
38
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
39
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
40
|
+
default:
|
|
41
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
42
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
43
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
44
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
45
|
+
if (t[2]) _.ops.pop();
|
|
46
|
+
_.trys.pop(); continue;
|
|
47
|
+
}
|
|
48
|
+
op = body.call(thisArg, _);
|
|
49
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
50
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
var __read = (this && this.__read) || function (o, n) {
|
|
54
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
55
|
+
if (!m) return o;
|
|
56
|
+
var i = m.call(o), r, ar = [], e;
|
|
57
|
+
try {
|
|
58
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
59
|
+
}
|
|
60
|
+
catch (error) { e = { error: error }; }
|
|
61
|
+
finally {
|
|
62
|
+
try {
|
|
63
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
64
|
+
}
|
|
65
|
+
finally { if (e) throw e.error; }
|
|
66
|
+
}
|
|
67
|
+
return ar;
|
|
68
|
+
};
|
|
69
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
70
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
71
|
+
if (ar || !(i in from)) {
|
|
72
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
73
|
+
ar[i] = from[i];
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
77
|
+
};
|
|
78
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
79
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
80
|
+
};
|
|
81
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
82
|
+
var BaseAdapter_1 = require("@jbrowse/core/data_adapters/BaseAdapter");
|
|
83
|
+
var BaseResults_1 = __importDefault(require("@jbrowse/core/TextSearch/BaseResults"));
|
|
84
|
+
var configuration_1 = require("@jbrowse/core/configuration");
|
|
85
|
+
var HttpMap_1 = __importDefault(require("./HttpMap"));
|
|
44
86
|
// Jbrowse1 text search adapter
|
|
45
87
|
// Uses index built by generate-names.pl
|
|
46
|
-
var JBrowse1TextSearchAdapter =
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
if (!namesIndexLocation) {
|
|
61
|
-
throw new Error('must provide namesIndexLocation');
|
|
88
|
+
var JBrowse1TextSearchAdapter = /** @class */ (function (_super) {
|
|
89
|
+
__extends(JBrowse1TextSearchAdapter, _super);
|
|
90
|
+
function JBrowse1TextSearchAdapter(config, getSubAdapter, pluginManager) {
|
|
91
|
+
var _this = _super.call(this, config, getSubAdapter, pluginManager) || this;
|
|
92
|
+
var namesIndexLocation = (0, configuration_1.readConfObject)(config, 'namesIndexLocation');
|
|
93
|
+
if (!namesIndexLocation) {
|
|
94
|
+
throw new Error('must provide namesIndexLocation');
|
|
95
|
+
}
|
|
96
|
+
_this.httpMap = new HttpMap_1.default({
|
|
97
|
+
url: namesIndexLocation.baseUri
|
|
98
|
+
? new URL(namesIndexLocation.uri, namesIndexLocation.baseUri).href
|
|
99
|
+
: namesIndexLocation.uri,
|
|
100
|
+
});
|
|
101
|
+
return _this;
|
|
62
102
|
}
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
*/
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
(0, _createClass2.default)(JBrowse1TextSearchAdapter, [{
|
|
77
|
-
key: "loadIndexFile",
|
|
78
|
-
value: function () {
|
|
79
|
-
var _loadIndexFile = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(query) {
|
|
80
|
-
return _regenerator.default.wrap(function _callee$(_context) {
|
|
81
|
-
while (1) {
|
|
82
|
-
switch (_context.prev = _context.next) {
|
|
83
|
-
case 0:
|
|
84
|
-
return _context.abrupt("return", this.httpMap.getBucket(query));
|
|
85
|
-
|
|
86
|
-
case 1:
|
|
87
|
-
case "end":
|
|
88
|
-
return _context.stop();
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
}, _callee, this);
|
|
92
|
-
}));
|
|
93
|
-
|
|
94
|
-
function loadIndexFile(_x) {
|
|
95
|
-
return _loadIndexFile.apply(this, arguments);
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
return loadIndexFile;
|
|
99
|
-
}()
|
|
100
|
-
}, {
|
|
101
|
-
key: "searchIndex",
|
|
102
|
-
value: function () {
|
|
103
|
-
var _searchIndex = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2(args) {
|
|
104
|
-
var searchType, queryString, tracks, entries;
|
|
105
|
-
return _regenerator.default.wrap(function _callee2$(_context2) {
|
|
106
|
-
while (1) {
|
|
107
|
-
switch (_context2.prev = _context2.next) {
|
|
108
|
-
case 0:
|
|
109
|
-
searchType = args.searchType, queryString = args.queryString;
|
|
110
|
-
_context2.t0 = this.tracksNames;
|
|
111
|
-
|
|
112
|
-
if (_context2.t0) {
|
|
113
|
-
_context2.next = 6;
|
|
114
|
-
break;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
_context2.next = 5;
|
|
118
|
-
return this.httpMap.getTrackNames();
|
|
119
|
-
|
|
120
|
-
case 5:
|
|
121
|
-
_context2.t0 = _context2.sent;
|
|
122
|
-
|
|
123
|
-
case 6:
|
|
124
|
-
tracks = _context2.t0;
|
|
125
|
-
_context2.next = 9;
|
|
126
|
-
return this.loadIndexFile(queryString.toLowerCase());
|
|
127
|
-
|
|
128
|
-
case 9:
|
|
129
|
-
entries = _context2.sent;
|
|
130
|
-
|
|
131
|
-
if (!entries[queryString]) {
|
|
132
|
-
_context2.next = 12;
|
|
133
|
-
break;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
return _context2.abrupt("return", this.formatResults(entries[queryString], tracks, searchType));
|
|
137
|
-
|
|
138
|
-
case 12:
|
|
139
|
-
return _context2.abrupt("return", []);
|
|
140
|
-
|
|
141
|
-
case 13:
|
|
142
|
-
case "end":
|
|
143
|
-
return _context2.stop();
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
}, _callee2, this);
|
|
147
|
-
}));
|
|
148
|
-
|
|
149
|
-
function searchIndex(_x2) {
|
|
150
|
-
return _searchIndex.apply(this, arguments);
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
return searchIndex;
|
|
154
|
-
}()
|
|
155
|
-
}, {
|
|
156
|
-
key: "formatResults",
|
|
157
|
-
value: function formatResults(results, tracks, searchType) {
|
|
158
|
-
return [].concat((0, _toConsumableArray2.default)(searchType === 'exact' ? [] : results.prefix.map(function (result) {
|
|
159
|
-
return new _BaseResults.default({
|
|
160
|
-
label: (0, _typeof2.default)(result) === 'object' ? result.name : result,
|
|
161
|
-
matchedAttribute: 'name',
|
|
162
|
-
matchedObject: {
|
|
163
|
-
result: result
|
|
164
|
-
}
|
|
103
|
+
/**
|
|
104
|
+
* Returns the contents of the file containing the query if it exists
|
|
105
|
+
* else it returns empty
|
|
106
|
+
* @param query - string query
|
|
107
|
+
*/
|
|
108
|
+
JBrowse1TextSearchAdapter.prototype.loadIndexFile = function (query) {
|
|
109
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
110
|
+
return __generator(this, function (_a) {
|
|
111
|
+
return [2 /*return*/, this.httpMap.getBucket(query)];
|
|
112
|
+
});
|
|
165
113
|
});
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
114
|
+
};
|
|
115
|
+
JBrowse1TextSearchAdapter.prototype.searchIndex = function (args) {
|
|
116
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
117
|
+
var searchType, queryString, tracks, _a, entries;
|
|
118
|
+
return __generator(this, function (_b) {
|
|
119
|
+
switch (_b.label) {
|
|
120
|
+
case 0:
|
|
121
|
+
searchType = args.searchType, queryString = args.queryString;
|
|
122
|
+
_a = this.tracksNames;
|
|
123
|
+
if (_a) return [3 /*break*/, 2];
|
|
124
|
+
return [4 /*yield*/, this.httpMap.getTrackNames()];
|
|
125
|
+
case 1:
|
|
126
|
+
_a = (_b.sent());
|
|
127
|
+
_b.label = 2;
|
|
128
|
+
case 2:
|
|
129
|
+
tracks = _a;
|
|
130
|
+
return [4 /*yield*/, this.loadIndexFile(queryString.toLowerCase())];
|
|
131
|
+
case 3:
|
|
132
|
+
entries = _b.sent();
|
|
133
|
+
if (entries[queryString]) {
|
|
134
|
+
return [2 /*return*/, this.formatResults(entries[queryString], tracks, searchType)];
|
|
135
|
+
}
|
|
136
|
+
return [2 /*return*/, []];
|
|
137
|
+
}
|
|
138
|
+
});
|
|
179
139
|
});
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
|
|
140
|
+
};
|
|
141
|
+
JBrowse1TextSearchAdapter.prototype.formatResults = function (results, tracks, searchType) {
|
|
142
|
+
return __spreadArray(__spreadArray([], __read((searchType === 'exact'
|
|
143
|
+
? []
|
|
144
|
+
: results.prefix.map(function (result) {
|
|
145
|
+
return new BaseResults_1.default({
|
|
146
|
+
label: typeof result === 'object' ? result.name : result,
|
|
147
|
+
matchedAttribute: 'name',
|
|
148
|
+
matchedObject: { result: result },
|
|
149
|
+
});
|
|
150
|
+
}))), false), __read(results.exact.map(function (result) {
|
|
151
|
+
var name = result[0];
|
|
152
|
+
var trackIndex = result[1];
|
|
153
|
+
var refName = result[3];
|
|
154
|
+
var start = result[4];
|
|
155
|
+
var end = result[5];
|
|
156
|
+
var locstring = "".concat(refName || name, ":").concat(start, "-").concat(end);
|
|
157
|
+
return new BaseResults_1.default({
|
|
158
|
+
locString: locstring,
|
|
159
|
+
label: name,
|
|
160
|
+
matchedAttribute: 'name',
|
|
161
|
+
matchedObject: result,
|
|
162
|
+
trackId: tracks[trackIndex],
|
|
163
|
+
});
|
|
164
|
+
})), false).filter(function (result) { return result.getLabel() !== 'too many matches'; });
|
|
165
|
+
};
|
|
166
|
+
JBrowse1TextSearchAdapter.prototype.freeResources = function () { };
|
|
167
|
+
return JBrowse1TextSearchAdapter;
|
|
168
|
+
}(BaseAdapter_1.BaseAdapter));
|
|
169
|
+
exports.default = JBrowse1TextSearchAdapter;
|
|
170
|
+
//# sourceMappingURL=JBrowse1TextSearchAdapter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"JBrowse1TextSearchAdapter.js","sourceRoot":"","sources":["../../src/JBrowse1TextSeachAdapter/JBrowse1TextSearchAdapter.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,35 +1,22 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
var _default = (0, _configuration.ConfigurationSchema)('JBrowse1TextSearchAdapter', {
|
|
11
|
-
// metadata about tracks and assemblies covered by text search adapter
|
|
12
|
-
namesIndexLocation: {
|
|
13
|
-
type: 'fileLocation',
|
|
14
|
-
defaultValue: {
|
|
15
|
-
uri: '/volvox/names',
|
|
16
|
-
locationType: 'UriLocation'
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var configuration_1 = require("@jbrowse/core/configuration");
|
|
4
|
+
exports.default = (0, configuration_1.ConfigurationSchema)('JBrowse1TextSearchAdapter', {
|
|
5
|
+
// metadata about tracks and assemblies covered by text search adapter
|
|
6
|
+
namesIndexLocation: {
|
|
7
|
+
type: 'fileLocation',
|
|
8
|
+
defaultValue: { uri: '/volvox/names', locationType: 'UriLocation' },
|
|
9
|
+
description: 'the location of the JBrowse1 names index data directory',
|
|
17
10
|
},
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
}, {
|
|
31
|
-
explicitlyTyped: true,
|
|
32
|
-
explicitIdentifier: 'textSearchAdapterId'
|
|
33
|
-
});
|
|
34
|
-
|
|
35
|
-
exports.default = _default;
|
|
11
|
+
tracks: {
|
|
12
|
+
type: 'stringArray',
|
|
13
|
+
defaultValue: [],
|
|
14
|
+
description: 'List of tracks covered by text search adapter',
|
|
15
|
+
},
|
|
16
|
+
assemblyNames: {
|
|
17
|
+
type: 'stringArray',
|
|
18
|
+
defaultValue: [],
|
|
19
|
+
description: 'List of assemblies covered by text search adapter',
|
|
20
|
+
},
|
|
21
|
+
}, { explicitlyTyped: true, explicitIdentifier: 'textSearchAdapterId' });
|
|
22
|
+
//# sourceMappingURL=configSchema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"configSchema.js","sourceRoot":"","sources":["../../src/JBrowse1TextSeachAdapter/configSchema.ts"],"names":[],"mappings":";;AAAA,6DAAiE;AAEjE,kBAAe,IAAA,mCAAmB,EAChC,2BAA2B,EAC3B;IACE,sEAAsE;IACtE,kBAAkB,EAAE;QAClB,IAAI,EAAE,cAAc;QACpB,YAAY,EAAE,EAAE,GAAG,EAAE,eAAe,EAAE,YAAY,EAAE,aAAa,EAAE;QACnE,WAAW,EAAE,yDAAyD;KACvE;IACD,MAAM,EAAE;QACN,IAAI,EAAE,aAAa;QACnB,YAAY,EAAE,EAAE;QAChB,WAAW,EAAE,+CAA+C;KAC7D;IACD,aAAa,EAAE;QACb,IAAI,EAAE,aAAa;QACnB,YAAY,EAAE,EAAE;QAChB,WAAW,EAAE,mDAAmD;KACjE;CACF,EACD,EAAE,eAAe,EAAE,IAAI,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,CACrE,CAAA"}
|
|
@@ -1,23 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
Object.defineProperty(exports, "AdapterClass", {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}
|
|
13
|
-
});
|
|
14
|
-
Object.defineProperty(exports, "configSchema", {
|
|
15
|
-
enumerable: true,
|
|
16
|
-
get: function get() {
|
|
17
|
-
return _configSchema.default;
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
|
|
21
|
-
var _JBrowse1TextSearchAdapter = _interopRequireDefault(require("./JBrowse1TextSearchAdapter"));
|
|
22
|
-
|
|
23
|
-
var _configSchema = _interopRequireDefault(require("./configSchema"));
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.configSchema = exports.AdapterClass = void 0;
|
|
7
|
+
var JBrowse1TextSearchAdapter_1 = require("./JBrowse1TextSearchAdapter");
|
|
8
|
+
Object.defineProperty(exports, "AdapterClass", { enumerable: true, get: function () { return __importDefault(JBrowse1TextSearchAdapter_1).default; } });
|
|
9
|
+
var configSchema_1 = require("./configSchema");
|
|
10
|
+
Object.defineProperty(exports, "configSchema", { enumerable: true, get: function () { return __importDefault(configSchema_1).default; } });
|
|
11
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/JBrowse1TextSeachAdapter/index.ts"],"names":[],"mappings":";;;;;;AAAA,yEAAqE;AAA5D,0IAAA,OAAO,OAAgB;AAChC,+CAAwD;AAA/C,6HAAA,OAAO,OAAgB"}
|