@jbrowse/plugin-alignments 1.7.0 → 1.7.4
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/AlignmentsFeatureDetail/AlignmentsFeatureDetail.d.ts +6 -6
- package/dist/AlignmentsFeatureDetail/AlignmentsFeatureDetail.js +26 -26
- package/dist/AlignmentsFeatureDetail/index.d.ts +13 -13
- package/dist/AlignmentsFeatureDetail/index.js +3 -3
- package/dist/AlignmentsFeatureDetail/index.test.js +2 -2
- package/dist/AlignmentsTrack/index.d.ts +2 -2
- package/dist/AlignmentsTrack/index.js +2 -2
- package/dist/BamAdapter/BamAdapter.d.ts +40 -30
- package/dist/BamAdapter/BamAdapter.js +31 -31
- package/dist/BamAdapter/BamAdapter.test.js +10 -10
- package/dist/BamAdapter/BamSlightlyLazyFeature.d.ts +33 -33
- package/dist/BamAdapter/BamSlightlyLazyFeature.js +6 -6
- package/dist/BamAdapter/MismatchParser.d.ts +28 -28
- package/dist/BamAdapter/MismatchParser.js +6 -6
- package/dist/BamAdapter/MismatchParser.test.js +2 -2
- package/dist/BamAdapter/configSchema.d.ts +2 -2
- package/dist/BamAdapter/configSchema.js +2 -2
- package/dist/BamAdapter/index.d.ts +3 -3
- package/dist/BamAdapter/index.js +6 -6
- package/dist/CramAdapter/CramAdapter.d.ts +52 -43
- package/dist/CramAdapter/CramAdapter.js +31 -31
- package/dist/CramAdapter/CramAdapter.test.js +10 -10
- package/dist/CramAdapter/CramSlightlyLazyFeature.d.ts +49 -49
- package/dist/CramAdapter/CramSlightlyLazyFeature.js +6 -6
- package/dist/CramAdapter/CramTestAdapters.d.ts +29 -29
- package/dist/CramAdapter/CramTestAdapters.js +18 -18
- package/dist/CramAdapter/configSchema.d.ts +3 -3
- package/dist/CramAdapter/configSchema.js +2 -2
- package/dist/CramAdapter/index.d.ts +3 -3
- package/dist/CramAdapter/index.js +6 -6
- package/dist/HtsgetBamAdapter/HtsgetBamAdapter.d.ts +9 -9
- package/dist/HtsgetBamAdapter/HtsgetBamAdapter.js +9 -9
- package/dist/HtsgetBamAdapter/configSchema.d.ts +2 -2
- package/dist/HtsgetBamAdapter/configSchema.js +2 -2
- package/dist/HtsgetBamAdapter/index.d.ts +3 -3
- package/dist/HtsgetBamAdapter/index.js +6 -6
- package/dist/LinearAlignmentsDisplay/components/AlignmentsDisplay.d.ts +7 -7
- package/dist/LinearAlignmentsDisplay/components/AlignmentsDisplay.js +8 -8
- package/dist/LinearAlignmentsDisplay/index.d.ts +2 -2
- package/dist/LinearAlignmentsDisplay/index.js +5 -5
- package/dist/LinearAlignmentsDisplay/models/configSchema.d.ts +4 -4
- package/dist/LinearAlignmentsDisplay/models/configSchema.js +2 -2
- package/dist/LinearAlignmentsDisplay/models/configSchema.test.js +11 -11
- package/dist/LinearAlignmentsDisplay/models/model.d.ts +105 -105
- package/dist/LinearAlignmentsDisplay/models/model.js +15 -15
- package/dist/LinearPileupDisplay/components/ColorByModifications.d.ts +14 -14
- package/dist/LinearPileupDisplay/components/ColorByModifications.js +18 -18
- package/dist/LinearPileupDisplay/components/ColorByTag.d.ts +9 -9
- package/dist/LinearPileupDisplay/components/ColorByTag.js +11 -11
- package/dist/LinearPileupDisplay/components/FilterByTag.d.ts +18 -18
- package/dist/LinearPileupDisplay/components/FilterByTag.js +26 -26
- package/dist/LinearPileupDisplay/components/LinearPileupDisplayBlurb.d.ts +13 -13
- package/dist/LinearPileupDisplay/components/LinearPileupDisplayBlurb.js +4 -4
- package/dist/LinearPileupDisplay/components/SetFeatureHeight.d.ts +16 -16
- package/dist/LinearPileupDisplay/components/SetFeatureHeight.js +12 -12
- package/dist/LinearPileupDisplay/components/SetMaxHeight.d.ts +10 -10
- package/dist/LinearPileupDisplay/components/SetMaxHeight.js +10 -10
- package/dist/LinearPileupDisplay/components/SortByTag.d.ts +9 -9
- package/dist/LinearPileupDisplay/components/SortByTag.js +10 -10
- package/dist/LinearPileupDisplay/configSchema.d.ts +6 -6
- package/dist/LinearPileupDisplay/configSchema.js +2 -2
- package/dist/LinearPileupDisplay/configSchema.test.js +12 -12
- package/dist/LinearPileupDisplay/index.d.ts +2 -2
- package/dist/LinearPileupDisplay/index.js +4 -4
- package/dist/LinearPileupDisplay/model.d.ts +319 -321
- package/dist/LinearPileupDisplay/model.js +22 -22
- package/dist/LinearSNPCoverageDisplay/components/Tooltip.d.ts +10 -10
- package/dist/LinearSNPCoverageDisplay/components/Tooltip.js +10 -10
- package/dist/LinearSNPCoverageDisplay/index.d.ts +2 -2
- package/dist/LinearSNPCoverageDisplay/index.js +4 -4
- package/dist/LinearSNPCoverageDisplay/models/configSchema.d.ts +2 -2
- package/dist/LinearSNPCoverageDisplay/models/configSchema.js +1 -1
- package/dist/LinearSNPCoverageDisplay/models/configSchema.test.js +7 -7
- package/dist/LinearSNPCoverageDisplay/models/model.d.ts +346 -96
- package/dist/LinearSNPCoverageDisplay/models/model.js +11 -11
- package/dist/NestedFrequencyTable.d.ts +14 -14
- package/dist/NestedFrequencyTable.js +7 -7
- package/dist/PileupRPC/rpcMethods.d.ts +34 -34
- package/dist/PileupRPC/rpcMethods.js +23 -23
- package/dist/PileupRenderer/PileupLayoutSession.d.ts +29 -29
- package/dist/PileupRenderer/PileupLayoutSession.js +8 -8
- package/dist/PileupRenderer/PileupRenderer.d.ts +125 -125
- package/dist/PileupRenderer/PileupRenderer.js +37 -37
- package/dist/PileupRenderer/components/PileupRendering.d.ts +23 -23
- package/dist/PileupRenderer/components/PileupRendering.js +13 -13
- package/dist/PileupRenderer/components/PileupRendering.test.js +2 -2
- package/dist/PileupRenderer/configSchema.d.ts +2 -2
- package/dist/PileupRenderer/configSchema.js +2 -2
- package/dist/PileupRenderer/index.d.ts +2 -2
- package/dist/PileupRenderer/index.js +4 -4
- package/dist/PileupRenderer/sortUtil.d.ts +8 -8
- package/dist/SNPCoverageAdapter/SNPCoverageAdapter.d.ts +67 -71
- package/dist/SNPCoverageAdapter/SNPCoverageAdapter.js +22 -22
- package/dist/SNPCoverageAdapter/configSchema.d.ts +3 -3
- package/dist/SNPCoverageAdapter/configSchema.js +2 -2
- package/dist/SNPCoverageAdapter/index.d.ts +3 -3
- package/dist/SNPCoverageAdapter/index.js +6 -6
- package/dist/SNPCoverageRenderer/SNPCoverageRenderer.d.ts +20 -20
- package/dist/SNPCoverageRenderer/SNPCoverageRenderer.js +12 -12
- package/dist/SNPCoverageRenderer/configSchema.d.ts +2 -2
- package/dist/SNPCoverageRenderer/configSchema.js +2 -2
- package/dist/SNPCoverageRenderer/index.d.ts +3 -3
- package/dist/SNPCoverageRenderer/index.js +3 -3
- package/dist/index.d.ts +10 -10
- package/dist/index.js +10 -10
- package/dist/index.test.js +2 -2
- package/dist/shared.d.ts +25 -25
- package/dist/shared.js +5 -5
- package/dist/util.d.ts +19 -19
- package/dist/util.js +3 -3
- package/package.json +5 -5
- package/dist/AlignmentsFeatureDetail/index.test.d.ts +0 -1
- package/dist/LinearAlignmentsDisplay/models/configSchema.test.d.ts +0 -1
- package/dist/LinearPileupDisplay/configSchema.test.d.ts +0 -1
- package/dist/LinearSNPCoverageDisplay/models/configSchema.test.d.ts +0 -1
- package/dist/PileupRenderer/components/PileupRendering.test.d.ts +0 -1
- package/dist/plugin-alignments.cjs.development.js +0 -8438
- package/dist/plugin-alignments.cjs.development.js.map +0 -1
- package/dist/plugin-alignments.cjs.production.min.js +0 -2
- package/dist/plugin-alignments.cjs.production.min.js.map +0 -1
- package/dist/plugin-alignments.esm.js +0 -8430
- package/dist/plugin-alignments.esm.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -7,7 +7,7 @@ var _typeof = require("@babel/runtime/helpers/typeof");
|
|
|
7
7
|
Object.defineProperty(exports, "__esModule", {
|
|
8
8
|
value: true
|
|
9
9
|
});
|
|
10
|
-
exports
|
|
10
|
+
exports.default = exports.MismatchParser = void 0;
|
|
11
11
|
|
|
12
12
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
13
13
|
|
|
@@ -57,36 +57,36 @@ var _tracks = require("@jbrowse/core/util/tracks");
|
|
|
57
57
|
|
|
58
58
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
59
59
|
|
|
60
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return {
|
|
60
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
61
61
|
|
|
62
|
-
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2
|
|
62
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
63
63
|
|
|
64
64
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
65
65
|
|
|
66
66
|
var AlignmentsPlugin = /*#__PURE__*/function (_Plugin) {
|
|
67
|
-
(0, _inherits2
|
|
67
|
+
(0, _inherits2.default)(AlignmentsPlugin, _Plugin);
|
|
68
68
|
|
|
69
69
|
var _super = _createSuper(AlignmentsPlugin);
|
|
70
70
|
|
|
71
71
|
function AlignmentsPlugin() {
|
|
72
72
|
var _this;
|
|
73
73
|
|
|
74
|
-
(0, _classCallCheck2
|
|
74
|
+
(0, _classCallCheck2.default)(this, AlignmentsPlugin);
|
|
75
75
|
|
|
76
76
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
77
77
|
args[_key] = arguments[_key];
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
81
|
-
(0, _defineProperty2
|
|
81
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "name", 'AlignmentsPlugin');
|
|
82
82
|
return _this;
|
|
83
83
|
}
|
|
84
84
|
|
|
85
|
-
(0, _createClass2
|
|
85
|
+
(0, _createClass2.default)(AlignmentsPlugin, [{
|
|
86
86
|
key: "install",
|
|
87
87
|
value: function install(pluginManager) {
|
|
88
88
|
;
|
|
89
|
-
[_BamAdapter
|
|
89
|
+
[_BamAdapter.default, _CramAdapter.default, _LinearPileupDisplay.default, _LinearSNPCoverageDisplay.default, _AlignmentsTrack.default, _SNPCoverageAdapter.default, _HtsgetBamAdapter.default, _PileupRenderer.default, _SNPCoverageRenderer.default, _LinearAlignmentsDisplay.default, _AlignmentsFeatureDetail.default].map(function (f) {
|
|
90
90
|
return f(pluginManager);
|
|
91
91
|
});
|
|
92
92
|
pluginManager.addToExtensionPoint('Core-guessAdapterForLocation', function (adapterGuesser) {
|
|
@@ -151,6 +151,6 @@ var AlignmentsPlugin = /*#__PURE__*/function (_Plugin) {
|
|
|
151
151
|
}
|
|
152
152
|
}]);
|
|
153
153
|
return AlignmentsPlugin;
|
|
154
|
-
}(_Plugin2
|
|
154
|
+
}(_Plugin2.default);
|
|
155
155
|
|
|
156
|
-
exports
|
|
156
|
+
exports.default = AlignmentsPlugin;
|
package/dist/index.test.js
CHANGED
|
@@ -12,11 +12,11 @@ var _ = _interopRequireDefault(require("."));
|
|
|
12
12
|
|
|
13
13
|
test('plugin in a stock JBrowse', function () {
|
|
14
14
|
console.warn = jest.fn();
|
|
15
|
-
var pluginManager = new _PluginManager
|
|
15
|
+
var pluginManager = new _PluginManager.default([new _.default(), new _pluginSvg.default()]);
|
|
16
16
|
pluginManager.createPluggableElements();
|
|
17
17
|
pluginManager.configure();
|
|
18
18
|
expect(function () {
|
|
19
|
-
return pluginManager.addPlugin(new _
|
|
19
|
+
return pluginManager.addPlugin(new _.default());
|
|
20
20
|
}).toThrow(/JBrowse already configured, cannot add plugins/);
|
|
21
21
|
var BamAdapter = pluginManager.getAdapterType('BamAdapter');
|
|
22
22
|
var config = BamAdapter.configSchema.create({
|
package/dist/shared.d.ts
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { BlockSet } from '@jbrowse/core/util/blockTypes';
|
|
2
|
-
import { IAnyStateTreeNode } from 'mobx-state-tree';
|
|
3
|
-
import { AnyConfigurationModel } from '@jbrowse/core/configuration/configurationSchema';
|
|
4
|
-
export declare function getUniqueTagValues(self: IAnyStateTreeNode & {
|
|
5
|
-
adapterConfig: AnyConfigurationModel;
|
|
6
|
-
}, colorScheme: {
|
|
7
|
-
type: string;
|
|
8
|
-
tag?: string;
|
|
9
|
-
}, blocks: BlockSet, opts?: {
|
|
10
|
-
headers?: Record<string, string>;
|
|
11
|
-
signal?: AbortSignal;
|
|
12
|
-
filters?: string[];
|
|
13
|
-
}): Promise<string[]>;
|
|
14
|
-
export declare function getUniqueModificationValues(self: IAnyStateTreeNode & {
|
|
15
|
-
parentTrack: IAnyStateTreeNode & {
|
|
16
|
-
configuration: AnyConfigurationModel;
|
|
17
|
-
};
|
|
18
|
-
}, adapterConfig: AnyConfigurationModel, colorScheme: {
|
|
19
|
-
type: string;
|
|
20
|
-
tag?: string;
|
|
21
|
-
}, blocks: BlockSet, opts?: {
|
|
22
|
-
headers?: Record<string, string>;
|
|
23
|
-
signal?: AbortSignal;
|
|
24
|
-
filters?: string[];
|
|
25
|
-
}): Promise<string[]>;
|
|
1
|
+
import { BlockSet } from '@jbrowse/core/util/blockTypes';
|
|
2
|
+
import { IAnyStateTreeNode } from 'mobx-state-tree';
|
|
3
|
+
import { AnyConfigurationModel } from '@jbrowse/core/configuration/configurationSchema';
|
|
4
|
+
export declare function getUniqueTagValues(self: IAnyStateTreeNode & {
|
|
5
|
+
adapterConfig: AnyConfigurationModel;
|
|
6
|
+
}, colorScheme: {
|
|
7
|
+
type: string;
|
|
8
|
+
tag?: string;
|
|
9
|
+
}, blocks: BlockSet, opts?: {
|
|
10
|
+
headers?: Record<string, string>;
|
|
11
|
+
signal?: AbortSignal;
|
|
12
|
+
filters?: string[];
|
|
13
|
+
}): Promise<string[]>;
|
|
14
|
+
export declare function getUniqueModificationValues(self: IAnyStateTreeNode & {
|
|
15
|
+
parentTrack: IAnyStateTreeNode & {
|
|
16
|
+
configuration: AnyConfigurationModel;
|
|
17
|
+
};
|
|
18
|
+
}, adapterConfig: AnyConfigurationModel, colorScheme: {
|
|
19
|
+
type: string;
|
|
20
|
+
tag?: string;
|
|
21
|
+
}, blocks: BlockSet, opts?: {
|
|
22
|
+
headers?: Record<string, string>;
|
|
23
|
+
signal?: AbortSignal;
|
|
24
|
+
filters?: string[];
|
|
25
|
+
}): Promise<string[]>;
|
package/dist/shared.js
CHANGED
|
@@ -20,17 +20,17 @@ var _tracks = require("@jbrowse/core/util/tracks");
|
|
|
20
20
|
|
|
21
21
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
22
22
|
|
|
23
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2
|
|
23
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
24
24
|
|
|
25
25
|
function getUniqueTagValues(_x, _x2, _x3, _x4) {
|
|
26
26
|
return _getUniqueTagValues.apply(this, arguments);
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
function _getUniqueTagValues() {
|
|
30
|
-
_getUniqueTagValues = (0, _asyncToGenerator2
|
|
30
|
+
_getUniqueTagValues = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(self, colorScheme, blocks, opts) {
|
|
31
31
|
var _getSession, rpcManager, adapterConfig, sessionId, values;
|
|
32
32
|
|
|
33
|
-
return _regenerator
|
|
33
|
+
return _regenerator.default.wrap(function _callee$(_context) {
|
|
34
34
|
while (1) {
|
|
35
35
|
switch (_context.prev = _context.next) {
|
|
36
36
|
case 0:
|
|
@@ -64,10 +64,10 @@ function getUniqueModificationValues(_x5, _x6, _x7, _x8, _x9) {
|
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
function _getUniqueModificationValues() {
|
|
67
|
-
_getUniqueModificationValues = (0, _asyncToGenerator2
|
|
67
|
+
_getUniqueModificationValues = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2(self, adapterConfig, colorScheme, blocks, opts) {
|
|
68
68
|
var _getSession2, rpcManager, sessionId, values;
|
|
69
69
|
|
|
70
|
-
return _regenerator
|
|
70
|
+
return _regenerator.default.wrap(function _callee2$(_context2) {
|
|
71
71
|
while (1) {
|
|
72
72
|
switch (_context2.prev = _context2.next) {
|
|
73
73
|
case 0:
|
package/dist/util.d.ts
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { BaseFeatureDataAdapter } from '@jbrowse/core/data_adapters/BaseAdapter';
|
|
2
|
-
import { Feature } from '@jbrowse/core/util/simpleFeature';
|
|
3
|
-
import { AugmentedRegion } from '@jbrowse/core/util';
|
|
4
|
-
export declare function getTag(feature: Feature, tag: string): any;
|
|
5
|
-
export declare function getTagAlt(feature: Feature, tag: string, alt: string): any;
|
|
6
|
-
export declare const orientationTypes: {
|
|
7
|
-
fr: {
|
|
8
|
-
[key: string]: string;
|
|
9
|
-
};
|
|
10
|
-
rf: {
|
|
11
|
-
[key: string]: string;
|
|
12
|
-
};
|
|
13
|
-
ff: {
|
|
14
|
-
[key: string]: string;
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
export declare function getColorWGBS(strand: number, base: string): "#f00" | "#00f" | "#888";
|
|
18
|
-
export declare function fetchSequence(region: AugmentedRegion, adapter: BaseFeatureDataAdapter): Promise<any>;
|
|
19
|
-
export declare function shouldFetchReferenceSequence(type?: string): boolean;
|
|
1
|
+
import { BaseFeatureDataAdapter } from '@jbrowse/core/data_adapters/BaseAdapter';
|
|
2
|
+
import { Feature } from '@jbrowse/core/util/simpleFeature';
|
|
3
|
+
import { AugmentedRegion } from '@jbrowse/core/util';
|
|
4
|
+
export declare function getTag(feature: Feature, tag: string): any;
|
|
5
|
+
export declare function getTagAlt(feature: Feature, tag: string, alt: string): any;
|
|
6
|
+
export declare const orientationTypes: {
|
|
7
|
+
fr: {
|
|
8
|
+
[key: string]: string;
|
|
9
|
+
};
|
|
10
|
+
rf: {
|
|
11
|
+
[key: string]: string;
|
|
12
|
+
};
|
|
13
|
+
ff: {
|
|
14
|
+
[key: string]: string;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
export declare function getColorWGBS(strand: number, base: string): "#f00" | "#00f" | "#888";
|
|
18
|
+
export declare function fetchSequence(region: AugmentedRegion, adapter: BaseFeatureDataAdapter): Promise<any>;
|
|
19
|
+
export declare function shouldFetchReferenceSequence(type?: string): boolean;
|
package/dist/util.js
CHANGED
|
@@ -22,7 +22,7 @@ var _operators = require("rxjs/operators");
|
|
|
22
22
|
|
|
23
23
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
24
24
|
|
|
25
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2
|
|
25
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
26
26
|
|
|
27
27
|
// get tag from BAM or CRAM feature, where CRAM uses feature.get('tags') and
|
|
28
28
|
// BAM does not
|
|
@@ -101,11 +101,11 @@ function fetchSequence(_x, _x2) {
|
|
|
101
101
|
|
|
102
102
|
|
|
103
103
|
function _fetchSequence() {
|
|
104
|
-
_fetchSequence = (0, _asyncToGenerator2
|
|
104
|
+
_fetchSequence = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(region, adapter) {
|
|
105
105
|
var _feats$;
|
|
106
106
|
|
|
107
107
|
var end, originalRefName, refName, feats;
|
|
108
|
-
return _regenerator
|
|
108
|
+
return _regenerator.default.wrap(function _callee$(_context) {
|
|
109
109
|
while (1) {
|
|
110
110
|
switch (_context.prev = _context.next) {
|
|
111
111
|
case 0:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jbrowse/plugin-alignments",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.4",
|
|
4
4
|
"description": "JBrowse 2 alignments adapters, tracks, etc.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"jbrowse",
|
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
],
|
|
25
25
|
"scripts": {
|
|
26
26
|
"build": "babel src --root-mode upward --out-dir dist --extensions .ts,.js,.tsx,.jsx",
|
|
27
|
+
"postbuild": "tsc --build tsconfig.build.json",
|
|
27
28
|
"test": "cd ../..; jest plugins/alignments",
|
|
28
29
|
"prepublishOnly": "yarn test",
|
|
29
30
|
"prepack": "yarn build; yarn useDist",
|
|
@@ -32,15 +33,14 @@
|
|
|
32
33
|
"useSrc": "node ../../scripts/useSrc.js"
|
|
33
34
|
},
|
|
34
35
|
"dependencies": {
|
|
36
|
+
"@babel/runtime": "^7.17.9",
|
|
35
37
|
"@gmod/bam": "^1.1.15",
|
|
36
38
|
"@gmod/cram": "^1.6.1",
|
|
37
39
|
"@material-ui/icons": "^4.9.1",
|
|
38
|
-
"abortable-promise-cache": "^1.5.0",
|
|
39
40
|
"color": "^3.1.2",
|
|
40
41
|
"copy-to-clipboard": "^3.3.1",
|
|
41
42
|
"fast-deep-equal": "^3.1.3",
|
|
42
|
-
"generic-filehandle": "^2.2.2"
|
|
43
|
-
"json-stable-stringify": "^1.0.1"
|
|
43
|
+
"generic-filehandle": "^2.2.2"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
46
|
"@jbrowse/core": "^1.0.0",
|
|
@@ -57,5 +57,5 @@
|
|
|
57
57
|
"publishConfig": {
|
|
58
58
|
"access": "public"
|
|
59
59
|
},
|
|
60
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "0a3e0c58055bbab8e3ab0270c139291b96eff403"
|
|
61
61
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|