@jbrowse/plugin-variants 1.4.3 → 1.5.2
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/ChordVariantDisplay/index.d.ts +1 -1
- package/dist/LinearVariantDisplay/model.d.ts +11 -8
- package/dist/VcfAdapter/VcfAdapter.d.ts +13 -7
- package/dist/plugin-variants.cjs.development.js +243 -168
- package/dist/plugin-variants.cjs.development.js.map +1 -1
- package/dist/plugin-variants.cjs.production.min.js +1 -1
- package/dist/plugin-variants.cjs.production.min.js.map +1 -1
- package/dist/plugin-variants.esm.js +243 -168
- package/dist/plugin-variants.esm.js.map +1 -1
- package/package.json +8 -7
- package/src/LinearVariantDisplay/configSchema.test.js +2 -13
- package/src/LinearVariantDisplay/configSchema.ts +2 -1
- package/src/StructuralVariantChordRenderer/ReactComponent.js +2 -1
- package/src/VariantFeatureWidget/VariantFeatureWidget.tsx +5 -9
- package/src/VcfAdapter/VcfAdapter.test.ts +1 -0
- package/src/VcfAdapter/VcfAdapter.ts +72 -65
- package/src/VcfAdapter/__snapshots__/VcfAdapter.test.ts.snap +5 -5
- package/src/VcfAdapter/configSchema.ts +1 -1
- package/src/VcfTabixAdapter/VcfTabixAdapter.test.ts +4 -0
- package/src/VcfTabixAdapter/VcfTabixAdapter.ts +10 -3
- package/src/VcfTabixAdapter/configSchema.ts +5 -2
- package/src/index.ts +69 -3
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import PluginManager from '@jbrowse/core/PluginManager';
|
|
2
|
-
declare const _default: (pluginManager: PluginManager) => import("@jbrowse/core/pluggableElementTypes
|
|
2
|
+
declare const _default: (pluginManager: PluginManager) => import("@jbrowse/core/pluggableElementTypes").DisplayType;
|
|
3
3
|
export default _default;
|
|
@@ -29,7 +29,7 @@ export default function (configSchema: LinearVariantDisplayConfigModel): import(
|
|
|
29
29
|
features: Map<string, Feature> | undefined;
|
|
30
30
|
layout: any;
|
|
31
31
|
status: string;
|
|
32
|
-
error:
|
|
32
|
+
error: unknown;
|
|
33
33
|
message: string | undefined;
|
|
34
34
|
maxHeightReached: boolean;
|
|
35
35
|
ReactComponent: ({ model, }: {
|
|
@@ -49,7 +49,7 @@ export default function (configSchema: LinearVariantDisplayConfigModel): import(
|
|
|
49
49
|
maxHeightReached: boolean;
|
|
50
50
|
renderProps: any;
|
|
51
51
|
} | undefined): void;
|
|
52
|
-
setError(error:
|
|
52
|
+
setError(error: unknown): void;
|
|
53
53
|
reload(): void;
|
|
54
54
|
beforeDestroy(): void;
|
|
55
55
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
@@ -57,6 +57,7 @@ export default function (configSchema: LinearVariantDisplayConfigModel): import(
|
|
|
57
57
|
} & {
|
|
58
58
|
type: import("mobx-state-tree").ISimpleType<"LinearBasicDisplay">;
|
|
59
59
|
trackShowLabels: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<boolean>>;
|
|
60
|
+
trackShowDescriptions: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<boolean>>;
|
|
60
61
|
trackDisplayMode: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
61
62
|
trackMaxHeight: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
|
|
62
63
|
configuration: import("mobx-state-tree").ITypeUnion<any, any, any>;
|
|
@@ -65,7 +66,7 @@ export default function (configSchema: LinearVariantDisplayConfigModel): import(
|
|
|
65
66
|
configuration: import("mobx-state-tree").ITypeUnion<any, any, any>;
|
|
66
67
|
}, {
|
|
67
68
|
rendererTypeName: string;
|
|
68
|
-
error:
|
|
69
|
+
error: unknown;
|
|
69
70
|
} & {
|
|
70
71
|
readonly RenderingComponent: import("react").FC<{
|
|
71
72
|
model: import("mobx-state-tree").ModelInstanceTypeProps<{
|
|
@@ -74,14 +75,14 @@ export default function (configSchema: LinearVariantDisplayConfigModel): import(
|
|
|
74
75
|
rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
75
76
|
}> & {
|
|
76
77
|
rendererTypeName: string;
|
|
77
|
-
error:
|
|
78
|
+
error: unknown;
|
|
78
79
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
79
80
|
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
80
81
|
type: import("mobx-state-tree").ISimpleType<string>;
|
|
81
82
|
rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
82
83
|
}, {
|
|
83
84
|
rendererTypeName: string;
|
|
84
|
-
error:
|
|
85
|
+
error: unknown;
|
|
85
86
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
86
87
|
onHorizontalScroll?: Function | undefined;
|
|
87
88
|
blockState?: Record<string, any> | undefined;
|
|
@@ -93,14 +94,14 @@ export default function (configSchema: LinearVariantDisplayConfigModel): import(
|
|
|
93
94
|
rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
94
95
|
}> & {
|
|
95
96
|
rendererTypeName: string;
|
|
96
|
-
error:
|
|
97
|
+
error: unknown;
|
|
97
98
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
98
99
|
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
99
100
|
type: import("mobx-state-tree").ISimpleType<string>;
|
|
100
101
|
rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
101
102
|
}, {
|
|
102
103
|
rendererTypeName: string;
|
|
103
|
-
error:
|
|
104
|
+
error: unknown;
|
|
104
105
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
105
106
|
}> | null;
|
|
106
107
|
readonly adapterConfig: any;
|
|
@@ -112,7 +113,7 @@ export default function (configSchema: LinearVariantDisplayConfigModel): import(
|
|
|
112
113
|
readonly viewMenuActions: import("@jbrowse/core/ui").MenuItem[];
|
|
113
114
|
regionCannotBeRendered(): undefined;
|
|
114
115
|
} & {
|
|
115
|
-
setError(error?:
|
|
116
|
+
setError(error?: unknown): void;
|
|
116
117
|
setRpcDriverName(rpcDriverName: string): void;
|
|
117
118
|
reload(): void;
|
|
118
119
|
} & {
|
|
@@ -166,11 +167,13 @@ export default function (configSchema: LinearVariantDisplayConfigModel): import(
|
|
|
166
167
|
} & {
|
|
167
168
|
readonly rendererTypeName: any;
|
|
168
169
|
readonly showLabels: any;
|
|
170
|
+
readonly showDescriptions: any;
|
|
169
171
|
readonly maxHeight: any;
|
|
170
172
|
readonly displayMode: any;
|
|
171
173
|
readonly rendererConfig: any;
|
|
172
174
|
} & {
|
|
173
175
|
toggleShowLabels(): void;
|
|
176
|
+
toggleShowDescriptions(): void;
|
|
174
177
|
setDisplayMode(val: string): void;
|
|
175
178
|
setMaxHeight(val: number): void;
|
|
176
179
|
} & {
|
|
@@ -1,17 +1,23 @@
|
|
|
1
1
|
import { BaseFeatureDataAdapter, BaseOptions } from '@jbrowse/core/data_adapters/BaseAdapter';
|
|
2
2
|
import { Region } from '@jbrowse/core/util/types';
|
|
3
3
|
import { Feature } from '@jbrowse/core/util/simpleFeature';
|
|
4
|
-
import
|
|
5
|
-
import VcfFeature from '../VcfTabixAdapter/VcfFeature';
|
|
4
|
+
import IntervalTree from '@flatten-js/interval-tree';
|
|
6
5
|
export default class VcfAdapter extends BaseFeatureDataAdapter {
|
|
7
6
|
static capabilities: string[];
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
protected vcfFeatures?: Promise<{
|
|
8
|
+
header: string;
|
|
9
|
+
intervalTree: Record<string, IntervalTree>;
|
|
10
|
+
}>;
|
|
11
11
|
getHeader(): Promise<string>;
|
|
12
12
|
getMetadata(): Promise<any>;
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
setupP(): Promise<{
|
|
14
|
+
header: string;
|
|
15
|
+
intervalTree: Record<string, IntervalTree<any>>;
|
|
16
|
+
}>;
|
|
17
|
+
setup(): Promise<{
|
|
18
|
+
header: string;
|
|
19
|
+
intervalTree: Record<string, IntervalTree<any>>;
|
|
20
|
+
}>;
|
|
15
21
|
getRefNames(_?: BaseOptions): Promise<string[]>;
|
|
16
22
|
getFeatures(region: Region, opts?: BaseOptions): import("rxjs").Observable<Feature>;
|
|
17
23
|
freeResources(): void;
|